Created
September 15, 2018 01:10
-
-
Save JerryNixon/c797538f9c3e4e5c4c1039354020c05f to your computer and use it in GitHub Desktop.
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
[ContentProperty(Name = nameof(LiteralContent))] | |
public sealed class AppBarLiteral : AppBarSeparator | |
{ | |
public AppBarLiteral() | |
{ | |
DefaultStyleKey = typeof(AppBarLiteral); | |
} | |
public object LiteralContent | |
{ | |
get { return (object)GetValue(LiteralContentProperty); } | |
set { SetValue(LiteralContentProperty, value); } | |
} | |
public static readonly DependencyProperty LiteralContentProperty = | |
DependencyProperty.Register(nameof(LiteralContent), typeof(object), | |
typeof(AppBarLiteral), new PropertyMetadata(null)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This goes in your \Themes\generic.xaml file.
This is what it looks like.
This is how you use it in your app.