1234567891011121314151617181920212223242526 |
- <UserControl x:Class="cameraforhtml.CameraViewfinder"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d"
- FontFamily="{StaticResource PhoneFontFamilyNormal}"
- FontSize="{StaticResource PhoneFontSizeNormal}"
- Foreground="{StaticResource PhoneForegroundBrush}"
- d:DesignHeight="250" d:DesignWidth="350">
- <Border BorderBrush="White" BorderThickness="5">
- <Canvas Name="mainCanvas">
- <Canvas.Background>
- <VideoBrush x:Name="viewfinderBrush" Stretch="UniformToFill">
- <VideoBrush.RelativeTransform>
- <RotateTransform CenterX="0.5" CenterY="0.5" x:Name="viewfinderBrushTransformation" />
- </VideoBrush.RelativeTransform>
- </VideoBrush>
- </Canvas.Background>
- </Canvas>
- </Border>
- </UserControl>
|