Jump to content
UBot Underground

Ui Dropdown Using Plugin Xaml Native Ui


Recommended Posts

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/

  • Like 2
Link to post
Share on other sites

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/

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...