Created
December 10, 2012 16:52
-
-
Save shawnmclean/4251768 to your computer and use it in GitHub Desktop.
Xaml for full screen camera view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Grid x:Name="LayoutRoot" VerticalAlignment="Stretch"> | |
<Canvas x:Name="viewfinderCanvas"> | |
<Canvas.Background> | |
<VideoBrush x:Name="viewfinderBrush"> | |
<VideoBrush.RelativeTransform> | |
<CompositeTransform x:Name="previewTransform" CenterX=".5" CenterY=".5" /> | |
</VideoBrush.RelativeTransform> | |
</VideoBrush> | |
</Canvas.Background> | |
</Canvas> | |
</Grid> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment