wpf controls - Trigger on Image inside a Button WPF -


I want to control the visibility of the image in a button through a trigger:

 < Code> & lt; Button x: name = "notespanel" command = "{binding adddocument}" & gt; & Lt; Image x: name = "notes image" source = "notes" "height =" 32 "& gt; & gt; & gt; & gt; button & gt;  

1 / What trigger will appear in the button or in the container that faces the button?

2 / How to set the visibility of the image? Thanks Zone

< Div class = "post-text" itemprop = "text">

Since you are updating the image, it should lie with the image (style of image as part) such as if the image is by default Is hidden, so I try the following Using R can choose to make it visible with toggleproperty1.

  DataTrigger binding = "{binding toggleproperty}" value = "1" & gt; & lt ; Setter Property = "Visibility" value = "View" />   

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -