How to Implement a BoolToVisibilityConverter

前端 未结 3 990
小蘑菇
小蘑菇 2020-12-06 10:11

In my app I would like to toggle the visibility of an item in a StackPanel. My Stackpanel contains an Image and a TextBlock. How would I properly use a BoolToVisibilityConve

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 10:50

    There is already an implemenation of the converter: http://msdn.microsoft.com/en-us/library/system.windows.controls.booleantovisibilityconverter(v=vs.110).aspx

提交回复
热议问题