-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make TextEnhancementView.xaml look better
- Loading branch information
Showing
4 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" | ||
xmlns:themes="clr-namespace:ChatPrisma.Themes"> | ||
<Style TargetType="TextBox"> | ||
<Setter Property="Foreground" Value="White"/> | ||
<Setter Property="CaretBrush" Value="White"/> | ||
<Setter Property="Height" Value="30"/> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="TextBox"> | ||
<GroupBox> | ||
<Grid Margin="-10, -8, -10, -10" x:Name="BackgroundGrid" Background="#05FFFFFF"> | ||
<Grid Margin="6,7,6,2"> | ||
<TextBlock Text="{Binding Path=(themes:Attached.Placeholder), RelativeSource={RelativeSource TemplatedParent}}" | ||
Margin="2, 0, 0, 0" | ||
Foreground="Gray" | ||
Visibility="{DXBinding '@p.Text != null and @p.Text.Length > 0 ? $Visibility.Collapsed : $Visibility.Visible'}" /> | ||
|
||
<ScrollViewer x:Name="PART_ContentHost" | ||
VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}" | ||
HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}"/> | ||
</Grid> | ||
|
||
<Rectangle Name="BottomLine" Height="2" VerticalAlignment="Bottom" Fill="#00C2FC" Visibility="Collapsed" /> | ||
</Grid> | ||
</GroupBox> | ||
<ControlTemplate.Triggers> | ||
<Trigger Property="IsFocused" Value="True"> | ||
<Setter TargetName="BottomLine" Property="Visibility" Value="Visible"/> | ||
<Setter TargetName="BackgroundGrid" Property="Background" Value="Transparent" /> | ||
</Trigger> | ||
</ControlTemplate.Triggers> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters