public MeniuSus(Canvas ch) { ch.Children.Clear(); AfisareSubmeniuDonatii(); // MessageBox.Show("ok"); //campanii C = new campanii("sfgh"); CampaniiPage CP = new CampaniiPage(); CP.Width = ch.Width; Canvas.SetLeft(CP, 0); Canvas.SetTop(CP, 0); ch.Children.Add(CP); }
void Campaigns_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { //aici?ce?undei butonul de donatii? ch.Children.Clear(); AfisareSubmeniuDonatii(); // MessageBox.Show("ok"); //campanii C = new campanii("sfgh"); CampaniiPage CP = new CampaniiPage(); CP.Width = ch.Width; Canvas.SetLeft(CP, 0); Canvas.SetTop(CP, 0); ch.Children.Add(CP); //MessageBox.Show(DP.ActualWidth.ToString() + C.ActualHeight); }