diff --git a/HandyControl/HandyControl.csproj b/HandyControl/HandyControl.csproj index fca70629..18af5481 100644 --- a/HandyControl/HandyControl.csproj +++ b/HandyControl/HandyControl.csproj @@ -439,6 +439,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/HandyControl/Themes/Styles/ListView.xaml b/HandyControl/Themes/Styles/ListView.xaml new file mode 100644 index 00000000..613f3d39 --- /dev/null +++ b/HandyControl/Themes/Styles/ListView.xaml @@ -0,0 +1,115 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/HandyControl/Themes/Styles/Style.xaml b/HandyControl/Themes/Styles/Style.xaml index cb06d590..59c5ecb1 100644 --- a/HandyControl/Themes/Styles/Style.xaml +++ b/HandyControl/Themes/Styles/Style.xaml @@ -41,6 +41,7 @@ + \ No newline at end of file diff --git a/HandyControlDemo/Data/MessageToken.cs b/HandyControlDemo/Data/MessageToken.cs index 25063999..5e8f56e9 100644 --- a/HandyControlDemo/Data/MessageToken.cs +++ b/HandyControlDemo/Data/MessageToken.cs @@ -96,6 +96,8 @@ public static readonly string GroupBoxDemoCtl = nameof(GroupBoxDemoCtl); + public static readonly string ListViewDemoCtl = nameof(ListViewDemoCtl); + public static readonly string CommonWindow = nameof(CommonWindow); public static readonly string CustomNonClientAreaWindow = nameof(CustomNonClientAreaWindow); diff --git a/HandyControlDemo/Data/MessageToken.tt b/HandyControlDemo/Data/MessageToken.tt index e8167844..627e57af 100644 --- a/HandyControlDemo/Data/MessageToken.tt +++ b/HandyControlDemo/Data/MessageToken.tt @@ -53,7 +53,8 @@ var styleList = new List "NaiveScrollViewerDemoCtl", "BrushDemoCtl", "SliderDemoCtl", - "GroupBoxDemoCtl" + "GroupBoxDemoCtl", + "ListViewDemoCtl" }; var windowList = new List { diff --git a/HandyControlDemo/HandyControlDemo.csproj b/HandyControlDemo/HandyControlDemo.csproj index 07803abd..a55ee287 100644 --- a/HandyControlDemo/HandyControlDemo.csproj +++ b/HandyControlDemo/HandyControlDemo.csproj @@ -186,6 +186,9 @@ GroupBoxDemoCtl.xaml + + ListViewDemoCtl.xaml + NaiveComboBoxDemoCtl.xaml @@ -444,6 +447,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -564,6 +571,7 @@ TextTemplatingFileGenerator MessageToken.cs + diff --git a/HandyControlDemo/Properties/Langs/Lang.Designer.cs b/HandyControlDemo/Properties/Langs/Lang.Designer.cs index 68444cd4..4bdac577 100644 --- a/HandyControlDemo/Properties/Langs/Lang.Designer.cs +++ b/HandyControlDemo/Properties/Langs/Lang.Designer.cs @@ -501,6 +501,15 @@ namespace HandyControlDemo.Properties.Langs { } } + /// + /// 查找类似 列表视图 的本地化字符串。 + /// + public static string ListView { + get { + return ResourceManager.GetString("ListView", resourceCulture); + } + } + /// /// 查找类似 加载条 的本地化字符串。 /// diff --git a/HandyControlDemo/Properties/Langs/Lang.en.resx b/HandyControlDemo/Properties/Langs/Lang.en.resx index f8dd5ef9..107eea8b 100644 --- a/HandyControlDemo/Properties/Langs/Lang.en.resx +++ b/HandyControlDemo/Properties/Langs/Lang.en.resx @@ -408,4 +408,7 @@ GroupBox + + ListView + \ No newline at end of file diff --git a/HandyControlDemo/Properties/Langs/Lang.resx b/HandyControlDemo/Properties/Langs/Lang.resx index 1940e084..98d96dcc 100644 --- a/HandyControlDemo/Properties/Langs/Lang.resx +++ b/HandyControlDemo/Properties/Langs/Lang.resx @@ -388,4 +388,7 @@ 分组框 + + 列表视图 + \ No newline at end of file diff --git a/HandyControlDemo/Resources/Img/LeftMainContent/ListView_16x.png b/HandyControlDemo/Resources/Img/LeftMainContent/ListView_16x.png new file mode 100644 index 00000000..acb4e747 Binary files /dev/null and b/HandyControlDemo/Resources/Img/LeftMainContent/ListView_16x.png differ diff --git a/HandyControlDemo/UserControl/Main/LeftMainContent.xaml b/HandyControlDemo/UserControl/Main/LeftMainContent.xaml index 19955c37..fc39b593 100644 --- a/HandyControlDemo/UserControl/Main/LeftMainContent.xaml +++ b/HandyControlDemo/UserControl/Main/LeftMainContent.xaml @@ -110,6 +110,11 @@ + + + + + diff --git a/HandyControlDemo/UserControl/Styles/ListViewDemoCtl.xaml b/HandyControlDemo/UserControl/Styles/ListViewDemoCtl.xaml new file mode 100644 index 00000000..02ef496a --- /dev/null +++ b/HandyControlDemo/UserControl/Styles/ListViewDemoCtl.xaml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + diff --git a/HandyControlDemo/UserControl/Styles/ListViewDemoCtl.xaml.cs b/HandyControlDemo/UserControl/Styles/ListViewDemoCtl.xaml.cs new file mode 100644 index 00000000..3aed76aa --- /dev/null +++ b/HandyControlDemo/UserControl/Styles/ListViewDemoCtl.xaml.cs @@ -0,0 +1,10 @@ +namespace HandyControlDemo.UserControl +{ + public partial class ListViewDemoCtl + { + public ListViewDemoCtl() + { + InitializeComponent(); + } + } +}