Пример #1
0
 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;
 }
Пример #2
0
 public ModernComboBox()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls");
     Style = FindResource("VirtualisedMetroComboBox") as Style;
 }
Пример #3
0
 public ModernListView()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls");
     Style = FindResource("MetroListView") as Style;
 }
Пример #4
0
 public ModernDataGrid()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.DataGrid");
     Style = FindResource("MetroDataGrid") as Style;
 }
Пример #5
0
 public AzureDataGrid()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.DataGrid");
     Style = FindResource("AzureDataGrid") as Style;
 }
Пример #6
0
 public ModernTabItem()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.TabControl");
     Style = FindResource("MetroTabItem") as Style;
 }
Пример #7
0
 public TimePicker()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls");
     TextBoxHelper.SetWatermark(this, "选择时间");
 }
Пример #8
0
 public FlatButton()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.Buttons");
     Style = FindResource("MetroFlatButton") as Style;
 }
Пример #9
0
 public FlatSlider()
 {
     CommonResources.InitializeControlResouces(Resources, "FlatSlider");
     Style = FindResource("FlatSlider") as Style;
 }
Пример #10
0
 public Slider()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.Slider");
     Style = FindResource("MahApps.Metro.Styles.Slider.Win10") as Style;
 }
Пример #11
0
 public MenuItem(object header)
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.ContextMenu");
     Style  = FindResource("MetroMenuItem") as Style;
     Header = header;
 }
Пример #12
0
 public MenuItem()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.ContextMenu");
     Style = FindResource("MetroMenuItem") as Style;
 }
Пример #13
0
 public DateTimePicker()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls");
     MahApps.Metro.Controls.TextBoxHelper.SetWatermark(this, "选择日期和时间");
 }
Пример #14
0
 public DatePicker()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls");
     Style = FindResource("MetroDatePicker") as Style;
     TextBoxHelper.SetWatermark(this, "选择日期");
 }
Пример #15
0
 public ModernTextBox()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls");
     Style = FindResource("MetroTextBox") as Style;
 }
Пример #16
0
 public WindowButtonCommands()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls");
     CommonResources.InitializeControlResoucesInThemes(Resources, "WindowButtonCommands");
     Style = FindResource("MahApps.Metro.Styles.WindowButtonCommands.Win10") as Style;
 }
Пример #17
0
 public ModernExpander()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.Expander");
     Style = FindResource("MetroExpander") as Style;
 }
Пример #18
0
 public CircleButton()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls.Buttons");
     Style = FindResource("MahApps.Metro.Styles.MetroCircleButtonStyle") as Style;
 }
Пример #19
0
 public Switch()
 {
     CommonResources.InitializeControlResouces(Resources, "Controls");
     Style = FindResource("MahApps.Metro.Styles.ToggleSwitch.Win10") as Style;
 }