예제 #1
0
        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;
        }
예제 #2
0
 public void CloseOptionView()
 {
     optionGrid.Visibility = System.Windows.Visibility.Hidden;
     optionGrid.Children.Clear();
     optionView = null;
 }