Skip to content

Commit

Permalink
Improve example flyout
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Mar 31, 2020
1 parent 19da839 commit ba3e724
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ModernWpf/Styles/TextStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,28 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

<Style x:Key="BaseTextBlockStyle" TargetType="TextBlock">
<!--<Setter Property="FontFamily" Value="XamlAutoFontFamily" />-->
<Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.MessageFontFamilyKey}}" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="FontSize" Value="14" />
<Setter Property="TextTrimming" Value="None" />
<Setter Property="TextWrapping" Value="Wrap" />
<Setter Property="LineStackingStrategy" Value="MaxHeight" />
<!--<Setter Property="TextLineBounds" Value="Full" />-->
</Style>
<Style x:Key="HeaderTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource BaseTextBlockStyle}">
<Setter Property="FontSize" Value="46" />
<Setter Property="FontWeight" Value="Light" />
<!--<Setter Property="OpticalMarginAlignment" Value="TrimSideBearings" />-->
</Style>
<Style x:Key="SubheaderTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource BaseTextBlockStyle}">
<Setter Property="FontSize" Value="34" />
<Setter Property="FontWeight" Value="Light" />
<!--<Setter Property="OpticalMarginAlignment" Value="TrimSideBearings" />-->
</Style>
<Style x:Key="TitleTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource BaseTextBlockStyle}">
<Setter Property="FontWeight" Value="350" />
<Setter Property="FontSize" Value="24" />
<!--<Setter Property="OpticalMarginAlignment" Value="TrimSideBearings" />-->
</Style>
<Style x:Key="SubtitleTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource BaseTextBlockStyle}">
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="FontSize" Value="20" />
<!--<Setter Property="OpticalMarginAlignment" Value="TrimSideBearings" />-->
</Style>
<Style x:Key="BodyTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource BaseTextBlockStyle}">
<Setter Property="FontWeight" Value="Normal" />
Expand Down
5 changes: 5 additions & 0 deletions samples/MahAppsSample/ControlPages/ControlsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@
<Style TargetType="ui:FlyoutPresenter">
<Setter Property="Width" Value="296" />
<Setter Property="Height" Value="64" />
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled" />
</Style>
</ui:Flyout.FlyoutPresenterStyle>
<TextBlock
Text="This is a flyout with placeholder text that wraps to a second line."
Style="{StaticResource BodyTextBlockStyle}" />
</ui:Flyout>
</Page.Resources>

Expand Down

0 comments on commit ba3e724

Please sign in to comment.