Skip to content

Commit

Permalink
Replacing FontSize property (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point authored Nov 17, 2023
1 parent 53640b2 commit 9bcd1ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions src/Wpf.Ui/Controls/TextBlock/TextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ namespace Wpf.Ui.Controls;
/// </summary>
public class TextBlock : System.Windows.Controls.TextBlock
{
static TextBlock()
{
TextElement
.FontSizeProperty
.OverrideMetadata(typeof(System.Windows.Controls.TextBlock), new FrameworkPropertyMetadata(14.0));
}

/// <summary>
/// Property for <see cref="FontTypography"/>.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/Wpf.Ui/Controls/TextBlock/TextBlock.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<!-- The Display option causes a large aliasing effect -->
<!--<Setter Property="TextOptions.TextFormattingMode" Value="Ideal" />-->
<Setter Property="Background" Value="Transparent" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="Focusable" Value="False" />
Expand Down

0 comments on commit 9bcd1ca

Please sign in to comment.