CameraViewfinder.xaml 1.1 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="cameraforhtml.CameraViewfinder"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d"
  7. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  8. FontSize="{StaticResource PhoneFontSizeNormal}"
  9. Foreground="{StaticResource PhoneForegroundBrush}"
  10. d:DesignHeight="250" d:DesignWidth="350">
  11. <Border BorderBrush="White" BorderThickness="5">
  12. <Canvas Name="mainCanvas">
  13. <Canvas.Background>
  14. <VideoBrush x:Name="viewfinderBrush" Stretch="UniformToFill">
  15. <VideoBrush.RelativeTransform>
  16. <RotateTransform CenterX="0.5" CenterY="0.5" x:Name="viewfinderBrushTransformation" />
  17. </VideoBrush.RelativeTransform>
  18. </VideoBrush>
  19. </Canvas.Background>
  20. </Canvas>
  21. </Border>
  22. </UserControl>