Replies: 1 comment
-
There will be more than one Button when you bind Items to the TreeView. If you really want to execute something for each item in the TreeView, you can create a new component by creating a new contentview file and write your x:Name and the logic in it and use that component inside DataTemplate. In your condition, it seems you need to access sender, so you can use sender as button if(sender is Button myButton) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi!
if in a xaml file i have for exemple :
and i want to access my maui control button in the event i don't find le controle by is name
How to access to test2 ? the trouble is only when a maui control is in a material control
Best regards
Beta Was this translation helpful? Give feedback.
All reactions