| Name | Message | Date |
|---|---|---|
| 📄 CameraPageControl.axaml | 3 hours ago | |
| 📄 CameraPageControl.axaml.cs | 3 hours ago |
📄
app/src/Controls/CameraPageControl.axaml
<UserControl
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:services="using:BookScanner.App.Services"
xmlns:siv="using:SkiaImageView"
mc:Ignorable="d"
d:DesignWidth="400"
d:DesignHeight="450"
x:Class="BookScanner.App.Controls.CameraPageControl"
>
<Grid RowDefinitions="Auto,*" RowSpacing="4">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="0" Spacing="4">
<ComboBox Name="cameraSelector" SelectionChanged="OnCameraSelectionChange">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="services:CameraInfo">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Click="OnRotateClick">Rotate</Button>
</StackPanel>
<siv:SKImageView Name="image" Grid.Row="1" Stretch="Uniform" StretchDirection="Both" />
</Grid>
</UserControl>