Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    310 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    200 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    186 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    278 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    229 views
    0 likes
    Last Post CarlTrading  
    Working...
    X