Add a slider control and a border control to the content of the StackPanel, and add a canvas to the border control.