WPFTemplateLib 6.26.1.1001

dotnet add package WPFTemplateLib --version 6.26.1.1001
                    
NuGet\Install-Package WPFTemplateLib -Version 6.26.1.1001
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WPFTemplateLib" Version="6.26.1.1001" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WPFTemplateLib" Version="6.26.1.1001" />
                    
Directory.Packages.props
<PackageReference Include="WPFTemplateLib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WPFTemplateLib --version 6.26.1.1001
                    
#r "nuget: WPFTemplateLib, 6.26.1.1001"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WPFTemplateLib@6.26.1.1001
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WPFTemplateLib&version=6.26.1.1001
                    
Install as a Cake Addin
#tool nuget:?package=WPFTemplateLib&version=6.26.1.1001
                    
Install as a Cake Tool

更新内容:
1、[新增] [附加属性] TabControlSelectionBridge.SelectedData:TabControl 选项卡选择同步桥梁(By GPT-5.2),用于在直接写 ItemTab 情况下,将选择情况与绑定的“SelectedData”双向同步。
2、[新增] [帮助方法] ConverterHelper.ConvertObjectToBool(从 ConvertValuesToBoolList 方法中提取):转换 object 为 bool 值,转换规则:
(1、bool 类型直接判断;2、使用 double.TryParse 转换成功,判断是否大于零;3、string 类型判断先判断能否转为 bool,再判断 IsNullOrWhiteSpace;其它情况:返回 false。)
3、[新增] [转换器] ParaToUpperOrLowerByValueConverter:根据 value 的 bool 结果,将参数转换为大写或小写字符串。[推荐以标记扩展方式使用]
(可设置参数 IsTrueToUpper(默认 true)和 IsFalseStayAtOrigin(默认 false)。Bool 判断使用 ConverterHelper.ConvertObjectToBool 方法。)
4、[新增] [转换器] ParaToUpperWhileValueIsTrueConverter:value 可被视为 true 时,将参数转换为[大写]字符串。ParaToUpperOrLowerByValueConverter 的特例,IsFalseStayAtOrigin 保持默认值 false。
5、[新增] [转换器] ParaToLowerWhileValueIsTrueConverter:value 可被视为 true 时,将参数转换为[小写]字符串。ParaToUpperOrLowerByValueConverter 的特例,IsFalseStayAtOrigin 保持默认值 false。

***********************************************

本库为一款【WPF 帮助类库】,包含但不限于以下内容:

01、MVVM 基础支持类(命令:RelayCommand;绑定:ObservableObject、SimpleBindableBase、NotifyDataErrorObject、ViewModelBase)。
02、WPF 帮助类(BindingProxy、ResourceBinding、MediaColorHelper、FrameworkElementHelper、ConverterHelper 等)。
03、附加属性帮助类(WpfXamlPropProxy、BringIntoViewBehavior、ExportPicAttached、WpfTouchScrollHelper、GridHelper、FocusAttached、DataGridAttached、
TextBoxAttached、LabelAttached、RadioButtonAttached、RotateToTranslateAttachedV2、LocationTargetRenderOriginAttached、TabControlAttached 等)。

04、行为类(DragInCanvasBehavior、SelectedItemBehavior、AttachAdornerBehavior 等)。
05、样式(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Styles/StyleDictionary.xaml" />);
默认主题(不引入则不设置默认样式)(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Styles/DefaultThemeDictionary.xaml" />);
颜色主题(部分控件有效):[默认]蓝色(*/Light.Blue.xaml)、绿色(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/Themes/Light.Green.xaml" />)。

06、转换器("<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/WpfConverters/ConverterDictionary.xaml" />)
07、配置属性系统(ConfigManager)。
08、自定义控件(Toast、ToastTextBlock、SystemDropShadowChrome、XUI:Form、PanelWithMessage、CircleWithInOutText、PP:CornerClip、FlipableControl、FlipableContentControl、
Handy:UniformSpacingPanel、PP:DateTimePicker、PP:SimplePanel、Handy:Row/Col、AutoGrid、TitleValueUnit、fruit:Table、fruit:PasswordInput、mah:MetroHeader 等)。

09、用户控件(UC_InfoRegion、CircleWithTextBox、UC_Wait、UC_ConfirmBox 等)。
10、类型转换器(EnumDescriptionTypeConverter)。
11、在行为中使用的事件触发器(RoutedEventTrigger)。
12、增强类(FixedCountObservableCollection、RangeObservableCollection 等)。
13、一个常用值类 CommonValues(目前有两个布尔值:TrueValue、FalseValue)。
14、标记扩展(lib:IntValue、SolidColorBrushValue、BoolValue、VisibilityValue 等)。

基础说明:
- Xaml 命名空间:xmlns:lib="https://gitee.com/dlgcy/WPFTemplateLib" 。
- 样式以"LibSty"开头,控件模版以"LibTpl"开头。WPF 系统样式以"SysSty"开头,控件模板以"SysTpl"开头。
- 转换器列表:https://gitee.com/dlgcy/WPFTemplateLib/blob/master/WpfConverters/ConverterDictionary.xaml
- 默认主题的内容:https://gitee.com/dlgcy/WPFTemplateLib/blob/master/Styles/DefaultThemeDictionary.xaml
- 转换器等地方需要指定值转换模式的,使用以下枚举名或值:Visibility(1)、Bool(2)、String(3)、Int(4)、Float(5)、Double(6)、SolidColorBrush(7)、UInt(8)、Short(9)、UShort(10)、Byte(11)、Long(12)。
或者整体使用[静态类]UsefulConvertParaStr,如:UsefulConvertParaStr.VisibleCollapsed、TrueFalse。

使用方法详见:
1、https://gitee.com/dlgcy/DLGCY_WPFPractice
2、https://gitee.com/dlgcy/WPFTemplate
3、https://dlgcy.com/
4、https://gitee.com/dlgcy/WpfAnimationDemo

一部分是搬运修改网上的资源,一部分是自己原创,以自用为主,感兴趣的朋友也可以使用,欢迎交流讨论(微信公众号:独立观察员博客)。
重要更改基本在本人业余时间完成,仅代表个人立场,与本人所在公司无关。
免责声明:本库及维护者不对使用产生的任何问题负责,请自行充分测试。
严正声明:禁止在 996 以及相似类型的公司中使用本库。

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.26.1.1001 89 1/10/2026
6.25.12.2901 90 12/29/2025
6.25.12.1101 426 12/11/2025
6.25.11.2501 192 11/25/2025
6.25.11.2401 193 11/24/2025
6.25.11.2301 166 11/23/2025
6.25.11.1601 247 11/16/2025
6.25.11.1101 302 11/11/2025
6.25.10.3101 163 10/31/2025
6.25.10.1401 213 10/14/2025
6.25.9.1901 322 9/19/2025
6.25.9.1401 182 9/14/2025
6.25.9.1301 139 9/13/2025
6.25.8.2701 276 8/27/2025
6.25.8.2501 350 8/25/2025
6.25.8.1502 178 8/15/2025
6.25.8.1501 215 8/15/2025
6.25.8.301 137 8/3/2025
6.25.7.2901 173 7/29/2025
6.25.7.1201 165 7/12/2025
6.25.7.402 213 7/4/2025
6.25.7.401 221 7/4/2025
6.25.7.201 235 7/2/2025
6.25.6.2401 242 6/24/2025
6.25.6.201 262 6/2/2025
6.25.5.3001 225 5/30/2025
6.25.5.2901 231 5/29/2025
6.25.5.2202 263 5/22/2025
6.25.5.2201 247 5/22/2025
6.25.5.1201 305 5/12/2025
6.25.5.501 236 5/5/2025
6.25.4.2401 254 4/25/2025
6.25.4.2302 281 4/23/2025
6.25.4.2301 251 4/23/2025
6.25.4.2101 251 4/21/2025
6.25.4.1501 294 4/15/2025
6.25.4.802 250 4/8/2025
6.25.4.801 272 4/8/2025
6.25.4.601 241 4/6/2025
6.25.4.301 282 4/3/2025
6.25.4.101 238 4/1/2025
6.25.3.2701 264 3/27/2025
6.25.3.1401 233 3/14/2025
6.25.1.2102 246 1/21/2025
6.25.1.2101 220 1/21/2025
6.25.1.1701 201 1/17/2025
6.25.1.1001 222 1/10/2025
6.25.1.901 199 1/9/2025
6.24.12.3101 185 12/31/2024
6.24.12.2601 198 12/26/2024
6.24.12.2302 198 12/23/2024
6.24.12.2301 214 12/23/2024
6.24.12.2101 194 12/21/2024
6.24.12.1001 217 12/10/2024
6.24.12.501 254 12/5/2024
6.24.12.201 209 12/2/2024
6.24.11.2101 193 11/21/2024
6.24.11.2002 238 11/20/2024
6.24.11.2001 221 11/20/2024
6.24.11.1101 268 11/11/2024
6.24.11.401 204 11/4/2024
6.24.11.301 202 11/3/2024
5.24.10.3002 217 10/30/2024
5.24.10.3001 185 10/30/2024
5.24.10.2402 221 10/24/2024
5.24.10.2101 209 10/21/2024
5.24.10.2001 201 10/20/2024
5.24.10.901 264 10/9/2024
5.24.9.2901 216 9/29/2024
5.24.9.2501 243 9/25/2024
5.24.9.2301 219 9/23/2024
5.24.9.1301 240 9/13/2024
5.24.9.802 222 9/8/2024
5.24.9.102 239 9/1/2024
5.24.8.2902 238 8/29/2024
5.24.8.2001 224 8/20/2024
5.24.8.1801 246 8/18/2024
5.24.8.1502 270 8/15/2024
5.24.8.1501 267 8/15/2024
5.24.8.401 246 8/4/2024
5.24.7.3001 185 7/30/2024
5.24.7.2800 229 7/28/2024
5.24.7.2500 188 7/25/2024
5.24.7.2301 264 7/23/2024
5.24.7.2100 231 7/21/2024
5.24.7.1601 231 7/16/2024
4.24.7.300 232 7/3/2024
4.24.6.1800 246 6/18/2024
4.24.6.1700 263 6/17/2024
4.24.6.1000 198 6/10/2024
4.24.6.800 236 6/8/2024
4.24.5.3100 220 5/31/2024
4.24.5.2600 230 5/26/2024
4.24.5.1400 217 5/14/2024
4.24.5.800 273 5/8/2024
4.24.5.500 269 5/5/2024
4.24.4.2900 253 4/29/2024
4.24.4.2800 241 4/28/2024
4.24.4.2500 280 4/25/2024
4.24.4.2400 225 4/24/2024
4.24.4.2100 232 4/21/2024
3.24.4.1900 236 4/19/2024
3.24.4.1100 232 4/11/2024
3.24.4.100 318 4/1/2024
3.24.3.3100 235 3/31/2024
3.24.3.2700 270 3/27/2024
2.24.3.1500 327 3/15/2024
1.24.3.1202 318 3/12/2024
1.24.3.1201 317 3/12/2024
1.24.3.1200 386 3/12/2024
1.24.3.800 334 3/8/2024
1.24.2.2200 345 2/23/2024
1.23.12.2800 442 12/28/2023
1.23.8.3001 465 8/30/2023
1.0.23.51301 529 5/13/2023
1.0.23.40401 494 4/4/2023
1.0.23.40301 518 4/3/2023
1.0.23.32701 544 3/27/2023
1.0.23.31401 534 3/14/2023

见 Description。