WPF - Select canvas UIElement

This post goal is to demonstrate how to deal with canvas drawing and selection of items in the canvas. ! This post will be updated for further information. In the MainWindow.xaml just create a Canvas and a CheckBox. <Window x:Class=”TestCanvas.MainWindow” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Title=”MainWindow” Height=”350″ Width=”525″> <Grid> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition Height=”6*”></RowDefinition> </Grid.RowDefinitions> <CheckBox Content=”Enable drawing” IsChecked=”True”…

0