private void OnToggleSwitch(object sender, RoutedEventArgs e) { SplitViewMenu.Width = GetColumnZeroWidth(); CurrentAppMode = AppMode.ToggleSwitch; //AppTitle = Enum.GetName(typeof(AppMode), CurrentAppMode); //获取其描述 更加直观 string desc = CurrentAppMode.GetAttributeOfType <DescriptionAttribute>().Description; AppTitle = desc; }
private void OnFluidWrapPanel(object sender, RoutedEventArgs e) { SplitViewMenu.Width = GetColumnZeroWidth(); CurrentAppMode = AppMode.FluidWrapPanel; //AppTitle = Enum.GetName(typeof(AppMode), CurrentAppMode); //获取其描述 更加直观 string desc = CurrentAppMode.GetAttributeOfType <DescriptionAttribute>().Description; AppTitle = desc; RefreshFluidWrapPanel(); }
private void OnFluidProgressBar(object sender, RoutedEventArgs e) { ProgressBarA.Visibility = Visibility.Visible; ProgressBarB.Visibility = Visibility.Visible; SplitViewMenu.Width = GetColumnZeroWidth(); CurrentAppMode = AppMode.FluidProgressBar; //AppTitle = Enum.GetName(typeof(AppMode), CurrentAppMode); //获取其描述 更加直观 string desc = CurrentAppMode.GetAttributeOfType <DescriptionAttribute>().Description; AppTitle = desc; }
private void OnSprocketControl(object sender, RoutedEventArgs e) { sprocketControl1.Visibility = Visibility.Visible; sprocketControl2.Visibility = Visibility.Visible; SplitViewMenu.Width = GetColumnZeroWidth(); CurrentAppMode = AppMode.SprocketControl; //AppTitle = Enum.GetName(typeof(AppMode), CurrentAppMode); //获取其描述 更加直观 string desc = CurrentAppMode.GetAttributeOfType <DescriptionAttribute>().Description; AppTitle = desc; }