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:	348
Size:	3.3 KB
ID:	1182656
    Click image for larger version

Name:	Custom Editor.png
Views:	351
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 Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                589 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                342 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                555 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                552 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X