timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
337 stars 108 forks source link

Live Tiles Showing double images on start #65

Open pjbeaton opened 12 years ago

pjbeaton commented 12 years ago

I'm running into a problem with live tiles showing two images vertically during page startup. My code is below:

XAML: <callisto:LiveTile x:Name="liveTile4" ItemsSource="{Binding}" Background="Blue" Width="260" Height="230" Grid.Column="4" Grid.Row="1" Margin="20" Tapped="Rewards_Tapped"> callisto:LiveTile.ItemTemplate

            /callisto:LiveTile.ItemTemplate
        /callisto:LiveTile

CS:

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        List<LiveTileData> tileData = new List<LiveTileData>();
        List<LiveTileData> tileData2 = new List<LiveTileData>();
        List<LiveTileData> tileData3 = new List<LiveTileData>();
        List<LiveTileData> tileData4 = new List<LiveTileData>();

        tileData.Add(new LiveTileData()
        {
            Name = "Lists",
            Description = "Choose between lists set up",
            ImageUri = new Uri("ms-appx:/Assets/check-list-hi.png"),
        });
        tileData2.Add(new LiveTileData()
        {
            Name = "Members",
            Description = "Manage members",
            ImageUri = new Uri("ms-appx:/Assets/people.png"),
        });
        tileData3.Add(new LiveTileData()
        {
            Name = "Leaderboard",
            Description = "Manage members",
            ImageUri = new Uri("ms-appx:/Assets/leaderboard.png"),
        });
        tileData4.Add(new LiveTileData()
        {
            Name = "Rewards",
            Description = "Manage rewards",
            ImageUri = new Uri("ms-appx:/Assets/leaderboard.png"),
        });            

        liveTile.ItemsSource = tileData;
        liveTile2.ItemsSource = tileData2;
        liveTile3.ItemsSource = tileData3;
        liveTile4.ItemsSource = tileData4;

        base.OnNavigatedTo(e);
    }
timheuer commented 12 years ago

I'm not sure what you are indicating. Two of the same images? Because your code above shows two uses of leaderboard.png

pjbeaton commented 12 years ago

On Startup:

After a couple seconds:

Sent from my Windows 8 PC

From: Tim Heuer Sent: Sunday, August 05, 2012 8:55:01 PM To: Paul Beaton Subject: Re: [callisto] Live Tiles Showing double images on start (#65)

I'm not sure what you are indicating. Two of the same images? Because your code above shows two uses of leaderboard.png


Reply to this email directly or view it on GitHub: https://github.com/timheuer/callisto/issues/65#issuecomment-7514916