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

Background image not showing

2 Answers 98 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 09 Apr 2013, 10:23 PM
Hello
I am just giving TileList control a spin to see if it is an option for existing application.
I am having a problem with the background. In VS2012 XAML Designer the background is shown but when I run the program the background is White.
Any suggestions?
Thanks
<UserControl x:Class="RadControlsSilverlightApp1.MainPage"
        HorizontalAlignment="Center"
        VerticalAlignment="Center"
        mc:Ignorable="d" d:DesignWidth="1024" d:DesignHeight="768">
 
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Style TargetType="TextBlock" x:Key="TileLabelStyle">
                <Setter Property="FontSize" Value="32" />
                <Setter Property="FontFamily" Value="Arial" />
                <Setter Property="FontWeight" Value="Bold" />
                <Setter Property="Padding" Value="0 0 0 30" />
                <Setter Property="Foreground" Value="Black" />
                <Setter Property="VerticalAlignment" Value="Bottom"/>
                <Setter Property="TextAlignment" Value="Center"/>
            </Style>
        </Grid.Resources>
 
        <telerik:RadTileList x:Name="RadTileList" ScrollViewer.HorizontalScrollBarVisibility="Visible" SelectionChanged="RadTileList_SelectionChanged" >
 
            <telerik:RadTileList.PanoramaBackground>
                <Image Source="Images/background-Incare1080p.jpg" />
            </telerik:RadTileList.PanoramaBackground>
 
            <telerik:Tile TileType="Quadruple" Background="Transparent" >
                <Grid>
                    <Image Source="Buttons/CalendarBtn.png" />
                    <TextBlock Text="Kalender" Style="{StaticResource TileLabelStyle}" />
                </Grid>
            </telerik:Tile>

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 11 Apr 2013, 08:17 AM
Hello Jan,

I have tested the case on our demos and the background image there is displayed without any problems. Is there anything more specific that you do ?  

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jan
Top achievements
Rank 1
answered on 12 Apr 2013, 09:15 AM
Thanks Maya

I did use the demo code as a starting point.
Tuned out to be a rookie mistake of sorts. I had not added the folder & file to the project.
The fact that XAML Designer did show the background muddled the Waters.

Cheers
Jan
Tags
TileList
Asked by
Jan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Jan
Top achievements
Rank 1
Share this question
or