This is a migrated thread and some comments may be shown as answers.

Adding hyperlink to First Look?

1 Answer 56 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Weeble
Top achievements
Rank 1
Weeble asked on 11 Oct 2011, 11:05 AM
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!

1 Answer, 1 is accepted

Sort by
0
Weeble
Top achievements
Rank 1
answered on 11 Oct 2011, 11:50 AM
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 :)
Tags
CoverFlow
Asked by
Weeble
Top achievements
Rank 1
Answers by
Weeble
Top achievements
Rank 1
Share this question
or