diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-11-27 19:10:18 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-11-27 19:10:18 +0200 |
| commit | 3f22291740c0ac631a655495f6198dbf18be2de2 (patch) | |
| tree | 3a5106dfc6258b5a30dce8e26f78a65b0b7a87d3 /Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.xaml | |
| parent | ca29510e1e336c4d68aaa926cfea6eb72ce42779 (diff) | |
| download | Tango-3f22291740c0ac631a655495f6198dbf18be2de2.tar.gz Tango-3f22291740c0ac631a655495f6198dbf18be2de2.zip | |
A lot of work !!!
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.xaml')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.xaml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.xaml b/Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.xaml new file mode 100644 index 000000000..494e7442e --- /dev/null +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.xaml @@ -0,0 +1,43 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:keyboard="clr-namespace:Tango.Touch.Keyboard" + xmlns:local="clr-namespace:Tango.Touch.Controls"> + + <ResourceDictionary.MergedDictionaries> + <ResourceDictionary Source="../Resources/Colors.xaml" /> + </ResourceDictionary.MergedDictionaries> + + + <Style TargetType="{x:Type local:TouchMultiLineTextBox}"> + <Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter> + <Setter Property="BorderBrush" Value="{StaticResource TangoDividerBrush}"></Setter> + <Setter Property="Foreground" Value="{StaticResource TangoDarkForegroundBrush}"></Setter> + <Setter Property="AcceptsReturn" Value="True"></Setter> + <Setter Property="TextWrapping" Value="Wrap"></Setter> + <Setter Property="Height" Value="60"></Setter> + <Setter Property="Padding" Value="5"></Setter> + <Setter Property="CornerRadius" Value="3"></Setter> + <Setter Property="BorderThickness" Value="1"></Setter> + <Setter Property="keyboard:KeyboardView.Mode" Value="AlphaNumeric"></Setter> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="{x:Type local:TouchMultiLineTextBox}"> + <Border x:Name="border" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True"> + <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/> + </Border> + <ControlTemplate.Triggers> + <Trigger Property="IsEnabled" Value="false"> + <Setter Property="Opacity" TargetName="border" Value="0.56"/> + </Trigger> + <Trigger Property="IsMouseOver" Value="true"> + <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TangoDarkForegroundBrush}"/> + </Trigger> + <Trigger Property="IsKeyboardFocused" Value="true"> + <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TangoDarkForegroundBrush}"/> + </Trigger> + </ControlTemplate.Triggers> + </ControlTemplate> + </Setter.Value> + </Setter> + </Style> +</ResourceDictionary>
\ No newline at end of file |
