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.
37 lines
1.8 KiB
37 lines
1.8 KiB
10 months ago
|
<UserControl x:Class="SunlightCentralizedControlManagement_SCCM_.UserControls.RoilingTextBlock"
|
||
12 months ago
|
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"
|
||
10 months ago
|
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.UserControls"
|
||
12 months ago
|
mc:Ignorable="d"
|
||
|
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
||
|
d:DesignWidth="300" Height="30" >
|
||
|
<UserControl.Template>
|
||
|
<ControlTemplate TargetType="UserControl">
|
||
|
<Border BorderBrush="White"
|
||
|
BorderThickness="1"
|
||
|
Padding="2"
|
||
|
Background="White">
|
||
|
<Canvas x:Name="innerCanvas"
|
||
|
Width="Auto"
|
||
|
Height="Auto"
|
||
|
Background="White"
|
||
|
ClipToBounds="True">
|
||
|
<TextBlock x:Name="textBlock"
|
||
|
Width="Auto"
|
||
|
Height="Auto"
|
||
|
ClipToBounds="True"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="{Binding Left,Mode=TwoWay}"
|
||
|
Canvas.Top="{Binding Top,Mode=TwoWay}"
|
||
|
FontSize="{Binding FontSize,Mode=TwoWay}"
|
||
|
Text="{Binding Text,Mode=TwoWay}"
|
||
|
Foreground="{Binding Foreground,Mode=TwoWay}"/>
|
||
|
</Canvas>
|
||
|
|
||
|
</Border>
|
||
|
</ControlTemplate>
|
||
|
</UserControl.Template>
|
||
|
</UserControl>
|