Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,607 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        16 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X