Horizontal to vertical WrapPanel in WPF?

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.

Up vote 0 down vote favorite share g+ share fb share tw.

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 c# wpf wrappanel link|improve this question asked Apr 5 at 14:15user106890082.

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: ValueConversion(typeof(double), typeof(string)) public class isLessThanConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if ((double)value Hope this helps.

Thanks Brent! It was very halpful. – user1068900 Apr 8 at 7:38 No problem.

Good luck. – Brent Dooley Apr 8 at 17:31.

It sounds like what you want to use is an Expander control. This StackOverflow post explains how to make the other Expanders close automatically when you open another. This will work just like what you're describing in Outlook.

Thanks Chris! I don't talk about the expander (the button that minimize the side of the window). I talking about the GridSplitter that when you take it up or down, the buttons text is disappears.

Do you know how to do that? – user1068900 Apr 5 at 14:39 Maybe you can post XAML and code as an example of what you're trying to do and we can help you more. – Chris Benard Apr 5 at 15:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions