├── DMSkin.ScreenShot
├── demo.png
├── demo1.png
└── demo2.png
├── DMSkin.WPF
├── Styles
│ ├── DMTreeView.xaml
│ ├── DMListBox.xaml
│ ├── DMIcon.xaml
│ ├── DMResizeGrip.xaml
│ ├── DMSkinSimpleWindow.xaml
│ ├── DMToolTip.xaml
│ ├── DMImage.xaml
│ ├── Animation.xaml
│ ├── DMCheckBox.xaml
│ ├── DMTextBox.xaml
│ ├── DMContextMenu.xaml
│ └── DMScrollViewer.xaml
├── Controls
│ ├── DMSystemMinButton.cs
│ ├── DMButton.cs
│ ├── DMLinkButton.cs
│ ├── DMSystemCloseButton.cs
│ ├── DMRadioButton.cs
│ ├── DMCheckBox.cs
│ ├── DMSystemMaxButton.cs
│ ├── DMTabItem.cs
│ ├── DMNumericBox.cs
│ ├── DMThumb.cs
│ ├── DMTextBox.cs
│ ├── DMScrollBar.cs
│ ├── DMScrollViewer.cs
│ ├── DMSystemButton.cs
│ └── ElasticWrapPanel.cs
├── ShadowWindow.xaml
├── Properties
│ └── AssemblyInfo.cs
├── ShadowWindow.xaml.cs
├── DMSkin.WPF.csproj
└── DMSkinSimpleWindow.cs
├── DMSkin.WPF.Demos
├── Images
│ ├── image1.png
│ └── user.jpg
├── app.config
├── StartWindow.xaml.cs
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── ViewModels
│ ├── MainWindowViewModel.cs
│ ├── PageAboutViewModel.cs
│ └── StartWindowViewModel.cs
├── Views
│ ├── PageVirtualizing.xaml
│ ├── PageAbout.xaml.cs
│ ├── PageAnimation.xaml.cs
│ ├── PageAntDesign.xaml.cs
│ ├── PageScrollViewer.xaml.cs
│ ├── PageVirtualizing.xaml.cs
│ ├── Window
│ │ ├── SimpleWindow.xaml.cs
│ │ ├── ComplexWindow.xaml.cs
│ │ ├── ComplexWindow.xaml
│ │ └── SimpleWindow.xaml
│ ├── PageAnimation.xaml
│ ├── PageAbout.xaml
│ ├── PageScrollViewer.xaml
│ └── PageAntDesign.xaml
├── App.xaml.cs
├── App.xaml
└── DMSkin.WPF.Demos.csproj
├── DMSkin.Core
├── Converters
│ ├── EnumToBooleanConverter.cs
│ ├── TimeSpanToStringConverter.cs
│ ├── EnumToVisibilityConverter.cs
│ ├── CompareToVisibilityConverter.cs
│ ├── BoolToVisibilityConverter.cs
│ └── SecondToStringConverter.cs
├── Properties
│ └── AssemblyInfo.cs
├── MVVM
│ ├── DelegateCommand.cs
│ └── ViewModelBase.cs
├── Common
│ ├── Execute.cs
│ ├── UINT.cs
│ └── Base64.cs
├── TaskManager.cs
├── WIN32
│ └── DesktopAPI.cs
└── DMSkin.Core.csproj
├── LICENSE
├── DMSkin.WPF.AntDesign
├── Properties
│ └── AssemblyInfo.cs
└── DMSkin.WPF.AntDesign.csproj
├── .gitattributes
├── DMSkin-for-WPF.sln
├── .gitignore
└── DMSkin.Docs
└── README.md
/DMSkin.ScreenShot/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/944095635/DMSkin-for-WPF/HEAD/DMSkin.ScreenShot/demo.png
--------------------------------------------------------------------------------
/DMSkin.ScreenShot/demo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/944095635/DMSkin-for-WPF/HEAD/DMSkin.ScreenShot/demo1.png
--------------------------------------------------------------------------------
/DMSkin.ScreenShot/demo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/944095635/DMSkin-for-WPF/HEAD/DMSkin.ScreenShot/demo2.png
--------------------------------------------------------------------------------
/DMSkin.WPF/Styles/DMTreeView.xaml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Images/image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/944095635/DMSkin-for-WPF/HEAD/DMSkin.WPF.Demos/Images/image1.png
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Images/user.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/944095635/DMSkin-for-WPF/HEAD/DMSkin.WPF.Demos/Images/user.jpg
--------------------------------------------------------------------------------
/DMSkin.WPF/Styles/DMListBox.xaml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/DMSkin.WPF/Styles/DMIcon.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/StartWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace DMSkin.WPF.Demos
2 | {
3 | public partial class StartWindow
4 | {
5 | public StartWindow()
6 | {
7 | InitializeComponent();
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/ViewModels/MainWindowViewModel.cs:
--------------------------------------------------------------------------------
1 | using DMSkin.Core.MVVM;
2 | using System.Windows;
3 | using System.Windows.Input;
4 |
5 | namespace DM_Studio.ViewModels
6 | {
7 | public class MainWindowViewModel
8 | {
9 | public ICommand F1Command
10 | {
11 | get
12 | {
13 | return new DelegateCommand((obj) => {
14 | MessageBox.Show("Test");
15 | });
16 | }
17 | }
18 |
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Views/PageVirtualizing.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/ViewModels/PageAboutViewModel.cs:
--------------------------------------------------------------------------------
1 | using DMSkin.Core.MVVM;
2 | using System.Diagnostics;
3 | using System.Windows.Input;
4 |
5 | namespace DMSkin.WPF.Demos.ViewModels
6 | {
7 | public class PageAboutViewModel
8 | {
9 | public ICommand OpenLinkCommand
10 | {
11 | get
12 | {
13 | return new DelegateCommand(obj =>
14 | {
15 | if (obj is string url)
16 | {
17 | Process.Start(url);
18 | }
19 | });
20 | }
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/DMSkin.WPF/Controls/DMSystemMinButton.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel;
2 | using System.Windows;
3 | using System.Windows.Controls;
4 | using System.Windows.Media;
5 |
6 | namespace DMSkin.WPF.Controls
7 | {
8 | public class DMSystemMinButton : DMSystemButton
9 | {
10 | Window targetWindow;
11 | public DMSystemMinButton()
12 | {
13 | Click += delegate
14 | {
15 | if (targetWindow == null)
16 | {
17 | targetWindow = Window.GetWindow(this);
18 | }
19 | targetWindow.WindowState = WindowState.Minimized;
20 | };
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/DMSkin.WPF/Controls/DMButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 |
8 | namespace DMSkin.WPF.Controls
9 | {
10 | public class DMButton : Button
11 | {
12 | public CornerRadius CornerRadius
13 | {
14 | get { return (CornerRadius)GetValue(CornerRadiusProperty); }
15 | set { SetValue(CornerRadiusProperty, value); }
16 | }
17 | public static readonly DependencyProperty CornerRadiusProperty =
18 | DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(DMButton), new PropertyMetadata(null));
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DMSkin.WPF/Controls/DMLinkButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 |
8 | namespace DMSkin.WPF.Controls
9 | {
10 | public class DMLinkButton : DMSystemButton
11 | {
12 | public bool DMDisplayLine
13 | {
14 | get { return (bool)GetValue(DMDisplayLineProperty); }
15 | set { SetValue(DMDisplayLineProperty, value); }
16 | }
17 | public static readonly DependencyProperty DMDisplayLineProperty =
18 | DependencyProperty.Register("DMDisplayLine", typeof(bool), typeof(DMLinkButton), new PropertyMetadata(true));
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Views/PageAbout.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace DMSkin.WPF.Demos.Views
16 | {
17 | ///
18 | /// PageAbout.xaml 的交互逻辑
19 | ///
20 | public partial class PageAbout : Page
21 | {
22 | public PageAbout()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DMSkin.WPF/Controls/DMSystemCloseButton.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel;
2 | using System.Windows;
3 | using System.Windows.Controls;
4 | using System.Windows.Media;
5 |
6 | namespace DMSkin.WPF.Controls
7 | {
8 | public class DMSystemCloseButton : DMSystemButton
9 | {
10 | Window targetWindow;
11 | public DMSystemCloseButton()
12 | {
13 | DMSystemButtonHoverColor = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
14 |
15 | Click += delegate{
16 | if (targetWindow==null)
17 | {
18 | targetWindow = Window.GetWindow(this);
19 | }
20 | targetWindow.Close();
21 | };
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Views/PageAnimation.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace DMSkin.WPF.Demos.Views
16 | {
17 | ///
18 | /// PageAnimation.xaml 的交互逻辑
19 | ///
20 | public partial class PageAnimation : Page
21 | {
22 | public PageAnimation()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Views/PageAntDesign.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace DMSkin.WPF.Demos.Views
16 | {
17 | ///
18 | /// PageAntDesign.xaml 的交互逻辑
19 | ///
20 | public partial class PageAntDesign : UserControl
21 | {
22 | public PageAntDesign()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Views/PageScrollViewer.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace DMSkin.WPF.Demos.Views
16 | {
17 | ///
18 | /// PageScrollViewer.xaml 的交互逻辑
19 | ///
20 | public partial class PageScrollViewer : UserControl
21 | {
22 | public PageScrollViewer()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Views/PageVirtualizing.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace DMSkin.WPF.Demos.Views
16 | {
17 | ///
18 | /// PageVirtualizing.xaml 的交互逻辑
19 | ///
20 | public partial class PageVirtualizing : UserControl
21 | {
22 | public PageVirtualizing()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Views/Window/SimpleWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace DMSkin.WPF.Demos
16 | {
17 | public partial class SimpleWindow
18 | {
19 | public SimpleWindow()
20 | {
21 | InitializeComponent();
22 | }
23 |
24 | private void DMSkinWindow_Loaded(object sender, RoutedEventArgs e)
25 | {
26 |
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/DMSkin.Core/Converters/EnumToBooleanConverter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Globalization;
3 | using System.Windows.Data;
4 |
5 | namespace DMSkin.Core.Converters
6 | {
7 | public class EnumToBooleanConverter : IValueConverter
8 | {
9 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
10 | {
11 | if (value == null||value.ToString()!=parameter.ToString())
12 | {
13 | return false;
14 | }
15 | return true;
16 | }
17 |
18 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
19 | {
20 | return value != null && value.Equals(true) ? parameter : Binding.DoNothing;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/DMSkin.WPF/Controls/DMRadioButton.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Media;
8 |
9 | namespace DMSkin.WPF.Controls
10 | {
11 | public class DMRadioButton : RadioButton
12 | {
13 | public SolidColorBrush IconColor
14 | {
15 | get { return (SolidColorBrush)GetValue(IconColorProperty); }
16 | set { SetValue(IconColorProperty, value); }
17 | }
18 | public static readonly DependencyProperty IconColorProperty =
19 | DependencyProperty.Register("IconColor", typeof(SolidColorBrush), typeof(DMRadioButton), new PropertyMetadata(new SolidColorBrush(Color.FromArgb(255, 255,255,255))));
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/DMSkin.Core/Converters/TimeSpanToStringConverter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Globalization;
3 | using System.Windows.Data;
4 |
5 | namespace DMSkin.Core.Converters
6 | {
7 | ///
8 | /// 将TimeSpan 转换为 00:00
9 | ///
10 | [ValueConversion(typeof(DateTime?), typeof(string))]
11 | public class TimeSpanToStringConverter : IValueConverter
12 | {
13 | #region Implementation of IValueConverter
14 |
15 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
16 | {
17 | var date = (TimeSpan)value;
18 | return date.ToString(@"mm\:ss\ ");
19 | }
20 |
21 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
22 | {
23 | throw new NotSupportedException();
24 | }
25 | #endregion
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DMSkin.Core/Converters/EnumToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Globalization;
3 | using System.Windows;
4 | using System.Windows.Data;
5 |
6 | namespace DMSkin.Core.Converters
7 | {
8 | ///
9 | /// 将枚举值 转换为 是否显示
10 | ///
11 | public class EnumToVisibilityConverter : IValueConverter
12 | {
13 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
14 | {
15 | if (value == null||value.ToString()!=parameter.ToString())
16 | {
17 | return Visibility.Collapsed;
18 | }
19 | return Visibility.Visible;
20 | }
21 |
22 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
23 | {
24 | return value != null && value.Equals(true) ? parameter : Binding.DoNothing;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using DMSkin.Core.Common;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Configuration;
5 | using System.Data;
6 | using System.Linq;
7 | using System.Windows;
8 |
9 | namespace DMSkin.WPF.Demos
10 | {
11 | public partial class App : Application
12 | {
13 | protected override void OnStartup(StartupEventArgs e)
14 | {
15 | //初始化UI Dispatcher
16 | Execute.InitializeWithDispatcher();
17 |
18 | ShutdownMode = ShutdownMode.OnLastWindowClose;
19 |
20 | //启动窗口
21 | StartWindow st= new StartWindow();
22 | st.Show();
23 |
24 | //ComplexWindow c = new ComplexWindow();
25 | //c.Show();
26 |
27 | //SimpleMainWindow s = new SimpleMainWindow();
28 | //s.Show();
29 |
30 | //DemoWindow d = new DemoWindow();
31 | //d.Show();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/DMSkin.WPF/ShadowWindow.xaml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DMSkin.WPF.Demos.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/DMSkin.WPF.Demos/Views/Window/ComplexWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using DMSkin.Core.Common;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading;
7 | using System.Threading.Tasks;
8 | using System.Windows;
9 | using System.Windows.Controls;
10 | using System.Windows.Data;
11 | using System.Windows.Documents;
12 | using System.Windows.Input;
13 | using System.Windows.Media;
14 | using System.Windows.Media.Imaging;
15 | using System.Windows.Navigation;
16 | using System.Windows.Shapes;
17 |
18 | namespace DMSkin.WPF.Demos
19 | {
20 | public partial class ComplexWindow
21 | {
22 | public ComplexWindow()
23 | {
24 | InitializeComponent();
25 | }
26 |
27 | private void ButtonSkin_Click(object sender, RoutedEventArgs e)
28 | {
29 | this.Hide();
30 | Task.Factory.StartNew(()=> {
31 | Thread.Sleep(2000);
32 | Execute.OnUIThread(()=>
33 | {
34 | this.Show();
35 | });
36 | });
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Dream.Machine
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/DMSkin.WPF.AntDesign/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("DMSkin.WPF.AntDesign")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("DMSkin.WPF.AntDesign")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("d633fda6-ddbe-46d6-a3e4-8bcc145935bf")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33 | //通过使用 "*",如下所示:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/DMSkin.Core/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("DMSkin.Core")]
9 | [assembly: AssemblyDescription("Dream.Machine QQ944095635")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Dream.Machine")]
12 | [assembly: AssemblyProduct("DMSkin.Core")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("13da6558-356b-47b9-96f2-fe4d5457cb02")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33 | //通过使用 "*",如下所示:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("2.5.1.4")]
36 | [assembly: AssemblyFileVersion("2.5.1.4")]
37 |
--------------------------------------------------------------------------------
/DMSkin.WPF/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("DMSkin.WPF")]
9 | [assembly: AssemblyDescription("Dream.Machine QQ944095635")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Dream.Machine")]
12 | [assembly: AssemblyProduct("DMSkin.WPF")]
13 | [assembly: AssemblyCopyright("DMSkin.WPF")]
14 | [assembly: AssemblyTrademark("Copyright © 2018")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("168352b1-6a0c-4c9c-8a32-68b512da3cfc")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33 | //通过使用 "*",如下所示:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("2.5.1.4")]
36 | [assembly: AssemblyFileVersion("2.5.1.4")]
37 |
--------------------------------------------------------------------------------
/DMSkin.Core/MVVM/DelegateCommand.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Input;
3 |
4 | namespace DMSkin.Core.MVVM
5 | {
6 | public class DelegateCommand : ICommand
7 | {
8 | private Action