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);
            }
        }
Пример #2
0
 public PageDonasi()
 {
     InitializeComponent();
     ViewModelDonasi vmd = new ViewModelDonasi();
     this.DataContext = vmd;
     Navigation.From_Page = "Donasi";
 }
Пример #3
0
 public PageHome()
 {
     InitializeComponent();
     ViewModelDonasi vmd = new ViewModelDonasi();
     this.DataContext = vmd;
 }