How to reference Width of a button from another button (XAML window) #2706
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ElieTaillard
-
Great, thank you. Roberto |
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,
first I'm new with WPF and MaterialDesign XAML so I apologize if my question seems silly.
I'm developing an app where I have several buttons inside a "DrawerHost".
I would like to know, if possibile, how to reference, for example, the Width of a button from another button: let's say I have Button1 and Button2.
Button1 Width is "50", how can I reference the same Width for Button2?
Something like this:
How can I do it?
Of course I could do it at runtime into the code but I wouldn't have a "visual" feedback on the designer.
Thank you, regards.
Roberto
Beta Was this translation helpful? Give feedback.
All reactions