You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
5.5 KiB

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:components="using:JiLinApp.Components"
xmlns:controls="using:Material.Styles.Controls"
xmlns:assists="using:Material.Styles.Assists"
xmlns:icons="using:Material.Icons.Avalonia"
x:Class="JiLinApp.Components.CameraRealPlay"
Icon="/Assets/avalonia-logo.ico"
Title="RealPlay" Width="769" Height="397">
<Window.Styles>
<!--PtzCtrlPanel-->
<Style Selector="#RealPlayGrid StackPanel[Name=PtzCtrlPanel]">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style Selector="#PtzCtrlPanel StackPanel">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style Selector="#PtzCtrlPanel StackPanel Button">
<Setter Property="Width" Value="32" />
<Setter Property="Height" Value="32" />
<Setter Property="Padding" Value="0" />
</Style>
<Style Selector="#PtzCtrlPanel StackPanel[(Grid.Column)=1] TextBlock">
<Setter Property="Foreground" Value="#2b1f19" />
<Setter Property="FontSize" Value="13" />
</Style>
<Style Selector="#PtzCtrlPanel StackPanel:nth-child(n+10) Button">
<Setter Property="Width" Value="27" />
<Setter Property="Height" Value="27" />
<Setter Property="Padding" Value="0" />
</Style>
<Style Selector="#PtzCtrlPanel ComboBox[Name=PresetIdCbx] > StackPanel">
<Setter Property="Width" Value="100" />
</Style>
<Style Selector="#PtzCtrlPanel Button[Name=GotoBtn]">
<Setter Property="Width" Value="100" />
<Setter Property="Height" Value="30" />
</Style>
<Style Selector="Window Panel#PART_MinimiseButton">
<Setter Property="IsVisible" Value="False" />
</Style>
<Style Selector="Window Panel#PART_RestoreButton">
<Setter Property="IsVisible" Value="False" />
</Style>
</Window.Styles>
<Grid Name="RealPlayGrid" ColumnDefinitions="640*,114*">
<DockPanel Grid.Column="0">
<components:NativeHost Name="player" />
</DockPanel>
<StackPanel Name="PtzCtrlPanel" Grid.Column="1">
<Grid RowDefinitions="35,35,35,5,30,30,30,5,60,35" ColumnDefinitions="35,35,35">
<StackPanel Grid.Row="0" Grid.Column="0">
<Button Name="LeftTopBtn" Classes="Outline">
<icons:MaterialIcon Kind="ArrowTopLeft" />
</Button>
</StackPanel>
<StackPanel Grid.Row="0" Grid.Column="1">
<Button Name="TopBtn" Classes="Outline">
<icons:MaterialIcon Kind="ArrowTop" />
</Button>
</StackPanel>
<StackPanel Grid.Row="0" Grid.Column="2">
<Button Name="RightTopBtn" Classes="Outline">
<icons:MaterialIcon Kind="ArrowTopRight" />
</Button>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="0">
<Button Name="LeftBtn" Classes="Outline">
<icons:MaterialIcon Kind="ArrowLeft" />
</Button>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="1">
<Button Name="AutoMoveBtn" Classes="Outline">
<icons:MaterialIcon Kind="Circle" />
</Button>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="2">
<Button Name="RightBtn" Classes="Outline">
<icons:MaterialIcon Kind="ArrowRight" />
</Button>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="0">
<Button Name="LeftDownBtn" Classes="Outline">
<icons:MaterialIcon Kind="ArrowBottomLeft" />
</Button>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="1">
<Button Name="DownBtn" Classes="Outline">
<icons:MaterialIcon Kind="ArrowBottom" />
</Button>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="2">
<Button Name="RightDownBtn" Classes="Outline">
<icons:MaterialIcon Kind="ArrowBottomRight" />
</Button>
</StackPanel>
<StackPanel Grid.Row="4" Grid.Column="0">
<Button Name="ZoomInBtn" Classes="Outline">
<icons:MaterialIcon Kind="PlusBold" />
</Button>
</StackPanel>
<StackPanel Grid.Row="4" Grid.Column="1">
<TextBlock Text="调焦" />
</StackPanel>
<StackPanel Grid.Row="4" Grid.Column="2">
<Button Name="ZoomOutBtn" Classes="Outline">
<icons:MaterialIcon Kind="MinusThick" />
</Button>
</StackPanel>
<StackPanel Grid.Row="5" Grid.Column="0">
<Button Name="FocusNearBtn" Classes="Outline">
<icons:MaterialIcon Kind="PlusThick" />
</Button>
</StackPanel>
<StackPanel Grid.Row="5" Grid.Column="1">
<TextBlock Text="聚焦" />
</StackPanel>
<StackPanel Grid.Row="5" Grid.Column="2">
<Button Name="FocusFarBtn" Classes="Outline">
<icons:MaterialIcon Kind="MinusThick" />
</Button>
</StackPanel>
<StackPanel Grid.Row="6" Grid.Column="0">
<Button Name="IrisOpenBtn" Classes="Outline">
<icons:MaterialIcon Kind="PlusThick" />
</Button>
</StackPanel>
<StackPanel Grid.Row="6" Grid.Column="1">
<TextBlock Text="光焦" />
</StackPanel>
<StackPanel Grid.Row="6" Grid.Column="2">
<Button Name="IrisCloseBtn" Classes="Outline">
<icons:MaterialIcon Kind="MinusThick" />
</Button>
</StackPanel>
<StackPanel Grid.Row="8" Grid.ColumnSpan="3">
<ComboBox Name="PresetIdCbx" Classes="Outline" ContextFlyout="{x:Null}" assists:ComboBoxAssist.Label="预置点" />
</StackPanel>
<StackPanel Grid.Row="9" Grid.ColumnSpan="3">
<Button Name="GotoBtn" Classes="Light" Content="前往预置点" />
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</Window>