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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    607 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    353 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    560 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    561 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X