Example #1
0
 private void zOffice2016Colorful_Click(object sender, RoutedEventArgs e)
 {
     SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016Colorful); ComputList();
 }
Example #2
0
 /// <summary>
 /// Handles the 12 event of the Button_Click control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
 private void Button_Click_12(object sender, RoutedEventArgs e)
 {
     window.Background = System.Windows.Media.Brushes.Silver;
     SfSkinManager.SetVisualStyle(this, VisualStyles.Office2010Silver);
 }
Example #3
0
 private void ButtonBase2_OnClick(object sender, RoutedEventArgs e)
 {
     window.Background = System.Windows.Media.Brushes.White;
     SfSkinManager.SetVisualStyle(this, VisualStyles.Lime);
 }
Example #4
0
        protected override void OnAttached()
        {
            base.OnAttached();

            SfSkinManager.SetVisualStyle(AssociatedObject, VisualStyle);
        }
Example #5
0
 /// <summary>
 /// Handles the 3 event of the Button_Click control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
 private void Button_Click_3(object sender, RoutedEventArgs e)
 {
     window.Background = System.Windows.Media.Brushes.LightGray;
     SfSkinManager.SetVisualStyle(this, VisualStyles.Office2013LightGray);
 }
Example #6
0
 public MainWindow()
 {
     InitializeComponent();
     SfSkinManager.SetVisualStyle(this, (VisualStyles)Enum.Parse(typeof(VisualStyles), "Office2016Colorful"));
 }
Example #7
0
 /// <summary>
 /// Initializes the theme.
 /// </summary>
 /// <param name="e">Specifies the event.</param>
 protected override void OnInitialized(EventArgs e)
 {
     SfSkinManager.SetVisualStyle(this, VisualStyles.MaterialLight);
     base.OnInitialized(e);
 }
Example #8
0
 private void Office2016Colorful_Button_Click(object sender, RoutedEventArgs e)
 {
     window.Background = System.Windows.Media.Brushes.White;
     SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016Colorful);
 }
Example #9
0
 private void VisualStudio2015_Button_Click(object sender, RoutedEventArgs e)
 {
     window.Background = System.Windows.Media.Brushes.White;
     SfSkinManager.SetVisualStyle(this, VisualStyles.VisualStudio2015);
 }
Example #10
0
 public MainWindow()
 {
     InitializeComponent();
     SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016White);
     this.Loaded += MainWindow_Loaded;
 }
Example #11
0
 public SaftSuppliers()
 {
     InitializeComponent();
     SfSkinManager.SetVisualStyle(dataGridSuppliers, VisualStyles.Blend);
 }
Example #12
0
 public Window1()
 {
     InitializeComponent();
     SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016Colorful);
 }
Example #13
0
        private void SfComboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if (this.sfComboBox1.SelectedItem.ToString() == "Office2019Colorful")
            {
                SfSkinManager.SetVisualStyle(this, "Office2019Colorful");
                this.richTextBox1.BackColor = ColorTranslator.FromHtml("#F3F3F3");
                this.gradientPanel1.BackColor = ColorTranslator.FromHtml("#F3F3F3");
                this.gradientPanel2.BackColor = ColorTranslator.FromHtml("#F3F3F3");
                this.gradientPanel1.BorderColor = ColorTranslator.FromHtml("#D2D2D2");
                this.gradientPanel2.BorderColor = ColorTranslator.FromHtml("#D2D2D2");
                this.BackColor = ColorTranslator.FromHtml("#F3F3F3");
                this.popupControlContainer1.BackColor = this.BackColor;
                this.label1.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label3.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label4.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label6.ForeColor = ColorTranslator.FromHtml("#444444");
                this.checkBoxAdv1.ThemeName = "Office2019Colorful";
                this.colorPickerUIAdv1.ThemeName = "Office2019Colorful";
                this.richTextBox1.ForeColor = ColorTranslator.FromHtml("#444444");

#if NETCORE
                this.richTextBox1.Select(this.richTextBox1.GetFirstCharIndexFromLine(0), this.richTextBox1.Lines[0].Length);
                this.richTextBox1.SelectionBackColor = ColorTranslator.FromHtml("#F3F3F3");
#endif
            }
            else if (this.sfComboBox1.SelectedItem.ToString() == "HighContrastBlack")
            {
                SfSkinManager.SetVisualStyle(this, "HighContrastBlack");
                this.richTextBox1.BackColor = System.Drawing.Color.Black;
                this.gradientPanel1.BackColor = System.Drawing.Color.Black;
                this.gradientPanel2.BackColor = System.Drawing.Color.Black;
                this.popupControlContainer1.BackColor = this.BackColor;
                this.BackColor = Color.Black;
                this.label1.ForeColor = ColorTranslator.FromHtml("#FFFFFF");
                this.label3.ForeColor = ColorTranslator.FromHtml("#FFFFFF");
                this.label4.ForeColor = ColorTranslator.FromHtml("#FFFFFF");
                this.label6.ForeColor = ColorTranslator.FromHtml("#FFFFFF");
                this.checkBoxAdv1.ThemeName = "HighContrastBlack";
                this.colorPickerUIAdv1.ThemeName = "HighContrastBlack";
                this.richTextBox1.ForeColor = Color.White;
                this.gradientPanel1.BorderColor = ColorTranslator.FromHtml("#FFFFFF");
#if NETCORE
                this.richTextBox1.Select(this.richTextBox1.GetFirstCharIndexFromLine(0), this.richTextBox1.Lines[0].Length);
                this.richTextBox1.SelectionBackColor = ColorTranslator.FromHtml("#000000");
#endif
            }
            else if (this.sfComboBox1.SelectedItem.ToString() == "Office2016Black")
            {
                SfSkinManager.SetVisualStyle(this, "Office2016Black");
                this.richTextBox1.BackColor = ColorTranslator.FromHtml("#0a0a0a");
                this.gradientPanel1.BackColor = ColorTranslator.FromHtml("#0a0a0a");
                this.gradientPanel2.BackColor = ColorTranslator.FromHtml("#0a0a0a");
                this.BackColor = ColorTranslator.FromHtml("#0a0a0a");
                this.popupControlContainer1.BackColor = this.BackColor;
                this.label1.ForeColor = ColorTranslator.FromHtml("#b4b4b4");
                this.label3.ForeColor = ColorTranslator.FromHtml("#b4b4b4");
                this.label4.ForeColor = ColorTranslator.FromHtml("#b4b4b4");
                this.label6.ForeColor = ColorTranslator.FromHtml("#b4b4b4");
                this.checkBoxAdv1.ThemeName = "Office2016Black";
                this.colorPickerUIAdv1.ThemeName = "Office2016Black";
                this.gradientPanel1.BorderColor = Color.WhiteSmoke;
                this.gradientPanel2.BorderColor = Color.WhiteSmoke;
                this.richTextBox1.ForeColor = ColorTranslator.FromHtml("#b4b4b4");
#if NETCORE
                this.richTextBox1.Select(this.richTextBox1.GetFirstCharIndexFromLine(0), this.richTextBox1.Lines[0].Length);
                this.richTextBox1.SelectionBackColor = ColorTranslator.FromHtml("#0a0a0a");
#endif
            }
            else if (this.sfComboBox1.SelectedItem.ToString() == "Office2016Colorful")
            {
                SfSkinManager.SetVisualStyle(this, "Office2016Colorful");
                this.richTextBox1.BackColor = Color.White;
                this.gradientPanel1.BackColor = Color.White;
                this.gradientPanel2.BackColor = Color.White;
                this.BackColor = Color.White;
                this.popupControlContainer1.BackColor = this.BackColor;
                this.label1.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label3.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label4.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label6.ForeColor = ColorTranslator.FromHtml("#444444");
                this.checkBoxAdv1.ThemeName = "Office2016Colorful";
                this.colorPickerUIAdv1.ThemeName = "Office2016Colorful";
                this.gradientPanel1.BorderColor = Color.Black;
                this.gradientPanel2.BorderColor = Color.Black;
                this.richTextBox1.ForeColor = ColorTranslator.FromHtml("#444444");
#if NETCORE
                this.richTextBox1.Select(this.richTextBox1.GetFirstCharIndexFromLine(0), this.richTextBox1.Lines[0].Length);
                this.richTextBox1.SelectionBackColor = ColorTranslator.FromHtml("#FFFFFF");
#endif
            }
            else if (this.sfComboBox1.SelectedItem.ToString() == "Office2016DarkGray")
            {
                SfSkinManager.SetVisualStyle(this, "Office2016DarkGray");
                this.richTextBox1.BackColor = ColorTranslator.FromHtml("#444444");
                this.gradientPanel1.BackColor = ColorTranslator.FromHtml("#444444");
                this.gradientPanel2.BackColor = ColorTranslator.FromHtml("#444444");
                this.BackColor = ColorTranslator.FromHtml("#444444");
                this.popupControlContainer1.BackColor = this.BackColor;
                this.label1.ForeColor = ColorTranslator.FromHtml("#f0f0f0");
                this.label3.ForeColor = ColorTranslator.FromHtml("#f0f0f0");
                this.label4.ForeColor = ColorTranslator.FromHtml("#f0f0f0");
                this.label6.ForeColor = ColorTranslator.FromHtml("#f0f0f0");
                this.checkBoxAdv1.ThemeName = "Office2016DarkGray";
                this.colorPickerUIAdv1.ThemeName = "Office2016DarkGray";
                this.gradientPanel1.BorderColor = Color.WhiteSmoke;
                this.gradientPanel2.BorderColor = Color.WhiteSmoke;
                this.richTextBox1.ForeColor = ColorTranslator.FromHtml("#f0f0f0");
#if NETCORE
                this.richTextBox1.Select(this.richTextBox1.GetFirstCharIndexFromLine(0), this.richTextBox1.Lines[0].Length);
                this.richTextBox1.SelectionBackColor = ColorTranslator.FromHtml("#444444");
#endif
            }
            else if (this.sfComboBox1.SelectedItem.ToString() == "Office2016White")
            {
                SfSkinManager.SetVisualStyle(this, "Office2016White");
                this.BackColor = Color.White;
                this.richTextBox1.BackColor = Color.White;
                this.gradientPanel1.BackColor = Color.White;
                this.gradientPanel2.BackColor = Color.White;
                this.popupControlContainer1.BackColor = this.BackColor;
                this.label1.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label3.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label4.ForeColor = ColorTranslator.FromHtml("#444444");
                this.label6.ForeColor = ColorTranslator.FromHtml("#444444");
                this.checkBoxAdv1.ThemeName = "Office2016White";
                this.colorPickerUIAdv1.ThemeName = "Office2016White";
                this.gradientPanel1.BorderColor = Color.Black;
                this.gradientPanel2.BorderColor = Color.Black;
                this.richTextBox1.ForeColor = ColorTranslator.FromHtml("#444444");
#if NETCORE
                this.richTextBox1.Select(this.richTextBox1.GetFirstCharIndexFromLine(0), this.richTextBox1.Lines[0].Length);
                this.richTextBox1.SelectionBackColor = ColorTranslator.FromHtml("#FFFFFF");
#endif
            }
        }
 public MainWindow()
 {
     SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016Colorful);
     InitializeComponent();
     (this.DataContext as TreeViewModel).SelectedItem = tree.Items[4];
 }
Example #15
0
        /// <summary>
        /// Invokes the specified parameter.
        /// </summary>
        /// <param name="parameter">The parameter.</param>
        protected override void Invoke(object parameter)
        {
            var cb = this.AssociatedObject as ComboBox;

            // Apply Visual Style based on the selected theme
            switch (cb.SelectedItem.ToString())
            {
            case "VisualStudio2013":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.VisualStudio2013);
                break;

            case "Office2013DarkGray":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2013DarkGray);
                break;

            case "Office2013LightGray":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2013LightGray);
                break;

            case "Office2013White":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2013White);
                break;

            case "Office2010Blue":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2010Blue);
                break;

            case "Office2010Black":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2010Black);
                break;

            case "Office2010Silver":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2010Silver);
                break;

            case "Metro":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Metro);
                break;

            case "Blend":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Blend);
                break;

            case "Lime":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Lime);
                break;

            case "Saffron":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Saffron);
                break;

            case "Office365":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office365);
                break;

            case "Office2016Colorful":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2016Colorful);
                break;

            case "Office2016DarkGray":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2016DarkGray);
                break;

            case "Office2016White":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Office2016White);
                break;

            case "VisualStudio2015":
                SfSkinManager.SetVisualStyle(grid, VisualStyles.VisualStudio2015);
                break;

            default:
                SfSkinManager.SetVisualStyle(grid, VisualStyles.Default);
                break;
            }
        }
Example #16
0
 public Window1()
 {
     InitializeComponent();
     EventLog();
     SfSkinManager.SetVisualStyle(this, VisualStyles.MaterialLight);
 }
Example #17
0
 public FileExplorer(string themename)
 {
     SfSkinManager.SetVisualStyle(this, (VisualStyles)Enum.Parse(typeof(VisualStyles), themename));
     InitializeComponent();
 }
Example #18
0
 public MainWindow()
 {
     InitializeComponent();
     SfSkinManager.SetVisualStyle(this, VisualStyles.MaterialLight);
 }
 private void DockingManager_IsSelectedDocument(FrameworkElement sender, IsSelectedChangedEventArgs e)
 {
     if (DockingManager.DocContainer != null && SfSkinManager.GetVisualStyle(this) != SfSkinManager.GetVisualStyle(DockingManager.DocContainer as DependencyObject))
     {
         SfSkinManager.SetVisualStyle(DockingManager.DocContainer as DependencyObject, SfSkinManager.GetVisualStyle(this));
     }
 }
Example #20
0
 public SaftInvoices()
 {
     InitializeComponent();
     SfSkinManager.SetVisualStyle(dataGridInvoices, VisualStyles.Blend);
     SfSkinManager.SetVisualStyle(dataGridInvoiceLines, VisualStyles.Blend);
 }
Example #21
0
 private void ThemeSelectionBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     SfSkinManager.SetVisualStyle(this.grid, (VisualStyles)Enum.Parse(typeof(VisualStyles), (sender as ComboBox).SelectedItem.ToString()));
 }
        /// <summary>
        /// Invokes the specified parameter.
        /// </summary>
        /// <param name="parameter">The parameter.</param>
        protected override void Invoke(object parameter)
        {
            var    cb     = this.AssociatedObject as ComboBox;
            Window window = VisualUtils.FindAncestor(cb, typeof(Window)) as Window;

            // Apply Visual Style based on the selected theme
            if (window != null && cb != null)
            {
                switch (cb.SelectedItem.ToString())
                {
                case "Metro":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Metro);
                    break;

                case "Blend":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Blend);
                    break;

                case "Lime":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Lime);
                    break;

                case "Saffron":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Saffron);
                    break;

                case "Office365":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office365);
                    break;

                case "Office2016Colorful":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2016Colorful);
                    break;

                case "Office2016DarkGray":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2016DarkGray);
                    break;

                case "Office2016White":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2016White);
                    break;

                case "VisualStudio2013":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.VisualStudio2013);
                    break;

                case "Office2013DarkGray":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2013DarkGray);
                    break;

                case "Office2013LightGray":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2013LightGray);
                    break;

                case "Office2013White":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2013White);
                    break;

                case "Office2010Blue":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2010Blue);
                    break;

                case "Office2010Black":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2010Black);
                    break;

                case "Office2010Silver":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Office2010Silver);
                    break;

                case "VisualStudio2015":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.VisualStudio2015);
                    break;

                case "SystemTheme":
                    SfSkinManager.SetVisualStyle(window, VisualStyles.SystemTheme);
                    break;

                default:
                    SfSkinManager.SetVisualStyle(window, VisualStyles.Default);
                    break;
                }
            }
        }
Example #23
0
 /// <summary>
 /// Handles the Click event of the Button control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     SfSkinManager.SetVisualStyle(this, VisualStyles.Default);
     window.Background = System.Windows.Media.Brushes.GhostWhite;
 }
Example #24
0
 public SaftTaxes()
 {
     InitializeComponent();
     SfSkinManager.SetVisualStyle(dataGridTaxes, VisualStyles.Blend);
 }
Example #25
0
 /// <summary>
 /// Handles the 5 event of the Button_Click control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
 private void Button_Click_5(object sender, RoutedEventArgs e)
 {
     window.Background = System.Windows.Media.Brushes.Black;
     SfSkinManager.SetVisualStyle(this, VisualStyles.Blend);
 }
Example #26
0
 public MainWindow()
 {
     InitializeComponent();
     SfSkinManager.SetVisualStyle(dataGrid, VisualStyles.Metro);
 }
Example #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Window1"/> class.
 /// </summary>
 public Window1()
 {
     InitializeComponent();
     GameCollect.GameCollections();
     SfSkinManager.SetVisualStyle(this, VisualStyles.MaterialLight);
 }
Example #28
0
 private void ThemeSelectionBox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     SfSkinManager.SetVisualStyle(this, (Syncfusion.SfSkinManager.VisualStyles)Enum.Parse(typeof(Syncfusion.SfSkinManager.VisualStyles), (sender as ComboBox).SelectedItem.ToString()));
 }
Example #29
0
 private void SystemThemeButton_OnClick(object sender, RoutedEventArgs e)
 {
     window.Background = SystemColors.ControlBrush;
     SfSkinManager.SetVisualStyle(this, VisualStyles.SystemTheme);
 }
Example #30
0
 private void zMetro_Click(object sender, RoutedEventArgs e)
 {
     SfSkinManager.SetVisualStyle(this, VisualStyles.Metro); ComputList();
 }