• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WPF Control in Market Analyzer Column?

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

    WPF Control in Market Analyzer Column?

    Is it possible to create a MarketAnalyzerColumnBase or equivalent that renders a WPF UserControl? I'm attempting to create a Market Analyzer Column that has cells which render a clickable Hyperlink for each row.

    Any chance some kind soul has some sample code they're willing to share if this is possible?

    I know I can extend MarketAnalyzerColumnRenderBase and render whatever I want in the OnRender() method so I would think a WPF control should be doable somehow.

    Any guidance is greatly appreciated.

    #2
    Hello stoner,

    I took a quick look through the market analyzer column properties however I am not able to see any simple way to access the control/cell which the column is targeting. The OnRender override is exposed specifically for the column, in the same sense some UI content property would need to be exposed in which the column could append other WPF elements to. For this item I would likely need to put in a feature request to expose the column as a WPF element in addition to offering rendering options.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Please put in a feature request. Thank you.

      Until then, are there any examples of capturing a row clicked event within the Market Analyzer grid? I saw this thread but it didn't help me much because I cannot find a reference to the grid/row/column/cell from a MarketAnalyzerColumnBase instance. The owner property is always null.

      Any suggestions?

      Comment


        #4
        Hello stoner,

        Thank you for the reply.

        I will put in a feature request here. As for finding the cell, I am not aware of any way to do this currently. The column is not really set up in that way to access the UI portion it is associated with, it is mainly just used to calculate data before the analyzer tool delegates where the data goes visually.

        I look forward to being of further assistance.

        JesseNinjaTrader Customer Service

        Comment


          #5
          For the record, as a workaround to not being able to create a hyperlink I took the AddonShell_NT8.zip example and created a NinjaScript AddOn which implements IInstrumentProvider. Now I can capture the Market Analyzer's row clicks using the UI's Instrument Link feature.

          Hope this helps someone.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by marwanco, Today, 10:54 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by daqu40, Today, 11:01 AM
          0 responses
          0 views
          0 likes
          Last Post daqu40
          by daqu40
           
          Started by n8dogg59, Today, 09:55 AM
          2 responses
          3 views
          0 likes
          Last Post n8dogg59  
          Started by ren37, Today, 09:42 AM
          2 responses
          4 views
          0 likes
          Last Post ren37
          by ren37
           
          Started by Austiner87, Today, 08:16 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Working...
          X