I try build wrap panel with vertical buttons.
Every button consist from image and textblock.
I want to do something that Microsoft did in the Outlook on the left side of the window,
when the user move the GridSplitter.
When the user will reduce the height of the wrap panel,
if any button will not has place, the textblock will disappear (the button will consist just from image).
How can I do that.
Thank
If I understand correctly. You want to show buttons with Text and an Image, but if the width of the button is reduced to a certain size, it will only show the image.
If so, you should be able to implement with a datatrigger.
Also using this IValueConvertor:
I am not an expert at this, so there may be a cleaner way. I also used a listview instead of your requested wrappanel.
Hope this helps