mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 02:21:15 +00:00
49 lines
2.3 KiB
XML
49 lines
2.3 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:s="clr-namespace:BrightSharp.Diagrams">
|
|
|
|
<s:DoubleFormatConverter x:Key="doubleFormatConverter"/>
|
|
|
|
<Style TargetType="{x:Type s:SizeChrome}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type s:SizeChrome}">
|
|
<Grid SnapsToDevicePixels="True">
|
|
<Path Stroke="Red"
|
|
StrokeThickness="1"
|
|
Height="10"
|
|
VerticalAlignment="Bottom"
|
|
Margin="-2,0,-2,-15"
|
|
Stretch="Fill"
|
|
Data="M0,0 0,10 M 0,5 100,5 M 100,0 100,10" StrokeDashArray="1 2"/>
|
|
<TextBlock Text="{Binding Path=Width, Converter={StaticResource doubleFormatConverter}}"
|
|
Background="White"
|
|
Padding="3,0,3,0"
|
|
Foreground="#FF9C3535"
|
|
Margin="0,0,0,-18"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Bottom"/>
|
|
<Path Stroke="#FF9C3535"
|
|
StrokeThickness="1"
|
|
Width="10"
|
|
HorizontalAlignment="Right"
|
|
Margin="0,-2,-15,-2"
|
|
Stretch="Fill"
|
|
Data="M5,0 5,100 M 0,0 10,0 M 0,100 10,100" StrokeDashArray="1 2"/>
|
|
<TextBlock Text="{Binding Path=Height, Converter={StaticResource doubleFormatConverter}}"
|
|
Background="White"
|
|
Foreground="#FF9C3535"
|
|
Padding="3,0,3,0"
|
|
Margin="0,0,-18,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center">
|
|
<TextBlock.LayoutTransform>
|
|
<RotateTransform Angle="90" CenterX="1" CenterY="0.5"/>
|
|
</TextBlock.LayoutTransform>
|
|
</TextBlock>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |