All Projects → PxAndy → WpfMultiStyle

PxAndy / WpfMultiStyle

Licence: MIT license
Apply multiple styles to one element for WPF.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to WpfMultiStyle

RawInputProcessor
Provides a way to distinguish input from multiple keyboards
Stars: ✭ 37 (+105.56%)
Mutual labels:  wpf
MediaInfo.NET
MediaInfo.NET is a Windows application that shows media file information
Stars: ✭ 75 (+316.67%)
Mutual labels:  wpf
DotNetWithCMake
Your swiss army knife for creating .NET assemblies with CMake and integrating unmanaged code.
Stars: ✭ 50 (+177.78%)
Mutual labels:  wpf
Displaying-XAML
This library is for display the XAML code of theme library for WPF (e.g. MaterialDesignInXamlToolkit)
Stars: ✭ 38 (+111.11%)
Mutual labels:  wpf
fsc
A set of themeable WPF File System Controls similar to some parts of Windows (7-10) Explorer
Stars: ✭ 66 (+266.67%)
Mutual labels:  wpf
MediaFlyout
Windows 10+ Media Control Taskbar Flyout
Stars: ✭ 87 (+383.33%)
Mutual labels:  wpf
WAIUA
"Who Am I Up Against?" (WAIUA) is a Valorant app that lets you see ranks, recent games, skins of players and more, all in and before a live match.
Stars: ✭ 155 (+761.11%)
Mutual labels:  wpf
TeeChart-for-.NET-CSharp-WPF-samples
Assorted WPF examples
Stars: ✭ 18 (+0%)
Mutual labels:  wpf
DTE
Generate C# class from database table
Stars: ✭ 26 (+44.44%)
Mutual labels:  wpf
SimpleDialogs
💬 A simple framework to help displaying dialogs on a WPF app
Stars: ✭ 24 (+33.33%)
Mutual labels:  wpf
XamlIslands
Repository with several XAML Islands v1 samples (Win32, WPF, and WinForms) to demonstrate how to use it.
Stars: ✭ 47 (+161.11%)
Mutual labels:  wpf
RDLCPrinter
Wpf ReportViewer control and RDLCPrinter work with SQL Server LocalReport. You can export your report to PDF, Word or PNG Image...
Stars: ✭ 26 (+44.44%)
Mutual labels:  wpf
SacredUtils
Configuration utility for Sacred & Sacred Underworld with Material Design. Abandoned 05/07/2020.
Stars: ✭ 27 (+50%)
Mutual labels:  wpf
SharpDiskSweeper
Reveal outstanding files or folders that are eating up your disk space
Stars: ✭ 21 (+16.67%)
Mutual labels:  wpf
AT-NetCore-NotepadPlusPlus
Notepad++ Editor is one of the most important programs on any computer that everyone uses every day. The most popular and popular editor in Windows operating systems is Notepad, which is definitely familiar to everyone.
Stars: ✭ 42 (+133.33%)
Mutual labels:  wpf
ReactiveValidation
A small validation library for WPF and Avalonia which uses a fluent interface and allows display messages near controls in GUI with MVVM
Stars: ✭ 50 (+177.78%)
Mutual labels:  wpf
BilibiliLiveRecordDownLoader
Bilibili 直播录制与回放下载
Stars: ✭ 422 (+2244.44%)
Mutual labels:  wpf
markdig.wpf
A WPF library for xoofx/markdig https://github.com/xoofx/markdig
Stars: ✭ 133 (+638.89%)
Mutual labels:  wpf
SyncPro
SyncPro is a Windows app for synchronizing files between various online storage providers (OneDrive, Google Drive, Amazon S3, etc.)
Stars: ✭ 39 (+116.67%)
Mutual labels:  wpf
WinDev-Utility
A utility for windows developers
Stars: ✭ 17 (-5.56%)
Mutual labels:  wpf

Multi-Style for WPF

WpfMultiStyle 是用于 WPF 中,使控件同时应用多个 Style,类似于 HTML 中 class="class1 class2 class3"

使用

引入命名空间Nuget

xmlns:wms="clr-namespace:WpfMultiStyle;assembly=WpfMultiStyle"

应用样式

目前有两种方式。一种是通过MarkupExtension扩展,这种有点儿缺陷,在设计时不能直接实时显示效果,需要把 Style 剪切再粘贴才会显示真正的效果。一种是通过附加属性,这个是实时显示效果的。 以Button 为例:

<Button Style="{wms:MultiStyle btn btn-default btn-lg}" Content="Large button" />
<Button wms:Apply.MultiStyle="btn btn-primary btn-lg" Content="Large button" />

效果

demo

参考

How to apply multiple styles in WPF

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].