public ModernAnimatedSingleRowTabControl() { CommonResources.InitializeControlResouces(Resources, "Controls.AnimatedTabControl"); //Style = FindResource("MetroTabControl") as Style; //var resource = new ResourceDictionary() { Source = new Uri("pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml") }; //Style = resource.Cast<object>().FirstOrDefault(p => p is Style) as Style; }
public ModernComboBox() { CommonResources.InitializeControlResouces(Resources, "Controls"); Style = FindResource("VirtualisedMetroComboBox") as Style; }
public ModernListView() { CommonResources.InitializeControlResouces(Resources, "Controls"); Style = FindResource("MetroListView") as Style; }
public ModernDataGrid() { CommonResources.InitializeControlResouces(Resources, "Controls.DataGrid"); Style = FindResource("MetroDataGrid") as Style; }
public AzureDataGrid() { CommonResources.InitializeControlResouces(Resources, "Controls.DataGrid"); Style = FindResource("AzureDataGrid") as Style; }
public ModernTabItem() { CommonResources.InitializeControlResouces(Resources, "Controls.TabControl"); Style = FindResource("MetroTabItem") as Style; }
public TimePicker() { CommonResources.InitializeControlResouces(Resources, "Controls"); TextBoxHelper.SetWatermark(this, "选择时间"); }
public FlatButton() { CommonResources.InitializeControlResouces(Resources, "Controls.Buttons"); Style = FindResource("MetroFlatButton") as Style; }
public FlatSlider() { CommonResources.InitializeControlResouces(Resources, "FlatSlider"); Style = FindResource("FlatSlider") as Style; }
public Slider() { CommonResources.InitializeControlResouces(Resources, "Controls.Slider"); Style = FindResource("MahApps.Metro.Styles.Slider.Win10") as Style; }
public MenuItem(object header) { CommonResources.InitializeControlResouces(Resources, "Controls.ContextMenu"); Style = FindResource("MetroMenuItem") as Style; Header = header; }
public MenuItem() { CommonResources.InitializeControlResouces(Resources, "Controls.ContextMenu"); Style = FindResource("MetroMenuItem") as Style; }
public DateTimePicker() { CommonResources.InitializeControlResouces(Resources, "Controls"); MahApps.Metro.Controls.TextBoxHelper.SetWatermark(this, "选择日期和时间"); }
public DatePicker() { CommonResources.InitializeControlResouces(Resources, "Controls"); Style = FindResource("MetroDatePicker") as Style; TextBoxHelper.SetWatermark(this, "选择日期"); }
public ModernTextBox() { CommonResources.InitializeControlResouces(Resources, "Controls"); Style = FindResource("MetroTextBox") as Style; }
public WindowButtonCommands() { CommonResources.InitializeControlResouces(Resources, "Controls"); CommonResources.InitializeControlResoucesInThemes(Resources, "WindowButtonCommands"); Style = FindResource("MahApps.Metro.Styles.WindowButtonCommands.Win10") as Style; }
public ModernExpander() { CommonResources.InitializeControlResouces(Resources, "Controls.Expander"); Style = FindResource("MetroExpander") as Style; }
public CircleButton() { CommonResources.InitializeControlResouces(Resources, "Controls.Buttons"); Style = FindResource("MahApps.Metro.Styles.MetroCircleButtonStyle") as Style; }
public Switch() { CommonResources.InitializeControlResouces(Resources, "Controls"); Style = FindResource("MahApps.Metro.Styles.ToggleSwitch.Win10") as Style; }