PageRenderTime 34ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/VBSL3WriteableBitmap/GunShoot.xaml

#
XAML | 11 lines | 11 code | 0 blank | 0 comment | 0 complexity | 1f200a8d0d0c6c083a9faa5a1a1d2df0 MD5 | raw file
  1. <UserControl x:Class="VBSL3WriteableBitmap.GunShoot"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  4. <StackPanel x:Name="LayoutRoot">
  5. <TextBlock Text="Select 2 bitmap images. The top one will be displayed on the screen. Then click on the top image to shoot a bullet. Watch it destoyed, and you will be able to see through the bottom image." TextWrapping="Wrap"/>
  6. <Button x:Name="BrowseButton" Content="Browse" Click="BrowseButton_Click"/>
  7. <Grid>
  8. <Image x:Name="topImage" Width="800" Height="600" MouseLeftButtonDown="topImage_MouseLeftButtonDown"/>
  9. </Grid>
  10. </StackPanel>
  11. </UserControl>