Adding hyperlink to First Look?

2 posts, 0 answers
  1. Weeble
    Weeble avatar
    9 posts
    Member since:
    Sep 2011

    Posted 11 Oct 2011 Link to this post

    Hi,

    I'm using the First Look example (http://demos.telerik.com/silverlight/#CoverFlow/FirstLook)... in the details at the bottom, how can I add a "Read More" with a hyperlink?

    I can't add it to the 'Description' Text block in the XAML with the hyperlink button, so was wondering about alternatives?

    <TextBlock x:Name="Description" Height="67" Margin="19,0,17,-2" VerticalAlignment="Bottom" Foreground="#FFDFDFDF"
                                                   TextWrapping="Wrap" FontSize="10.67" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
    <TextBlock.RenderTransform>
         <CompositeTransform/>
    </TextBlock.RenderTransform>
    <!-- <Run Text="Link here"/><LineBreak/> -->   
         <HyperlinkButton Content="Read more" NavigateUri="{Binding uri}" FontSize="9" Loaded="HyperlinkButton_Loaded" Width="{Binding textWidth}"/>                                               
         <Run Text="{Binding description}"/>
    </TextBlock>

    Thanks!
  2. Weeble
    Weeble avatar
    9 posts
    Member since:
    Sep 2011

    Posted 11 Oct 2011 Link to this post

    Aha!.. i've added this:

    <TextBlock x:Name="Description" Height="67" Margin="19,0,17,-2" VerticalAlignment="Bottom" Foreground="#FFDFDFDF"
                                       TextWrapping="Wrap" FontSize="10.67" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
                                        <TextBlock.RenderTransform>
                                            <CompositeTransform/>
                                        </TextBlock.RenderTransform>
                                        <!-- <Run Text="Link here"/><LineBreak/> -->   
                                        <Run Text="{Binding description}"/>
                                    </TextBlock>                                            
                                </Border>
     
                                <HyperlinkButton x:Name="buttonOfHyperlinkness" Content="More.." NavigateUri="{Binding uri}" FontSize="9" Loaded="HyperlinkButton_Loaded"
                                                 VerticalAlignment="Bottom" Margin="2,0,10,-17" />
                            </Grid>

    To the bottom, and this seems to do the trick :)
  3. DevCraft banner
Back to Top