xaml - WPF Style Triggers from another control -
I have an image that I want to make when the user rotates with it on the mouse, a And the image will be
The code below does not work:
& Lt; / Catalyst & gt; & Lt; /Style.Triggers> & Lt; / Style & gt; & Lt; /Image.Style> & Lt; / Image & gt; & Lt; Image source = "volumen_bar.png" name = "bar_wilm" visibility = "hidden" />
Any ideas how can I set up another Control Setter property with another control trigger?
10x
How to:
< Code> & lt; UserControl.Resources & gt; & Lt; Local: BoolToVisibilityConverter x: key = "BoolToVisibilityConverter" /> & Lt; /UserControl.Resources> & Lt; Image Name = "First Image" Source = "Volume Page" /> & lt; Image source = "volumen_bar.png" name = "bar_wowm" visibility = "{binding ismouthover, elementname = first image, mode = oneway, converter = {static resource bulletovisability convention}}" />
and then use value converters for it:
Public class BoolToVisibilityConverter: IValueConverter {convert public object (object value, type targetType, object parameter , CultureInfo culture) {Return (Bull) value? Visibility View: visibility. } Public Object Convertback (Object Value, Type Type, Object Parameter, CultureInfo Culture) {New Notport Supported Expansion (); }}
Comments
Post a Comment