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