public Profile(User user) { InitializeComponent(); this.user = user; this.DataContext = this; this.Resources["colorBackGroundMode"] = new SolidColorBrush(Colors.White); TransitioningContentSlide1.OnApplyTemplate(); TransitioningContentSlide2.OnApplyTemplate(); initProfile(); }
private void listViewHori_SelectionChanged(object sender, SelectionChangedEventArgs e) { Dorm dorm = listViewHori.SelectedItem as Dorm; layoutMainDorm.Children.Clear(); TransitioningContentSlide1.OnApplyTemplate(); layoutMainDorm.VerticalAlignment = VerticalAlignment.Top; layoutMainDorm.HorizontalAlignment = HorizontalAlignment.Left; layoutMainDorm.Width = 1150; layoutMainDorm.Height = 720; layoutMainDorm.Children.Add(new ShowDorm(dorm, user, 3)); }