Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to create custom Editor for a custom property type?

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

    How to create custom Editor for a custom property type?

    Hi!
    How to create custom Editor for a custom property type?
    Please provide some examples or some description

    Main idea is to get some right button or show properties with a full view

    With best regards

    Click image for larger version

Name:	Custom Editor 2.png
Views:	370
Size:	3.3 KB
ID:	1182656
    Click image for larger version

Name:	Custom Editor.png
Views:	380
Size:	5.5 KB
ID:	1182657

    #2

    Hi fut_practic, thanks for posting. We have a custom expandable class example here:

    Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.


    Best regards,
    -ChrisL

    Comment


      #3
      Originally posted by NinjaTrader_ChrisL View Post
      Hi fut_practic, thanks for posting. We have a custom expandable class example here:

      Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.


      Best regards,
      -ChrisL
      Thanks,
      but is there any example with custom Editor implementation code?

      Comment


        #4
        Hi fut_practic, thanks for your reply.

        Can you clarify what you mean by an editor? A text editor or something else?

        Best regards,
        -ChrisL

        Comment


          #5
          Originally posted by NinjaTrader_ChrisL View Post
          Hi fut_practic, thanks for your reply.

          Can you clarify what you mean by an editor? A text editor or something else?

          Best regards,
          -ChrisL
          I mean these Editors:

          [PropertyEditor("NinjaTrader.Gui.Tools.StringStanda rdValuesEditorKey")]

          [PropertyEditor("NinjaTrader.Gui.Tools.CollectionEd itor")]

          How can I implement my own Editor and then apply it for corresponding property?

          Comment


            #6
            Hi fut_practic, I found this example for a custom editor that launches a WPF window:

            Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.


            Best regards,
            -ChrisL

            Comment


              #7
              Originally posted by NinjaTrader_ChrisL View Post
              Hi fut_practic, I found this example for a custom editor that launches a WPF window:

              Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.


              Best regards,
              -ChrisL
              Seems ok, but

              Code:
              propGrid.RaiseEvent(new System.Windows.Controls.WpfPropertyGrid.PropertyVa lueChangedEventArgs(System.Windows.Controls.WpfPro pertyGrid.PropertyGrid.PropertyValueChangedEvent, propertyValue.ParentProperty, ""));
              doesn't call property setter

              Comment


                #8
                Hello fut_practic,

                The raise event would not be something we can assist with as that is a third party control being used for the property editor. It may or may not work as expected with existing WPF items like raiseevent. You can set a value to a property to have its setter called.


                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Mindset, 04-21-2026, 06:46 AM
                0 responses
                98 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by M4ndoo, 04-20-2026, 05:21 PM
                0 responses
                142 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by M4ndoo, 04-19-2026, 05:54 PM
                0 responses
                68 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by cmoran13, 04-16-2026, 01:02 PM
                0 responses
                125 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                77 views
                0 likes
                Last Post PaulMohn  
                Working...
                X