|
27 | 27 | <GradientStop Color="#FF787878" Offset="1"/>
|
28 | 28 | <GradientStop Color="White" Offset="0.5"/>
|
29 | 29 | </LinearGradientBrush>
|
| 30 | + <LinearGradientBrush x:Key="BS_LightBackgroundHighlight" StartPoint="0,0" EndPoint="0,1"> |
| 31 | + <LinearGradientBrush.GradientStops> |
| 32 | + <GradientStopCollection> |
| 33 | + <GradientStop Color="#D0D0D0" Offset="0.0" /> |
| 34 | + <GradientStop Color="#A5A5A5" Offset="1.0" /> |
| 35 | + </GradientStopCollection> |
| 36 | + </LinearGradientBrush.GradientStops> |
| 37 | + </LinearGradientBrush> |
30 | 38 |
|
31 | 39 | <ContextMenu x:Key="BinContextMenu" >
|
32 | 40 | <MenuItem Header="换至当前仓" Command="{x:Static local:DeviceCommand.ManualChangeStore}"/>
|
|
13444 | 13452 | </Setter.Value>
|
13445 | 13453 | </Setter>
|
13446 | 13454 | </Style>
|
| 13455 | + |
| 13456 | + <Style x:Key="{x:Type local:ZoomSlideControl}" TargetType="{x:Type local:ZoomSlideControl}"> |
| 13457 | + <Setter Property="SnapsToDevicePixels" Value="true" /> |
| 13458 | + <Setter Property="BorderBrush" Value="#FF7D7D7D" /> |
| 13459 | + <Setter Property="Background" Value="#FF333333" /> |
| 13460 | + <Setter Property="Foreground" Value="#FFCCCCCC" /> |
| 13461 | + <Setter Property="BorderThickness" Value="1" /> |
| 13462 | + <Setter Property="MinHeight" Value="120" /> |
| 13463 | + <Setter Property="MinHeight" Value="120" /> |
| 13464 | + <Setter Property="MinWidth" Value="40" /> |
| 13465 | + <Setter Property="ContOpacity" Value="1.0" /> |
| 13466 | + <Setter Property="Template"> |
| 13467 | + <Setter.Value> |
| 13468 | + <ControlTemplate TargetType="{x:Type local:ZoomSlideControl}"> |
| 13469 | + <Border Grid.Column="1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Margin="0"> |
| 13470 | + <Grid> |
| 13471 | + <Grid.RowDefinitions> |
| 13472 | + <RowDefinition Height="13" /> |
| 13473 | + <RowDefinition Height="10" /> |
| 13474 | + <RowDefinition /> |
| 13475 | + <RowDefinition Height="10" /> |
| 13476 | + <RowDefinition Height="20" /> |
| 13477 | + </Grid.RowDefinitions> |
| 13478 | + <Grid Name="PART_outerGrid" Background="{TemplateBinding Background}" RowSpan="5" Opacity="{Binding Path=ContOpacity, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 13479 | + <TextBlock Name="PART_DisplayText" TextAlignment="Center" FontSize="9" VerticalAlignment="Center" Text="{Binding Path=Zoom, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource zoomSlideDisplayConverter}}" |
| 13480 | + Opacity="{Binding Path=ContOpacity, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 13481 | + <Slider Name="PART_Slider" Grid.Row="2" TickPlacement="Both" Orientation="Vertical" LargeChange="10" SmallChange="1" TickFrequency="10" MinHeight="100" HorizontalAlignment="Center" Maximum="{Binding Path=MaxZoomTick, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" |
| 13482 | + Minimum="{Binding Path=MinZoomTick, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Value="{Binding Path=ZoomTick, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Opacity="{Binding Path=ContOpacity, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 13483 | + <Button Name="PART_FitPageButton" Grid.Row="4" Command="Zoom" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Opacity="{Binding Path=ContOpacity, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"> |
| 13484 | + <Grid> |
| 13485 | + <Canvas Height="12" Width="18"> |
| 13486 | + <Rectangle Canvas.Left="3" Canvas.Top="3" Height="6" Width="12" Stroke="{StaticResource BS_LightBackgroundHighlight}" Fill="{StaticResource BS_LightBackgroundHighlight}" /> |
| 13487 | + <Rectangle Canvas.Left="1" Canvas.Top="1" Height="2" Width="2" Stroke="{StaticResource BS_LightBackgroundHighlight}" Fill="{StaticResource BS_LightBackgroundHighlight}" /> |
| 13488 | + <Rectangle Canvas.Left="1" Canvas.Top="9" Height="2" Width="2" Stroke="{StaticResource BS_LightBackgroundHighlight}" Fill="{StaticResource BS_LightBackgroundHighlight}" /> |
| 13489 | + <Rectangle Canvas.Left="15" Canvas.Top="9" Height="2" Width="2" Stroke="{StaticResource BS_LightBackgroundHighlight}" Fill="{StaticResource BS_LightBackgroundHighlight}" /> |
| 13490 | + <Rectangle Canvas.Left="15" Canvas.Top="1" Height="2" Width="2" Stroke="{StaticResource BS_LightBackgroundHighlight}" Fill="{StaticResource BS_LightBackgroundHighlight}" /> |
| 13491 | + </Canvas> |
| 13492 | + </Grid> |
| 13493 | + </Button> |
| 13494 | + <Button Name="PART_ZoomInButton" Grid.Row="1" Command="IncreaseZoom" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Opacity="{Binding Path=ContOpacity, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 13495 | + <Button Name="PART_ZoomOutButton" Grid.Row="3" Command="DecreaseZoom" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Opacity="{Binding Path=ContOpacity, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
| 13496 | + </Grid> |
| 13497 | + </Border> |
| 13498 | + </ControlTemplate> |
| 13499 | + </Setter.Value> |
| 13500 | + </Setter> |
| 13501 | + </Style> |
13447 | 13502 | </ResourceDictionary>
|
0 commit comments