Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

SuperDom obtaining selectors

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

    SuperDom obtaining selectors

    Here is one example that I tried:

    var accountSelector = xSuperDom.FindFirst("AccountSelector") as AccountSelector;

    and:

    var accountSelector = LogicalTreeHelper.FindLogicalNode(xSuperDom, "accountSelector") as AccountSelector;

    I'm always getting null. Where I supply xSuperDom, it is the root WPF element. What am I doing wrong here?

    Thanks in advance!

    #2
    Hello jalley,

    I am not certain where you got the automation ID that you have used, from what I can see the superdom uses: SuperDOMControlAccountSelector

    If you want to use the automation ID's and FindFirst you can use microsofts tool Inspect to locate those. We don't have any guides on using that tool but you would essentially just have the program running and click on a control in the window to see its properties. Inspect: https://docs.microsoft.com/en-us/win...ectedfrom=MSDN

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GLFX005, Today, 03:23 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by nandhumca, Yesterday, 03:41 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Started by Aviram Y, Today, 05:29 AM
    0 responses
    5 views
    0 likes
    Last Post Aviram Y  
    Working...
    X