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

For RadExtendedTileData does setting the VisualElement set both the front and back tile.

1 Answer 40 Views
LiveTileHelper
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tom
Top achievements
Rank 1
Tom asked on 08 Dec 2012, 04:43 PM
Hello,

I have a telerik tile control within xaml. I have set both front and back for the tile control. I then use this tile to set the RadExtendedTileData.
VisualElement. Should it not set both the front and back secondary tile that I'm trying to create?

public MainPage()
    {
        InitializeComponent();
 
        this.frontTile.SetCityName(this.cityname.Text);
        this.radHubTile.Height = 173;
        this.radHubTile.Width = 173;
        this.frontTile.SetProperties(new BitmapImage(new Uri("/Images/sunny.png", UriKind.RelativeOrAbsolute)),
            String.Format("25{0}", DegreeSign));
        this.radHubTile.FrontContent = this.frontTile;
        this.radHubTile.BackContent = this.backTile;
    }
 
    private void RadImageButton_Tap_1(object sender, System.Windows.Input.GestureEventArgs e)
    {
        RadExtendedTileData tileData = new RadExtendedTileData()
        {
            VisualElement = Tile
              
        };
        Uri tileUri = new Uri("/MainPage.xaml", UriKind.RelativeOrAbsolute);
        ShellTile tile = Telerik.Windows.Controls.LiveTileHelper.GetTile(tileUri);
                     
        if (tile != null)
        {
            tile.Delete();
        }
 
        Telerik.Windows.Controls.LiveTileHelper.CreateTile(tileData, tileUri);
    }



1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 13 Dec 2012, 08:04 AM
Hello Tom,

This is not the way LiveTileHelper works. What it does is to make an image of the element that you specify for VisualElement and another image for the element that you specify for BackVisualElement. It disregards whether the element that you provide for VisualElement has back side or not, it just makes the picture of the element as it looks in the moment you set the VisualElement.

I hope this information helps.

Kind regards,
Todor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
LiveTileHelper
Asked by
Tom
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or