예제 #1
0
        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;
        }
예제 #2
0
        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();
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }