Skip to content

Instantly share code, notes, and snippets.

@timheuer
Created December 21, 2012 21:44
Show Gist options
  • Save timheuer/4356040 to your computer and use it in GitHub Desktop.
Save timheuer/4356040 to your computer and use it in GitHub Desktop.
hack for a read more block
<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>
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