Exemplo n.º 1
0
        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            while (this.NavigationService.BackStack.Any())
            {
                this.NavigationService.RemoveBackEntry();
            }

            if (AppResources.ResourceManager.GetString(UppercaseFirst(settings["filter"].ToString()), AppResources.Culture) + " > " + settings["likes"].ToString() + " likes" != Filterslabel.Text)
            {
                GetData();
                if (ContentList != null && ContentList.Items.Count > 0)
                {
                    ContentList.ScrollIntoView(ContentList.Items.First());
                }
            }

            if (ContentList == null || ContentList.Items.Count == 0)
            {
                MessageText.Text = AppResources.GettingData;
                BitmapImage image = new BitmapImage {
                    UriSource = new Uri("Resources/Images/hourglass.png", UriKind.Relative)
                };
                Messageimage.Source = image;
                GetData();
            }

            Filterslabel.Text = AppResources.ResourceManager.GetString(UppercaseFirst(settings["filter"].ToString()), AppResources.Culture) + " > " + settings["likes"].ToString() + " likes";
        }
Exemplo n.º 2
0
 private void Refresh_Click(object sender, EventArgs e)
 {
     GetData();
     if (ContentList.Items.Count > 0)
     {
         ContentList.ScrollIntoView(ContentList.Items.First());
     }
 }
Exemplo n.º 3
0
        private void AddTileSource(PointCloudTileSource tileSource)
        {
            int index = ContentList.Items.Add(tileSource);

            ContentList.SelectedIndex = index;
            ContentList.ScrollIntoView(tileSource);

            UpdateSelection(tileSource);

            UpdateButtonStates();
        }