• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WPF PropertyGrid control

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

    WPF PropertyGrid control

    I'd like to use the WPF PropertyGrid control by Denis Vuyka in my Add-On like the NT developers did.
    The official release 2010.11.10 on GitHub (https://github.com/DenisVuyka/WPG) contains two System.Windows.Controls.WpfPropertyGrid.dll with 139KB and 156KB in size.
    Both are working nicely in my Add-On.
    But NT uses a different DLL version of 175KB.
    With this DLL some standard attributes like [Description] are not working and all addional attributes like [ProperytOrder] are unknown in my code.

    Since I have to use the same WPF PropertyGrid DLL like NT I need to know more about its usage in NT.
    Why and how use the NT developers the 175KB version and where is its origin.
    And most important: How can I use it in my Add-On?
    Last edited by ruppschtaler; 02-21-2018, 06:23 AM.

    #2
    Hello ruppschtaler,

    Thank you for your post.

    You can find details on this at the following link: https://ninjatrader.com/support/foru...24&postcount=2

    Please let me know if you have any questions.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Hello Patrick,

      Thanks for your reply.
      Unfortunately you didn't answer my questions and the SamplePropertyGridAddon is not helpful since it doesn't use standard attributes like [Description]
      (https://github.com/DenisVuyka/WPG/wi...ard-Attributes)
      and addional attributes like [PropertyOrder]
      (https://github.com/DenisVuyka/WPG/wi...nal-Attributes)
      - both are not working with your version of Denis Vuyka's WPF PropertyGrid control.

      Please find attached a modified version of your SamplePropertyGridAddon.
      You can see that some standard attributes like [Category] and [DisplayName] are working fine but others like [Description] not (no tooltip with description is shown).

      Addionally compiling is impossible if addional attributes like [PropertyOrder] are used.
      Attached Files

      Comment


        #4
        Hello ruppschtaler,

        Thank you for your response.

        For the Description, Order, and the tooltip you would add 'using System.ComponentModel.DataAnnotations;' and then use Display() for example:
        Code:
        [Display(Name="Demo Int", Description="Description", Order=1, GroupName="Parameters")]
        The location of the WpfPropertyGrid is C:\Program Files (x86)\NinjaTrader 8\bin64\System.Windows.Controls.WpfPropertyGrid.dl l.

        Please let me know if you have any questions.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by hundert, 02-24-2019, 07:55 AM
        2 responses
        43 views
        0 likes
        Last Post jpraema
        by jpraema
         
        Started by w0lverine, Today, 03:57 AM
        0 responses
        1 view
        0 likes
        Last Post w0lverine  
        Started by digibob, Today, 02:47 AM
        0 responses
        2 views
        0 likes
        Last Post digibob
        by digibob
         
        Started by NinjaCustomer, Today, 12:57 AM
        1 response
        5 views
        0 likes
        Last Post NinjaCustomer  
        Started by lancasterstephen, Today, 12:09 AM
        1 response
        5 views
        0 likes
        Last Post lancasterstephen  
        Working...
        X