ChildOfDanu
ChildOfDanu
CC#
Created by ChildOfDanu on 3/25/2025 in #help
Cant bind styles to elements
Hi!! Actually I am very new to WPF and would appreciate some assistance with a problem I have with this. So this is the element tree looks like: Main Window - > contains Navbar -> contains Nav Button <- used by Base Button so I am trying to pass a Style object from Nav Button to the Base Button where I use the Static Resources followed by the key set for the style the Style in the base button is bonded to a property however, the issue is that the styles dont work when I pass in the value to the Base button element in the nav button however, if I had the button element in the nav button, and passed the style parameter from the nav bar, it works the code: https://pastebin.com/AkX1mT3A
1 replies