Using an Adorner to add a stretchable border

Related to a few previous posts, I've been working on a WPF touch-based app where you can drag elements and resize them on screen. One of the (many) problems I've come across is when attempting to add a border around a control and to maintain its thickness when the contained element is scaled. For example, … Continue reading Using an Adorner to add a stretchable border

Prevent child element being clipped using a ScrollViewer

Frequently when you want to draw a XAML element inside a parent container but not have it be clipped by the parent it's suggested to first wrap your control inside a Canvas element as this then keeps your element its original size regardless of the parent size. The only problem with this is that you … Continue reading Prevent child element being clipped using a ScrollViewer