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

Name:	Custom Editor.png
Views:	361
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 CarlTrading, 03-31-2026, 09:41 PM
                1 response
                43 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                20 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                29 views
                1 like
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                46 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                38 views
                0 likes
                Last Post CarlTrading  
                Working...
                X