I have a UI element whose color I\'d like to set based on a local variable in the page (well actually in a module, but I can move it to the page).
I see in WPF one c
Ive been jumping from Silverlight to WPF a lot over the last few weeks, so the following idea may or may not fly.
Does your page have the name property set on it? If not, set it (x:Name="MyPage").
then you can do:
Fill="{Binding ElementName=MyPage, Path=MyProperty}"
Give that a try (just off the top of my head)