| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <UserControl x:Class="ivf_tl_Manage.Views.TestView"
- 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"
- xmlns:local="clr-namespace:ivf_tl_Manage.Views"
- xmlns:oxy="http://oxyplot.org/wpf"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Width="1830" Height="1015"
- FontFamily="{StaticResource sourceHan}">
- <UserControl.Resources>
- <SolidColorBrush x:Key="ListBox.Static.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ListBox.Static.Border" Color="#FFABADB3"/>
- <SolidColorBrush x:Key="ListBox.Disabled.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ListBox.Disabled.Border" Color="#FFD9D9D9"/>
- <Style x:Key="DateListBoxStyle" TargetType="{x:Type ListBox}">
- <Setter Property="Background" Value="{StaticResource ListBox.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource ListBox.Static.Border}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
- <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1" SnapsToDevicePixels="true">
- <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </ScrollViewer>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Canvas Width="1830" Height="1015">
- <Canvas Canvas.Left="20" Canvas.Top="107" Width="895" Height="402" Background="Transparent">
- <ListBox Style="{DynamicResource ListBoxStyle1}" Width="100" Height="100" Background="Red"/>
- </Canvas>
- <!--<oxy:PlotView Width="895" Height="402" x:Name="_plot" Model="{Binding HistoryModel}"/>-->
- <TextBlock Text="2222" FontSize="18" Canvas.Top="500"/>
- </Canvas>
- </UserControl>
|