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(); }
public static void Show() { var paramsView = new OtherParamsView(); var dialogView = new DialogView(paramsView); dialogView.Show(); }