I have created a custom control that simply draws a grid of squares on the screen. To do this it overrides the OnRender method and draws rectangles.
I have added this custom control to a WPF window. However when I resize the window, part of the custom control is hidden. What I want to happen is a scroll bar appears, however after adding a scroll viewer it hasn't done anything.
I have read elsewhere I should implementent IScrollInfo, but that seems like a lot of effort to do something quite simple.
If anyone could help me out it would be greatly appreciated.
Many thanks,
Matt