markus / MarkupToPDF / Controls / Custom / CustomText.xaml @ 59e0aa5f
이력 | 보기 | 이력해설 | 다운로드 (2.28 KB)
1 | 787a4489 | KangIngu | <UserControl x:Class="MarkupToPDF.Controls.Custom.CustomText" |
---|---|---|---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||
6 | xmlns:local="clr-namespace:MarkupToPDF.Controls.Custom" |
||
7 | mc:Ignorable="d" |
||
8 | d:DesignHeight="300" d:DesignWidth="300"> |
||
9 | <Grid>
|
||
10 | <TextBox x:Name="T_Box" Text="TEST"> |
||
11 | <TextBox.Template>
|
||
12 | <ControlTemplate TargetType="TextBox"> |
||
13 | <Border Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" |
||
14 | BorderBrush="{TemplateBinding BorderBrush}" |
||
15 | Background="{TemplateBinding Background}" |
||
16 | SnapsToDevicePixels="true"> |
||
17 | <ScrollViewer Name="PART_ContentHost" Background="{TemplateBinding Background}" |
||
18 | SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
||
19 | </Border>
|
||
20 | <ControlTemplate.Triggers>
|
||
21 | <Trigger Property="IsEnabled" Value="False"> |
||
22 | <!--<Setter TargetName="PART_ContentHost" Property="Background" Value="Blue"/>-->
|
||
23 | <Setter TargetName="PART_ContentHost" Property="Opacity" Value="1"/> |
||
24 | </Trigger>
|
||
25 | </ControlTemplate.Triggers>
|
||
26 | </ControlTemplate>
|
||
27 | <!--<ControlTemplate TargetType="TextBox" x:Name="Custom_TB">
|
||
28 | <ControlTemplate.Triggers>
|
||
29 | <Trigger Property="IsEnabled" Value="False">
|
||
30 | <Setter Property="Opacity" Value="1"></Setter>
|
||
31 | </Trigger>
|
||
32 | <Trigger Property="IsEnabled" Value="True">
|
||
33 | <Setter Property="Opacity" Value="1"></Setter>
|
||
34 | </Trigger>
|
||
35 | </ControlTemplate.Triggers>
|
||
36 | </ControlTemplate>-->
|
||
37 | </TextBox.Template>
|
||
38 | </TextBox>
|
||
39 | </Grid>
|
||
40 | </UserControl> |