Skip to content

Instantly share code, notes, and snippets.

@shawnmclean
Created December 10, 2012 16:52
Show Gist options
  • Save shawnmclean/4251768 to your computer and use it in GitHub Desktop.
Save shawnmclean/4251768 to your computer and use it in GitHub Desktop.
Xaml for full screen camera view
<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