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.
83 lines
4.0 KiB
83 lines
4.0 KiB
<UserControl x:Class="ECMonitor.Page.CameraMonitor.CameraVideo"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded" SizeChanged="UserControl_SizeChanged">
|
|
|
|
<Grid Background="{DynamicResource PrimaryBackGroupBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height=" *" />
|
|
<RowDefinition Height="30" />
|
|
</Grid.RowDefinitions>
|
|
<WrapPanel x:Name="panMain" Grid.Row="0" Grid.Column="0" Margin="2,2,2,2">
|
|
</WrapPanel>
|
|
<!--panMain1用于最大化-->
|
|
<WrapPanel x:Name="panMain1" Grid.Row="0" Grid.Column="0" Panel.ZIndex="1" Margin="2,2,2,2">
|
|
</WrapPanel>
|
|
<StackPanel
|
|
Orientation="Horizontal"
|
|
|
|
Grid.Column="0"
|
|
Grid.Row="1"
|
|
Margin="0,0,0,0"
|
|
Background="{DynamicResource PrimaryBodyBrush}">
|
|
|
|
<!-- the following based on https://material.io/guidelines/components/buttons.html#buttons-toggle-buttons -->
|
|
<ListBox
|
|
Style="{StaticResource MaterialDesignToolToggleListBox}"
|
|
SelectedIndex="0"
|
|
Padding="0,0,0,0" SelectionChanged="BarButtons_SelectionChanged"
|
|
Name="barButtons">
|
|
|
|
<ListBoxItem Padding="5,0,5,0">
|
|
<Border BorderThickness="2" BorderBrush="#FFFFFF" Height="20" Width="20">
|
|
<Border Grid.Row="0" Background="#FFFFFF" Height="10" Width="10" Margin="2,2" />
|
|
</Border>
|
|
</ListBoxItem>
|
|
<ListBoxItem Padding="5,0,5,0">
|
|
<Grid Width="20" Height="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height=" 50*" />
|
|
<RowDefinition Height="50*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width=" 50*" />
|
|
<ColumnDefinition Width="50*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Row="0" Grid.Column="0" Background="#FFFFFF" Width="9" Height="9" Margin="0,0" />
|
|
<Border Grid.Row="1" Grid.Column="0" Background="#FFFFFF" Width="9" Height="9" Margin="0,0" />
|
|
<Border Grid.Row="1" Grid.Column="1" Background="#FFFFFF" Width="9" Height="9" Margin="0,0" />
|
|
<Border Grid.Row="0" Grid.Column="1" Background="#FFFFFF" Width="9" Height="9" Margin="0,0" />
|
|
</Grid>
|
|
</ListBoxItem>
|
|
<ListBoxItem Padding="5,0,5,0">
|
|
<Grid Width="20" Height="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="10*" />
|
|
<RowDefinition Height="10*" />
|
|
<RowDefinition Height="10*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="10*" />
|
|
<ColumnDefinition Width="10*" />
|
|
<ColumnDefinition Width="10*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Row="0" Grid.Column="0" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
<Border Grid.Row="0" Grid.Column="1" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
<Border Grid.Row="0" Grid.Column="2" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
<Border Grid.Row="1" Grid.Column="0" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
<Border Grid.Row="1" Grid.Column="1" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
<Border Grid.Row="1" Grid.Column="2" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
<Border Grid.Row="2" Grid.Column="0" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
<Border Grid.Row="2" Grid.Column="1" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
<Border Grid.Row="2" Grid.Column="2" Background="#FFFFFF" Width="6" Height="6" Margin="0,0,1,1" />
|
|
</Grid>
|
|
</ListBoxItem>
|
|
</ListBox>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|