Jump to content



Photo

Ui Dropdown Using Plugin Xaml Native Ui

dropdown

  • Please log in to reply
3 replies to this topic

#1 Eko Priyanto

Eko Priyanto

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 39 posts
  • LocationIndonesia
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 03 October 2018 - 01:32 AM

Hello, I am sorry.. Could anyone show me simple source code to make dropdown using plugin xaml native ui.. thank you


my website : www.letyourbotwork.com


#2 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3275 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 03 October 2018 - 11:53 AM

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.ubots...l-and-datagrid/



#3 Eko Priyanto

Eko Priyanto

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 39 posts
  • LocationIndonesia
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 03 October 2018 - 07:40 PM

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.ubots...l-and-datagrid/


my website : www.letyourbotwork.com


#4 Eko Priyanto

Eko Priyanto

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 39 posts
  • LocationIndonesia
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 04 October 2018 - 03:33 AM

Solved.


my website : www.letyourbotwork.com






Also tagged with one or more of these keywords: dropdown

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users