private void zOffice2016Colorful_Click(object sender, RoutedEventArgs e) { SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016Colorful); ComputList(); }
/// <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); }
private void ButtonBase2_OnClick(object sender, RoutedEventArgs e) { window.Background = System.Windows.Media.Brushes.White; SfSkinManager.SetVisualStyle(this, VisualStyles.Lime); }
protected override void OnAttached() { base.OnAttached(); SfSkinManager.SetVisualStyle(AssociatedObject, VisualStyle); }
/// <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); }
public MainWindow() { InitializeComponent(); SfSkinManager.SetVisualStyle(this, (VisualStyles)Enum.Parse(typeof(VisualStyles), "Office2016Colorful")); }
/// <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); }
private void Office2016Colorful_Button_Click(object sender, RoutedEventArgs e) { window.Background = System.Windows.Media.Brushes.White; SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016Colorful); }
private void VisualStudio2015_Button_Click(object sender, RoutedEventArgs e) { window.Background = System.Windows.Media.Brushes.White; SfSkinManager.SetVisualStyle(this, VisualStyles.VisualStudio2015); }
public MainWindow() { InitializeComponent(); SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016White); this.Loaded += MainWindow_Loaded; }
public SaftSuppliers() { InitializeComponent(); SfSkinManager.SetVisualStyle(dataGridSuppliers, VisualStyles.Blend); }
public Window1() { InitializeComponent(); SfSkinManager.SetVisualStyle(this, VisualStyles.Office2016Colorful); }
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]; }
/// <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; } }
public Window1() { InitializeComponent(); EventLog(); SfSkinManager.SetVisualStyle(this, VisualStyles.MaterialLight); }
public FileExplorer(string themename) { SfSkinManager.SetVisualStyle(this, (VisualStyles)Enum.Parse(typeof(VisualStyles), themename)); InitializeComponent(); }
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)); } }
public SaftInvoices() { InitializeComponent(); SfSkinManager.SetVisualStyle(dataGridInvoices, VisualStyles.Blend); SfSkinManager.SetVisualStyle(dataGridInvoiceLines, VisualStyles.Blend); }
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; } } }
/// <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; }
public SaftTaxes() { InitializeComponent(); SfSkinManager.SetVisualStyle(dataGridTaxes, VisualStyles.Blend); }
/// <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); }
public MainWindow() { InitializeComponent(); SfSkinManager.SetVisualStyle(dataGrid, VisualStyles.Metro); }
/// <summary> /// Initializes a new instance of the <see cref="Window1"/> class. /// </summary> public Window1() { InitializeComponent(); GameCollect.GameCollections(); SfSkinManager.SetVisualStyle(this, VisualStyles.MaterialLight); }
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())); }
private void SystemThemeButton_OnClick(object sender, RoutedEventArgs e) { window.Background = SystemColors.ControlBrush; SfSkinManager.SetVisualStyle(this, VisualStyles.SystemTheme); }
private void zMetro_Click(object sender, RoutedEventArgs e) { SfSkinManager.SetVisualStyle(this, VisualStyles.Metro); ComputList(); }