Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="LineAndCircleDrawingApp.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Line and Circle Drawing App" Width="800" Height="600">
- <Grid>
- <Canvas Name="canvas" Background="White"
- MouseLeftButtonDown="canvas_MouseLeftButtonDown"
- MouseLeftButtonUp="canvas_MouseLeftButtonUp"
- MouseMove="canvas_MouseMove"/>
- <Button Name="btnDrawLine" Content="Draw Line" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="100" Click="btnDrawLine_Click"/>
- <Button Name="btnDrawCircle" Content="Draw Circle" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="100" Click="btnDrawCircle_Click" Margin="120,0,0,0"/>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement