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 Skifree, Today, 03:41 AM
        1 response
        2 views
        0 likes
        Last Post Skifree
        by Skifree
         
        Started by usazencort, Today, 01:16 AM
        0 responses
        1 view
        0 likes
        Last Post usazencort  
        Started by kaywai, 09-01-2023, 08:44 PM
        5 responses
        603 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        23 views
        0 likes
        Last Post xiinteractive  
        Started by Pattontje, Yesterday, 02:10 PM
        2 responses
        22 views
        0 likes
        Last Post Pattontje  
        Working...
        X