Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom editor for property grid?

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

    Custom editor for property grid?

    I would like to include a OpenFileDialog as a property editor to my propertygrid.
    I saw ther are some premade editors, like CollectionEditor already made.

    Is it possible to define a custom editor for the property grid NT8 uses?
    You know, like UITypeEditor was for Forms/Nt7, so I can open the FileDialog from somewhere.

    #2
    Hello Zapzap,

    Thanks for your post.

    Here is an example that will open a file dialog:

    Code:
            [Display(Name="CrossAbove sound", Description="Enter Up sound file path/name", Order=2, GroupName="Cross Detection Actions")]
            [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker", Filter="Wav Files (*.wav)|*.wav")]
            public string UpSoundFile
            { get; set; }

    Comment


      #3
      Oh, nice, thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      44 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      58 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      35 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      95 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      59 views
      0 likes
      Last Post PaulMohn  
      Working...
      X