private void ComboBoxAdv_SelectionChanged(object sender, SelectionChangedEventArgs e) { ComboBoxItemAdv selectedthemeitem = this.ComboBox1.SelectedItem as ComboBoxItemAdv; if (selectedthemeitem != null) { SfSkinManager.SetVisualStyle(Schedule, (VisualStyles)Enum.Parse(typeof(VisualStyles), selectedthemeitem.Content.ToString())); } }
public void PropertyChangedHandler(object param) { WindowCollection windows = Application.Current.Windows; if (windows.Count > 0) { Window samplewindow = windows[0]; ComboBoxAdv combo = param as ComboBoxAdv; if (combo != null) { if (combo.SelectedItem != null) { ComboBoxItemAdv item = combo.SelectedItem as ComboBoxItemAdv; SfSkinManager.SetVisualStyle(samplewindow, (VisualStyles)Enum.Parse(typeof(VisualStyles), item.Content.ToString())); } } } }