You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
2.4 KiB
XML
46 lines
2.4 KiB
XML
<!--
|
|
Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
-->
|
|
<phone:PhoneApplicationPage
|
|
x:Class="WPCordovaClassLib.Cordova.Commands.BarcodeScannerUI"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
|
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
|
FontSize="{StaticResource PhoneFontSizeNormal}"
|
|
Foreground="{StaticResource PhoneForegroundBrush}"
|
|
SupportedOrientations="Portrait" Orientation="Portrait"
|
|
mc:Ignorable="d"
|
|
shell:SystemTray.IsVisible="True" CacheMode="BitmapCache" >
|
|
<phone:PhoneApplicationPage.ApplicationBar>
|
|
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="False" Mode="Minimized">
|
|
<shell:ApplicationBarIconButton IconUri="/www/Images/appbar.cancel.png" IsEnabled="True" Text="Cancel" Click="CancelScan"/>
|
|
</shell:ApplicationBar>
|
|
</phone:PhoneApplicationPage.ApplicationBar>
|
|
|
|
<Grid Background="Transparent">
|
|
<Canvas x:Name="CameraCanvas">
|
|
<Canvas.Background>
|
|
<VideoBrush x:Name="CameraBrush">
|
|
<VideoBrush.RelativeTransform>
|
|
<CompositeTransform
|
|
CenterX="0.5"
|
|
CenterY="0.5"
|
|
Rotation="90"/>
|
|
</VideoBrush.RelativeTransform>
|
|
</VideoBrush>
|
|
</Canvas.Background>
|
|
</Canvas>
|
|
<Rectangle Margin="0" Stroke="Red" Height="2"/>
|
|
</Grid>
|
|
|
|
</phone:PhoneApplicationPage> |