|
|
|
|
@ -11,10 +11,11 @@
|
|
|
|
|
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
|
<Border >
|
|
|
|
|
<Border BorderBrush="#1D3649" BorderThickness="0 0 2 0">
|
|
|
|
|
<md:DrawerHost RightDrawerBackground="Transparent" IsRightDrawerOpen="{Binding IsOpenMode}" OpenMode="Standard">
|
|
|
|
|
<Border>
|
|
|
|
|
<Grid Background="Transparent">
|
|
|
|
|
<ItemsControl ItemsSource="{Binding PlayerVMs}" Margin="0 0 30 0">
|
|
|
|
|
<ItemsControl ItemsSource="{Binding PlayerVMs}" Margin="0 0 46 0">
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<UniformGrid x:Name="ugrdFFPlayer" Rows="{Binding RowCount}" Columns="{Binding ColumnCount}" />
|
|
|
|
|
@ -27,61 +28,93 @@
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
|
|
|
|
|
<Border BorderThickness="0 0 1 0" BorderBrush="#2d374c">
|
|
|
|
|
<Border.Style>
|
|
|
|
|
<Style TargetType="Border">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding IsOpenMode}" Value="False">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</Border.Style>
|
|
|
|
|
</Border>
|
|
|
|
|
<Grid HorizontalAlignment="Right">
|
|
|
|
|
<Button Tag="left" Margin="0"
|
|
|
|
|
Style="{StaticResource ImageButtonStyle}"
|
|
|
|
|
Width="25" Command="{Binding ChangeDrawerStatusCommand}"
|
|
|
|
|
VerticalAlignment="Center" HorizontalAlignment="Right" Visibility="{Binding BtnVisibilityLeft}"
|
|
|
|
|
helper:ImageButtonHelper.ImageSource="/Resources/Images/arrow_left.png"/>
|
|
|
|
|
<Button Name="btnVisibilityRight" Tag="right"
|
|
|
|
|
Style="{StaticResource VerticalTrapezoidButtonStyle}" Command="{Binding ChangeDrawerStatusCommand}"
|
|
|
|
|
VerticalAlignment="Top" HorizontalAlignment="Left" Visibility="{Binding BtnVisibilityRight}">
|
|
|
|
|
<Path Data="M13.0607 12.1111L8.11067 17.0611L9.52467 18.4751L15.8887 12.1111L9.52467 5.7471L8.11067 7.1611L13.0607 12.1111Z"
|
|
|
|
|
Fill="White" Stretch="Uniform"
|
|
|
|
|
Width="7.78" Height="12.728"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"/>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button Tag="right" Margin="0"
|
|
|
|
|
Style="{StaticResource ImageButtonStyle}"
|
|
|
|
|
Width="25" Command="{Binding ChangeDrawerStatusCommand}"
|
|
|
|
|
VerticalAlignment="Center" HorizontalAlignment="Right" Visibility="{Binding BtnVisibilityRight}"
|
|
|
|
|
helper:ImageButtonHelper.ImageSource="/Resources/Images/arrow_right.png"/>
|
|
|
|
|
<Button Name="btnVisibilityLeft" Tag="left"
|
|
|
|
|
Style="{StaticResource VerticalTrapezoidButtonStyle}" Command="{Binding ChangeDrawerStatusCommand}"
|
|
|
|
|
VerticalAlignment="Top" HorizontalAlignment="Left" Visibility="{Binding BtnVisibilityLeft}">
|
|
|
|
|
<Path Data="M11.1615 12.1111 L16.11153 17.0611 L14.69753 18.4751 L8.3335 12.1111 L14.69753 5.7471 L16.11153 7.1611 Z"
|
|
|
|
|
Fill="White" Stretch="Uniform"
|
|
|
|
|
Width="7.78" Height="12.728"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"/>
|
|
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
<md:DrawerHost.RightDrawerContent>
|
|
|
|
|
<Border Width="300"
|
|
|
|
|
BorderBrush="#2d374c" BorderThickness="1">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Border Width="348" Background="#1D3649" CornerRadius="0 4 4 0">
|
|
|
|
|
<Border Margin="16" CornerRadius="4" Background="#152935"
|
|
|
|
|
BorderBrush="#325C80" BorderThickness="1">
|
|
|
|
|
<Grid Margin="24">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="100"/>
|
|
|
|
|
<RowDefinition Height="41"/>
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
<RowDefinition Height="81"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Border VerticalAlignment="Center" Margin="40 0">
|
|
|
|
|
<md:PackIcon Kind="Cctv" Foreground="#ffd663" Width="30" Height="30"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 16">
|
|
|
|
|
<Image Source="/Resources/Images/cctv.png"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Width="20" Height="20"/>
|
|
|
|
|
<TextBlock Text="CCTV 목록" FontFamily="{StaticResource SCDream5}"
|
|
|
|
|
FontSize="20" FontWeight="Bold" Foreground="White"
|
|
|
|
|
VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
FontSize="18" FontWeight="Bold" Foreground="White"
|
|
|
|
|
VerticalAlignment="Center" Margin="8 0"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<ListView Grid.Row="1" Margin="10 0"
|
|
|
|
|
<ListView Grid.Row="1" Width="250"
|
|
|
|
|
ItemsSource="{Binding CCTVInfoList}"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden"
|
|
|
|
|
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
|
BorderThickness="0" Background="Transparent">
|
|
|
|
|
<ListView.ItemContainerStyle>
|
|
|
|
|
<Style TargetType="ListViewItem">
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="IsHitTestVisible" Value="False"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="ListViewItem">
|
|
|
|
|
<Border x:Name="RowBorder"
|
|
|
|
|
BorderBrush="#767676"
|
|
|
|
|
BorderThickness="0 0 0 1"
|
|
|
|
|
Background="Transparent">
|
|
|
|
|
<GridViewRowPresenter
|
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
|
Columns="{Binding RelativeSource={RelativeSource AncestorType=ListView},
|
|
|
|
|
Path=View.Columns}"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Height="40"/>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
|
<Setter TargetName="RowBorder" Property="Background" Value="#2D4B63"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
<Setter TargetName="RowBorder" Property="Background" Value="#223E52"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</ListView.ItemContainerStyle>
|
|
|
|
|
<ListView.View>
|
|
|
|
|
<GridView ColumnHeaderContainerStyle="{StaticResource GridViewColumnHeaderStyle}">
|
|
|
|
|
<GridViewColumn Header="상태" Width="50">
|
|
|
|
|
<GridViewColumn Header="상태" Width="60">
|
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Ellipse Width="15" Height="15" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
|
<Ellipse Width="14" Height="14">
|
|
|
|
|
<Ellipse.Style>
|
|
|
|
|
<Style TargetType="Ellipse">
|
|
|
|
|
<Setter Property="Fill" Value="Red"/>
|
|
|
|
|
@ -93,28 +126,23 @@
|
|
|
|
|
</Style>
|
|
|
|
|
</Ellipse.Style>
|
|
|
|
|
</Ellipse>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
|
</GridViewColumn>
|
|
|
|
|
<GridViewColumn Header="ID" Width="80">
|
|
|
|
|
<GridViewColumn Header="ID" Width="95">
|
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid>
|
|
|
|
|
<TextBlock Text="{Binding DeviceId}"
|
|
|
|
|
Style="{StaticResource GridViewTextBlockStyle}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
|
</GridViewColumn>
|
|
|
|
|
<GridViewColumn Header="CCTV" Width="150">
|
|
|
|
|
<GridViewColumn Header="CCTV" Width="95">
|
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Grid>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Text="{Binding DeviceName}"
|
|
|
|
|
Style="{StaticResource GridViewTextBlockStyle}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
|
</GridViewColumn>
|
|
|
|
|
@ -124,21 +152,23 @@
|
|
|
|
|
|
|
|
|
|
<!--하단 버튼-->
|
|
|
|
|
<Grid Grid.Row="2">
|
|
|
|
|
<Button Padding="0" Margin="5" Content="재생"
|
|
|
|
|
<Button Padding="0" Content="재생"
|
|
|
|
|
Style="{StaticResource GeneralButtonStyle}"
|
|
|
|
|
Margin="0 16 0 0"
|
|
|
|
|
Width="250" Height="41"
|
|
|
|
|
Visibility="{Binding BtnVisibilityPlay}"
|
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
|
|
|
|
Style="{StaticResource MaterialDesignFlatMidBgButton}"
|
|
|
|
|
FontFamily="{StaticResource SCDream5}"
|
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Bottom"
|
|
|
|
|
Command="{Binding PlayAllCCTVCommand}">
|
|
|
|
|
<Button.ToolTip>
|
|
|
|
|
<ToolTip Content="CCTV 재생"/>
|
|
|
|
|
</Button.ToolTip>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button Padding="0" Margin="5" Content="중지"
|
|
|
|
|
<Button Padding="0" Content="중지"
|
|
|
|
|
Style="{StaticResource GeneralButtonStyle}"
|
|
|
|
|
Margin="0 16 0 0"
|
|
|
|
|
Width="250" Height="41"
|
|
|
|
|
Visibility="{Binding BtnVisibilityStop}"
|
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
|
|
|
|
Style="{StaticResource MaterialDesignFlatMidBgButton}"
|
|
|
|
|
FontFamily="{StaticResource SCDream5}"
|
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Bottom"
|
|
|
|
|
Command="{Binding StopAllCCTVCommand}">
|
|
|
|
|
<Button.ToolTip>
|
|
|
|
|
<ToolTip Content="CCTV 재생"/>
|
|
|
|
|
@ -147,6 +177,7 @@
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</Border>
|
|
|
|
|
</md:DrawerHost.RightDrawerContent>
|
|
|
|
|
</md:DrawerHost>
|
|
|
|
|
</Border>
|
|
|
|
|
|