コード例 #1
0
        public MainView()
        {
            InitializeComponent();
            Loaded += (o, e) => {
                menuItems.SelectionChanged += (o1, e1) =>
                                              menuResolver.Resolver = menuItems.SelectedItem as IViewTypeResolverItem;
                menuItems.GetItems().First().Selected = true;
            };

            btHide.Click += (o, e) => {
                if (columnMenu.Width.Value == 173)
                {
                    columnMenu.Width = new GridLength(50);
                    rowTop.Height    = new GridLength(0);
                    btHide.Icon      = Icons.Icon.ArrowCollapsed;
                }
                else
                {
                    columnMenu.Width = new GridLength(173);
                    rowTop.Height    = GridLength.Auto;
                    btHide.Icon      = Icons.Icon.ArrowExpand;
                }
            };

            btShutdownParams.Click += (o, e) => OtherParamsView.Show();
        }
コード例 #2
0
        public static void Show()
        {
            var paramsView = new OtherParamsView();
            var dialogView = new DialogView(paramsView);

            dialogView.Show();
        }