示例#1
0
        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()));
            }
        }
示例#2
0
        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()));
                    }
                }
            }
        }