WPFTemplateLib 5.24.8.2001
See the version list below for details.
dotnet add package WPFTemplateLib --version 5.24.8.2001
NuGet\Install-Package WPFTemplateLib -Version 5.24.8.2001
<PackageReference Include="WPFTemplateLib" Version="5.24.8.2001" />
paket add WPFTemplateLib --version 5.24.8.2001
#r "nuget: WPFTemplateLib, 5.24.8.2001"
// Install WPFTemplateLib as a Cake Addin #addin nuget:?package=WPFTemplateLib&version=5.24.8.2001 // Install WPFTemplateLib as a Cake Tool #tool nuget:?package=WPFTemplateLib&version=5.24.8.2001
WPF 帮助类库,包含:
01、MVVM 基础支持类(命令:RelayCommand;绑定:ObservableObject、SimpleBindableBase、NotifyDataErrorObject、ViewModelBase)。
02、WPF 帮助类(BindingProxy、ResourceBinding、MediaColorHelper、FrameworkElementHelper 等)。
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" />)
06、转换器(<ResourceDictionary Source="pack://application:,,,/WPFTemplateLib;component/WpfConverters/ConverterDictionary.xaml" />)
07、配置属性系统(ConfigManager)。
08、自定义控件(Toast、ToastTextBlock、SystemDropShadowChrome、XUI:Form、PanelWithMessage、CircleWithTextBlock、CornerClip 等)。
09、用户控件(UC_InfoRegion、CircleWithTextBox、UC_Wait、UC_ConfirmBox 等)。
10、类型转换器(EnumDescriptionTypeConverter)。
11、在行为中使用的事件触发器(RoutedEventTrigger)。
12、增强类(FixedCountObservableCollection、RangeObservableCollection 等)。
13、一个常用值类 CommonValues(目前有两个布尔值:TrueValue、FalseValue)。
14、C# 帮助类(ClassHelper、StringHelper、ConsoleWriter、EnumExtension 等)(参见:https://gitee.com/dlgcy/dotnetcodes)。
Xaml 命名空间:xmlns:lib="https://gitee.com/dlgcy/WPFTemplateLib" 。
样式以"LibSty"开头,控件模版以"LibTpl"开头。
使用方法详见:
1、https://gitee.com/dlgcy/DLGCY_WPFPractice
2、https://gitee.com/dlgcy/WPFTemplate
3、https://dlgcy.com/
4、https://gitee.com/dlgcy/WpfAnimationDemo
大部分是搬运修改网上的资源,少部分是自己原创,以自用为主,感兴趣的朋友也可以使用,欢迎交流讨论(微信公众号:独立观察员博客)。
免责声明:本库及维护者不对使用产生的任何问题负责,请自行充分测试。
严正声明:禁止在 996 以及相似类型的公司中使用本库。
***********************************************
更新内容:
[新增] TabControlAttached,功能:绑定模式下,让每一个标签页有自己单独的界面实例。
https://dlgcy.com/solve-wpf-tabcontrol-tabs-only-one-view/
用法示例:
<![CDATA[
<TabControl SelectedValuePath="DataContext" SelectedValue="{Binding SelectedItemVm}"
lib:TabControlAttached.CachedItemsSource="{Binding Vms}"
lib:TabControlAttached.ContentTemplateType="{x:Type main:ItemView}">
<lib:TabControlAttached.ItemTemplate>
<DataTemplate>
<Border Cursor="Hand">
<TextBlock Text="{Binding Name}"/>
</Border>
</DataTemplate>
</lib:TabControlAttached.ItemTemplate>
</TabControl>
]]>
***********************************************
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- CalcBinding (>= 2.5.2)
- Extended.Wpf.Toolkit (>= 4.6.0)
- KsWare.Presentation.Themes.Aero2Fix (>= 0.41.1)
- MahApps.Metro (>= 2.4.10)
- MahApps.Metro.IconPacks.FontAwesome (>= 4.11.0)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.77)
- Newtonsoft.Json (>= 13.0.3)
- PropertyChanged.Fody (>= 4.1.0)
- SharpVectors.Wpf (>= 1.8.4)
- SimpleLogger_dlgcy (>= 1.0.11)
- System.Drawing.Common (>= 8.0.4)
-
net6.0-windows7.0
- CalcBinding (>= 2.5.2)
- Extended.Wpf.Toolkit (>= 4.6.0)
- KsWare.Presentation.Themes.Aero2Fix (>= 0.41.1)
- MahApps.Metro (>= 2.4.10)
- MahApps.Metro.IconPacks.FontAwesome (>= 4.11.0)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.77)
- Newtonsoft.Json (>= 13.0.3)
- PropertyChanged.Fody (>= 4.1.0)
- SharpVectors.Wpf (>= 1.8.4)
- SimpleLogger_dlgcy (>= 1.0.11)
- System.Drawing.Common (>= 8.0.4)
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 |
---|---|---|
5.24.10.3002 | 38 | 10/30/2024 |
5.24.10.3001 | 56 | 10/30/2024 |
5.24.10.2402 | 76 | 10/24/2024 |
5.24.10.2101 | 57 | 10/21/2024 |
5.24.10.2001 | 71 | 10/20/2024 |
5.24.10.901 | 91 | 10/9/2024 |
5.24.9.2901 | 91 | 9/29/2024 |
5.24.9.2501 | 83 | 9/25/2024 |
5.24.9.2301 | 93 | 9/23/2024 |
5.24.9.1301 | 105 | 9/13/2024 |
5.24.9.802 | 92 | 9/8/2024 |
5.24.9.102 | 115 | 9/1/2024 |
5.24.8.2902 | 122 | 8/29/2024 |
5.24.8.2001 | 111 | 8/20/2024 |
5.24.8.1801 | 129 | 8/18/2024 |
5.24.8.1502 | 140 | 8/15/2024 |
5.24.8.1501 | 116 | 8/15/2024 |
5.24.8.401 | 89 | 8/4/2024 |
5.24.7.3001 | 67 | 7/30/2024 |
5.24.7.2800 | 90 | 7/28/2024 |
5.24.7.2500 | 78 | 7/25/2024 |
5.24.7.2301 | 110 | 7/23/2024 |
5.24.7.2100 | 117 | 7/21/2024 |
5.24.7.1601 | 111 | 7/16/2024 |
4.24.7.300 | 111 | 7/3/2024 |
4.24.6.1800 | 108 | 6/18/2024 |
4.24.6.1700 | 96 | 6/17/2024 |
4.24.6.1000 | 94 | 6/10/2024 |
4.24.6.800 | 97 | 6/8/2024 |
4.24.5.3100 | 112 | 5/31/2024 |
4.24.5.2600 | 111 | 5/26/2024 |
4.24.5.1400 | 101 | 5/14/2024 |
4.24.5.800 | 139 | 5/8/2024 |
4.24.5.500 | 140 | 5/5/2024 |
4.24.4.2900 | 114 | 4/29/2024 |
4.24.4.2800 | 112 | 4/28/2024 |
4.24.4.2500 | 141 | 4/25/2024 |
4.24.4.2400 | 119 | 4/24/2024 |
4.24.4.2100 | 120 | 4/21/2024 |
3.24.4.1900 | 115 | 4/19/2024 |
3.24.4.1100 | 116 | 4/11/2024 |
3.24.4.100 | 169 | 4/1/2024 |
3.24.3.3100 | 136 | 3/31/2024 |
3.24.3.2700 | 141 | 3/27/2024 |
2.24.3.1500 | 172 | 3/15/2024 |
1.24.3.1202 | 179 | 3/12/2024 |
1.24.3.1201 | 210 | 3/12/2024 |
1.24.3.1200 | 238 | 3/12/2024 |
1.24.3.800 | 200 | 3/8/2024 |
1.24.2.2200 | 219 | 2/23/2024 |
1.23.12.2800 | 333 | 12/28/2023 |
1.23.8.3001 | 328 | 8/30/2023 |
1.0.23.51301 | 336 | 5/13/2023 |
1.0.23.40401 | 348 | 4/4/2023 |
1.0.23.40301 | 350 | 4/3/2023 |
1.0.23.32701 | 418 | 3/27/2023 |
1.0.23.31401 | 384 | 3/14/2023 |
见 Description。