public void ShowOptionView() { optionGrid.Children.Clear(); optionView = null; optionView = new OptionView(); optionView.SetOptionModel(ViewModel); ScrollViewer scrView = new ScrollViewer() { HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden, VerticalScrollBarVisibility = ScrollBarVisibility.Visible, Content = optionView }; optionGrid.Children.Add(scrView); optionGrid.Visibility = System.Windows.Visibility.Visible; }
public void CloseOptionView() { optionGrid.Visibility = System.Windows.Visibility.Hidden; optionGrid.Children.Clear(); optionView = null; }