Advertisement
programusy

Untitled

Sep 15th, 2023
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <Window x:Class="LineAndCircleDrawingApp.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="Line and Circle Drawing App" Width="800" Height="600">
  5. <Grid>
  6. <Canvas Name="canvas" Background="White"
  7. MouseLeftButtonDown="canvas_MouseLeftButtonDown"
  8. MouseLeftButtonUp="canvas_MouseLeftButtonUp"
  9. MouseMove="canvas_MouseMove"/>
  10. <Button Name="btnDrawLine" Content="Draw Line" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="100" Click="btnDrawLine_Click"/>
  11. <Button Name="btnDrawCircle" Content="Draw Circle" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="100" Click="btnDrawCircle_Click" Margin="120,0,0,0"/>
  12. </Grid>
  13. </Window>
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement