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.
29 lines
1.2 KiB
29 lines
1.2 KiB
3 years ago
|
<UserControl x:Class="ECMonitor.Page.CameraMonitor.CameraTreeView"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:mvvm="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"
|
||
|
xmlns:video="clr-namespace:EC.Entity.Video;assembly=EC.Entity"
|
||
|
mc:Ignorable="d"
|
||
|
mvvm:ViewModelLocator.AutoWireViewModel="True"
|
||
|
d:DesignHeight="450" d:DesignWidth="300">
|
||
|
|
||
|
<Grid MinWidth="200">
|
||
|
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<TreeView Grid.Row="0" ItemsSource="{Binding MsVideoRecorderList,Mode=OneWay}" MinWidth="200" MouseDoubleClick="TreeView_MouseDoubleClick">
|
||
|
<TreeView.Resources>
|
||
|
<HierarchicalDataTemplate DataType="{x:Type video:MsVideoRecorder}" ItemsSource="{Binding MsCameraSettingList}">
|
||
|
<TextBlock Text="{Binding DeviceName}" Margin="3,2" />
|
||
|
</HierarchicalDataTemplate>
|
||
|
<DataTemplate DataType="{x:Type video:MonitorCamera}">
|
||
|
<TextBlock Text="{Binding CameraName}" Margin="3 2" />
|
||
|
</DataTemplate>
|
||
|
</TreeView.Resources>
|
||
|
</TreeView>
|
||
|
</Grid>
|
||
|
</UserControl>
|