Created
December 21, 2012 21:44
-
-
Save timheuer/4356040 to your computer and use it in GitHub Desktop.
hack for a read more block
This file contains hidden or 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
<RichTextBlock> | |
<Paragraph> | |
<InlineUIContainer> | |
<StackPanel> | |
<TextBlock Text="Some text here" /> | |
<HyperlinkButton x:Name="ReadMoreLink" Content="READ MORE" Click="HyperlinkButton_Click_1" /> | |
<TextBlock x:Name="HiddenText" Text="Some other text" Visibility="Collapsed" /> | |
</StackPanel> | |
</InlineUIContainer> | |
</Paragraph> | |
</RichTextBlock> |
This file contains hidden or 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
private void HyperlinkButton_Click_1(object sender, RoutedEventArgs e) | |
{ | |
HiddenText.Visibility = Windows.UI.Xaml.Visibility.Visible; | |
ReadMoreLink.Visibility = Windows.UI.Xaml.Visibility.Collapsed; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment