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.
79 lines
5.3 KiB
79 lines
5.3 KiB
<UserControl x:Class="Kingo.Plugin.NYYP.View.UCTBBG" |
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
mc:Ignorable="d" |
|
d:DesignHeight="650" d:DesignWidth="550"> |
|
<UserControl.Resources> |
|
<ControlTemplate x:Key="ScrollViewerControlTemplate" TargetType="{x:Type ScrollViewer}"> |
|
<Grid x:Name="Grid" Background="{TemplateBinding Background}"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="*"/> |
|
<ColumnDefinition Width="Auto"/> |
|
</Grid.ColumnDefinitions> |
|
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="0" Margin="{TemplateBinding Padding}" /> |
|
<ScrollBar x:Name="PART_VerticalScrollBar" AutomationProperties.AutomationId="VerticalScrollBar" Cursor="Arrow" Grid.Column="1" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" |
|
Style="{DynamicResource ScrollBarStyle1}" Width="5" MinWidth="5"/> |
|
</Grid> |
|
</ControlTemplate> |
|
</UserControl.Resources> |
|
<Grid Background="White"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition /> |
|
<RowDefinition Height="auto" /> |
|
<RowDefinition /> |
|
</Grid.RowDefinitions> |
|
<Grid Grid.Row="0" x:Name="WYImgInfo"> |
|
</Grid> |
|
<GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" Height="5" /> |
|
<!--<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">--> |
|
<Grid x:Name="gridContent" Grid.Row="2" TextElement.FontSize="12" MinWidth="540"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="*"/> |
|
<ColumnDefinition Width="auto" /> |
|
<ColumnDefinition Width="*" /> |
|
</Grid.ColumnDefinitions> |
|
<!--<ScrollViewer Grid.Row="0" Grid.Column="0" x:Name="scrollContent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Template="{DynamicResource ScrollViewerControlTemplate}">--> |
|
<Grid> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="auto" /> |
|
<RowDefinition Height="auto" /> |
|
<RowDefinition /> |
|
</Grid.RowDefinitions> |
|
<!--<TreeView x:Name="tvDataList" Grid.Row="0" SelectedItemChanged="tvDataList_SelectedItemChanged" PreviewMouseUp="tvDataList_PreviewMouseUp" MouseDown="tvDataList_MouseDown"> |
|
</TreeView>--> |
|
<ListBox x:Name="tvDataList" SelectionChanged="tvDataList_SelectionChanged" PreviewMouseUp="tvDataList_PreviewMouseUp" Padding="30,0" > |
|
<ListBox.Template> |
|
<ControlTemplate TargetType="{x:Type ListBox}"> |
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"> |
|
<WrapPanel Orientation="Horizontal" IsItemsHost="True" ScrollViewer.CanContentScroll="True"/> |
|
</ScrollViewer> |
|
</ControlTemplate> |
|
</ListBox.Template> |
|
</ListBox> |
|
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Background="#F6F6F6" Orientation="Horizontal" Height="34" > |
|
<Image Source="pack://siteoforigin:,,,/Images/test.png" VerticalAlignment="Top" Height="18" Width="18" Margin="5,9,5,0"/> |
|
<TextBlock VerticalAlignment="Center" Text="图斑信息"></TextBlock> |
|
</StackPanel> |
|
<Grid x:Name="TBInfo" Margin="4,2" Grid.Row="2"> |
|
<!--<local:UCWYInfo />--> |
|
</Grid> |
|
</Grid> |
|
<GridSplitter Grid.Row="0" Grid.Column="1" HorizontalAlignment="Stretch" Width="5" /> |
|
<!--<ScrollViewer Grid.Row="0" Grid.Column="2" x:Name="scrollwyContent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Template="{DynamicResource ScrollViewerControlTemplate}">--> |
|
<Grid Margin="4,2" Grid.Row="0" Grid.Column="2"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="auto" /> |
|
<RowDefinition /> |
|
</Grid.RowDefinitions> |
|
<Grid> |
|
<Label x:Name="labIsProof" Content="图斑已举证" Margin="5" FontSize="16" FontWeight="Bold" Foreground="Green" /> |
|
</Grid> |
|
<Grid x:Name="WYInfo" Grid.Row="1"> |
|
<!--<local:UCWYInfo />--> |
|
</Grid> |
|
</Grid> |
|
</Grid> |
|
</Grid> |
|
</UserControl>
|
|
|