Announcement

Collapse
No announcement yet.

Object Plugin : XamlListBox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Object Plugin : XamlListBox

    XamlListBox object plugin is a listbox that allows to use most of XAML markup


    Features
    • Supports Hyperlink,Button,CheckBox and RadioButton as interactive objects
    • Supports lines,shapes,gradients and more..
    • Supports most of image formats (jpg,png,gif,bmp)


    Note : This plugin requires a minimum level of XAML markup knowledge

    More Info And Download : Click Here
    amsplugins.com Is Closed.

    Facebook Page

  • #2
    Thank you for presentation Reteset

    Comment


    • #3
      This is looking pretty cool, is it made with Ams Plugin Maker?

      Comment


      • #4
        Hi
        No , it is not made with APM
        amsplugins.com Is Closed.

        Facebook Page

        Comment


        • #5
          A question for reteset, how can it manage the visible text data, when showing window, if I create a table to loop the data and parse it by using a string variable to a xaml variable?

          I mean this

          table={}
          table[1]="data"
          ...

          create a loop for table, the string variable lets call "datatable" and insert into:

          PHP Code:
          for ndatatable in pairs (table) do

            <
          TextBlock Foreground="Black" FontWeight="Bold" Text=datatable/>

          end 
          If I do this the result is blank and not data is displayed
          How can you parse that variable if were a table with data within?

          Comment


          • #6
            Hi naxo

            this is a basic string concatenation issue
            for example you can do it like below
            Code:
            for n, datatable in pairs (table) do
            
              local str = "<TextBlock Foreground=\"Black\" FontWeight=\"Bold\" Text=\""..datatable.."\"/>"
              XamlListBox.AddItem("Plugin1", str, "", "");
            
            end
            but defining a xaml template with place-holders and replacing them with string.format() function would be much better and clean solution

            i attached a sample project that loads XamlListBox from variable strings
            Attached Files
            amsplugins.com Is Closed.

            Facebook Page

            Comment


            • #7
              Originally posted by reteset View Post
              Hi
              No , it is not made with APM
              I thought that when I seen the small plugin size supporting multiple image types, adding something like that to AMP would be great!

              Comment


              • #8
                Originally posted by reteset View Post
                Hi naxo

                this is a basic string concatenation issue
                for example you can do it like below
                Code:
                for n, datatable in pairs (table) do
                
                  local str = "<TextBlock Foreground=\"Black\" FontWeight=\"Bold\" Text=\""..datatable.."\"/>"
                  XamlListBox.AddItem("Plugin1", str, "", "");
                
                end
                but defining a xaml template with place-holders and replacing them with string.format() function would be much better and clean solution

                i attached a sample project that loads XamlListBox from variable strings
                I was reviewing the lua help for that function, tell me if what I say its correct: That function you did include many strings as its needed to format them by separating with comma its right?

                Comment


                • #9
                  Originally posted by Shrek View Post
                  I thought that when I seen the small plugin size supporting multiple image types, adding something like that to AMP would be great!
                  APM already supports multiple image formats by using Graphics module

                  JPG,PNG,GIF,BMP,TIFF
                  amsplugins.com Is Closed.

                  Facebook Page

                  Comment


                  • #10
                    Originally posted by reteset View Post
                    APM already supports multiple image formats by using Graphics module

                    JPG,PNG,GIF,BMP,TIFF
                    I need to pay more attention lol, I figured it was just the standard formats Windows supports with PNG etc on Windows 8.

                    Comment


                    • #11
                      Originally posted by naxo View Post
                      I was reviewing the lua help for that function, tell me if what I say its correct: That function you did include many strings as its needed to format them by separating with comma its right?
                      yes , you can assign a variable to a place holder by separating them with comma
                      second argument of string.format() function is a variable-argument
                      so number of arguments is variable but not unlimited
                      amsplugins.com Is Closed.

                      Facebook Page

                      Comment


                      • #12
                        Thanks I think both methods are reliable for doing population table thank you for the plugin

                        Comment


                        • #13
                          Thank you Reteset, nice addition to the toolbox

                          Any chance that you could add a possibility to use images converted to Base64 strings - i know its not a build-in feature but it would exchange the possibilities to use images stored in a database (mysql)

                          Have you planned to release other axml-based objects, like combobox, datagrid etc.?

                          For those who might have to learn some basic Axml (WPF) - like myself - i have found a useful tutorial here : http://www.wpf-tutorial.com/

                          Best regards
                          Kjeld

                          Comment


                          • #14
                            Originally posted by kjh View Post
                            Thank you Reteset, nice addition to the toolbox

                            Any chance that you could add a possibility to use images converted to Base64 strings - i know its not a build-in feature but it would exchange the possibilities to use images stored in a database (mysql)

                            Have you planned to release other axml-based objects, like combobox, datagrid etc.?

                            For those who might have to learn some basic Axml (WPF) - like myself - i have found a useful tutorial here : http://www.wpf-tutorial.com/

                            Best regards
                            Kjeld
                            thanks for that info!

                            Comment


                            • #15
                              Hi Kjeld

                              First of all this plugin uses codejock's XAML (they call it Markup) parser just like AMS does (xButton)
                              and this plugin does not support full XAML as provided by Microsoft but supported XAML tags are commonly used ones
                              you can use codejock's Markup Pad application to test and preview or debug your XAML markup

                              Please click here to goto download page and find Markup Pad Sample paragraph then you will see download links there

                              Note : in order to download this file or others you should register an account (its free) then you can download

                              as for the base64 image support

                              XAML does not support base64 or binary images as embedded
                              but it has an image manager , it is just like an image list
                              if i can add a base64 or binary image to this image manager then yes it is possible

                              i will try it and write result here soon

                              currently there is no plan to make a plugin with XAML support , because it takes a lot of time to implement XAML stuff in a custom control

                              do you have a specific suggestion ?

                              Thanks
                              amsplugins.com Is Closed.

                              Facebook Page

                              Comment

                              Working...
                              X