How to dynamically resize WPF tab items to fit available width

Useful StackOverflow link: https://stackoverflow.com/questions/28496809/wpf-flexible-tabcontrol-header Step 1: Create a new WPF application Step 2: Create an example adjustable window with tab items Update the MainWindow.xaml to create a grid with a column section containing the tab items and a grid splitter to adjust the width of the tab item area. MainWindow.xaml We will get on to …

Continue reading ‘How to dynamically resize WPF tab items to fit available width’ »

How to wrap text around another control in WPF

First things first, credit where it’s due: the StackOverflow link I eventually found that enabled me to solve this problem: https://stackoverflow.com/questions/3339051/wrapping-text-around-an-image-or-linking-two-textblocks-in-c-sharp-wpf The trick is not use use a TextBlock as conventional wisdom would indicate, but to use a FlowDocument to achieve this kind of layout. For future reference (I am going to need something like …

Continue reading ‘How to wrap text around another control in WPF’ »