-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3534 from timunie/CheckBoxWin10Style
CheckBox Windows 10 Style
- Loading branch information
Showing
14 changed files
with
3,110 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Windows; | ||
|
||
namespace MahApps.Metro.Controls | ||
{ | ||
/// <summary> | ||
/// Represents an icon that uses a glyph from the specified font. | ||
/// </summary> | ||
public class FontIcon : IconElement | ||
{ | ||
/// <summary>Identifies the <see cref="Glyph"/> dependency property.</summary> | ||
public static readonly DependencyProperty GlyphProperty | ||
= DependencyProperty.Register( | ||
nameof(Glyph), | ||
typeof(string), | ||
typeof(FontIcon), | ||
new FrameworkPropertyMetadata(string.Empty)); | ||
|
||
/// <summary> | ||
/// Gets or sets the character code that identifies the icon glyph. | ||
/// </summary> | ||
/// <returns>The hexadecimal character code for the icon glyph.</returns> | ||
public string Glyph | ||
{ | ||
get { return (string)this.GetValue(GlyphProperty); } | ||
set { this.SetValue(GlyphProperty, value); } | ||
} | ||
|
||
static FontIcon() | ||
{ | ||
DefaultStyleKeyProperty.OverrideMetadata(typeof(FontIcon), new FrameworkPropertyMetadata(typeof(FontIcon))); | ||
} | ||
} | ||
} |
Oops, something went wrong.