Advertisement
programusy

Untitled

Sep 15th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <Window x:Class="LineCircleRectangleDrawingApp.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="Line, Circle, and Rectangle 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. <Button Name="btnDrawRectangle" Content="Draw Rectangle" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="100" Click="btnDrawRectangle_Click" Margin="240,0,0,0"/>
  13. </Grid>
  14. </Window>
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement