1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?xml version="1.0" encoding="UTF-8"?>
- <ContentPage
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="comal.timesheets.BarcodeForm"
- xmlns:rbBarcode="clr-namespace:Rb.Forms.Barcode.Pcl;assembly=Rb.Forms.Barcode.Pcl"
- >
-
- <ContentPage.Content>
- <RelativeLayout>
-
- <rbBarcode:BarcodeScanner x:Name="barcodeScanner"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
- PreviewActivatedCommand="{Binding PreviewActivatedCommand}"
- BarcodeChangedCommand="{Binding BarcodeChangedCommand}"
- BarcodeDecodedCommand="{Binding BarcodeDecodedCommand}"
- PreviewActive="{Binding Preview}"
- Torch="{Binding Torch}"
- BarcodeDecoder="{Binding Decoder}"
- />
- <BoxView Color="Transparent"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
- />
- <BoxView x:Name="flash" Color="White" Opacity="0"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
- RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}"
- />
- <BoxView Color="Red" HeightRequest="1" IsVisible="{Binding Initialized}"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.5, Constant=-1}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.8}"
- />
- <Label TextColor="Red" FontSize="17" XAlign="Center"
- Text="{Binding Barcode}"
- RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0}"
- RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.5, Constant=20}"
- RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
- />
- </RelativeLayout>
-
- </ContentPage.Content>
- </ContentPage>
|