ekopriyanto 4 Posted October 3, 2018 Report Share Posted October 3, 2018 Hello, I am sorry.. Could anyone show me simple source code to make dropdown using plugin xaml native ui.. thank you Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 3, 2018 Report Share Posted October 3, 2018 Here you go: plugin command("XAMLUI.dll", "Load Xaml UI", "<Grid> <ComboBox x:Name=\"myComboBox\" Height=\"25\"/> </Grid>", "", 200, "Basic") add list to list(%items,$list from text("item1,item 2,item 3,item 4 ",","),"Delete","Global") plugin command("XAMLUI.dll", "xaml control list set", "myComboBox", %items) plugin command("XAMLUI.dll", "xaml control value set", "myComboBox", $list item(%items,0)) alert($plugin function("XAMLUI.dll", "$xaml control value", "myComboBox")) Also, check out my free XAML template here: http://network.ubotstudio.com/forum/index.php/topic/20934-gui-tutorial-and-template-using-xaml-and-datagrid/ 2 Quote Link to post Share on other sites
ekopriyanto 4 Posted October 4, 2018 Author Report Share Posted October 4, 2018 Thank you HelloInsomnia.. It's really helpful.. if you dont mind, I still have a problem to use $folder browse dialog with xaml native ui.. here my simple code define ImagesPath { set(#ImagesPath,$plugin function("File Management.dll", "$folder browser dialog"),"Global") } plugin command("XAMLUI.dll", "Load Xaml UI", " <Grid> <Button x:Name=\"ImagesPath\" Content=\"Load\" HorizontalAlignment=\"Left\" Margin=\"10,10,0,0\" VerticalAlignment=\"Top\" Width=\"75\"/> </Grid>", "", 350, "Basic") plugin command("XAMLUI.dll", "Xaml event hook", "ImagesPath", "Click", "ImagesPath()") Here you go: plugin command("XAMLUI.dll", "Load Xaml UI", "<Grid> <ComboBox x:Name=\"myComboBox\" Height=\"25\"/> </Grid>", "", 200, "Basic") add list to list(%items,$list from text("item1,item 2,item 3,item 4 ",","),"Delete","Global") plugin command("XAMLUI.dll", "xaml control list set", "myComboBox", %items) plugin command("XAMLUI.dll", "xaml control value set", "myComboBox", $list item(%items,0)) alert($plugin function("XAMLUI.dll", "$xaml control value", "myComboBox")) Also, check out my free XAML template here: http://network.ubotstudio.com/forum/index.php/topic/20934-gui-tutorial-and-template-using-xaml-and-datagrid/ Quote Link to post Share on other sites
ekopriyanto 4 Posted October 4, 2018 Author Report Share Posted October 4, 2018 Solved. 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.