wpf - Windows Phone 8.1, How to bind style to view? -
I've written a style for the button. Unfortunately, I had to face a problem: the font size of the button depends on one value, which I use in the only view (in particular, this Ideally, I will do the following: Then, I only provide the necessary properties in the visual category. How can I solve this problem? Specifying the bond in the setter value is not supported in the Windows runtime (supported in WPF and Silverlight 5 Maybe, though). If you are a Google near work, then you are working, but they are like Hank. See, which uses the attached properties and the binding assistant class. DisplayInformation stuff) I can count on
& lt; Style x: key = "MyStyle" basedOn = "{StaticResource SomeStyle}" TargetType = "Button" & gt; & Lt; Setter Property = "FontSys" value = "{binding element name = root control, path = some property" /> & Lt; / Style & gt;
Comments
Post a Comment