Ejemplo n.º 1
0
        private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            PivotItem selecteditem = (PivotItem)e.AddedItems[0];
            string pivotTag = (string)selecteditem.Tag;

            if (pivotTag.Equals("satu"))
            {
                NewsBorder.Visibility = Visibility.Visible;

                
                DonateBorder.Visibility = Visibility.Collapsed;
                DataContext = new ViewModelProfileDonatur();
                //ApplicationBar.Buttons.RemoveAt(0);
                //ApplicationBar.Buttons.RemoveAt(0);
                //idJenjang = "1";
            }
            if (pivotTag.Equals("dua"))
            {
                NewsBorder.Visibility = Visibility.Collapsed;
                
                DonateBorder.Visibility = Visibility.Visible;
                DataContext = new ViewModelDonasi();

                //ApplicationBarIconButton a = new ApplicationBarIconButton();
                //a.Text = "filter";
                //a.IconUri = new Uri("/Assets/Icons/ic_32_filter.png", UriKind.Relative);
                //ApplicationBar.Buttons.Add(a);

                //ApplicationBarIconButton b = new ApplicationBarIconButton();
                //b.Text = "nearby";
                //b.IconUri = new Uri("/Assets/Icons/ic_48_nearby.png", UriKind.Relative);
                //ApplicationBar.Buttons.Add(b);
            }
        }
Ejemplo n.º 2
0
 public NewHomepage()
 {
     InitializeComponent();
     ViewModelProfileDonatur vmn = new ViewModelProfileDonatur();
     this.DataContext = vmn;
 }