Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara authored Oct 19, 2023
1 parent f5c5388 commit cca3546
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
3 changes: 3 additions & 0 deletions ModernWpf/Styles/Hyperlink.xaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:primitives="clr-namespace:ModernWpf.Controls.Primitives">

<sys:Boolean x:Key="HyperlinkUnderlineVisible">False</sys:Boolean>

<Style x:Key="DefaultHyperlinkStyle" TargetType="Hyperlink">
<Setter Property="Foreground" Value="{DynamicResource HyperlinkForeground}" />
<Setter Property="TextDecorations" Value="Underline" />
Expand Down
2 changes: 2 additions & 0 deletions ModernWpf/Styles/ListView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<sys:Double x:Key="GridViewColumnHeaderMinHeight">33</sys:Double>
<sys:Double x:Key="GridViewItemContainerMinHeight">32</sys:Double>

<sys:Boolean x:Key="ListViewBaseItemRoundedChromeEnabled">True</sys:Boolean>

<Style x:Key="DefaultListViewItemStyle" TargetType="ListViewItem">
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
Expand Down
26 changes: 16 additions & 10 deletions test/ModernWpfTestApp/CommonStylesPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,14 @@
ui:ControlHelper.Header="RichEditBox"
HorizontalAlignment="Right"
VerticalAlignment="Top" />
<TextBlock Grid.Row="7">
<Run>Pre-hyperlink</Run>
<Hyperlink NavigateUri="http://www.bing.com">Bing</Hyperlink>
<Run>Post-hyperlink</Run>
</TextBlock>
<StackPanel Orientation="Horizontal" Grid.Row="7">
<TextBlock Margin="2,0,2,0">
<Run>Pre-hyperlink</Run>
<Hyperlink NavigateUri="http://www.bing.com">Bing</Hyperlink>
<Run>Post-hyperlink</Run>
</TextBlock>
<HyperlinkButton Margin="2,0,2,0" Content="Microsoft.com HyperlinkButton" NavigateUri="http://www.microsoft.com"/>
</StackPanel>
</Grid>
</StackPanel>
</Border>
Expand Down Expand Up @@ -385,11 +388,14 @@
Grid.Row="6"
ui:ControlHelper.Header="RichEditBox"
VerticalAlignment="Top" />
<TextBlock Grid.Row="7">
<Run>Pre-hyperlink</Run>
<Hyperlink NavigateUri="http://www.bing.com">Bing</Hyperlink>
<Run>Post-hyperlink</Run>
</TextBlock>
<StackPanel Orientation="Horizontal" Grid.Row="7">
<TextBlock Margin="2,0,2,0">
<Run>Pre-hyperlink</Run>
<Hyperlink NavigateUri="http://www.bing.com">Bing</Hyperlink>
<Run>Post-hyperlink</Run>
</TextBlock>
<HyperlinkButton Margin="2,0,2,0" Content="Microsoft.com HyperlinkButton" NavigateUri="http://www.microsoft.com"/>
</StackPanel>
</Grid>
</StackPanel>
</Border>
Expand Down

0 comments on commit cca3546

Please sign in to comment.