Dear Friends,
I am developing in the corporate environment and am working on a project where we need to use the camera api. I have successfully implemented MediaCapture and have the preview on my phone screen. However, the capture doesnot show the camera preview in full screen when I rotate it to 90degrees in portrait mode.
Below is my XAML for Capture Element
<CaptureElement x:Name="capturePreview" Grid.Row="1" Stretch="UniformToFill" Height="{Binding ActualHeight, ElementName=Row2}" Width="{Binding ActualWidth, ElementName=Col1}"/>
The MediaCapture is centered on the screen and fills row1 height but not the width.
Anyone can help me with suggestion?
I am developing in the corporate environment and am working on a project where we need to use the camera api. I have successfully implemented MediaCapture and have the preview on my phone screen. However, the capture doesnot show the camera preview in full screen when I rotate it to 90degrees in portrait mode.
Below is my XAML for Capture Element
<CaptureElement x:Name="capturePreview" Grid.Row="1" Stretch="UniformToFill" Height="{Binding ActualHeight, ElementName=Row2}" Width="{Binding ActualWidth, ElementName=Col1}"/>
The MediaCapture is centered on the screen and fills row1 height but not the width.
Anyone can help me with suggestion?