-
Notifications
You must be signed in to change notification settings - Fork 199
【入门】系统控件样式Key介绍
HeBianGu edited this page Aug 7, 2023
·
2 revisions
HeBianGu.General.WpfControlLib
HeBianGu.Base.WpfBase
<Button Content="Button" Style="{DynamicResource {x:Static h:ButtonKeys.Default}}" />
<Button Content="Accent" Style="{DynamicResource {x:Static h:ButtonKeys.Accent}}" />
public class ButtonKeys
{
public static ComponentResourceKey Dynamic => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Dynamic");
public static ComponentResourceKey Default => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Default");
public static ComponentResourceKey Icon => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Icon");
public static ComponentResourceKey Label => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Label");
public static ComponentResourceKey Single => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Single");
public static ComponentResourceKey LabelSingle => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Single.Label");
public static ComponentResourceKey Accent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Accent");
public static ComponentResourceKey LabelAccent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Accent.Label");
public static ComponentResourceKey Transparent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Transparent");
public static ComponentResourceKey Link => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Link");
public static ComponentResourceKey Circle => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Circle");
public static ComponentResourceKey CircleTransparent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Circle.Transparent");
public static ComponentResourceKey AccentBackTransparent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Transparent.AccentBack");
public static ComponentResourceKey BorderBrushTransparent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Transparent.BorderBrush");
public static ComponentResourceKey MouseOver => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.MouseOver");
public static ComponentResourceKey Close => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Close");
public static ComponentResourceKey CloseFlag => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Close.Flag");
public static ComponentResourceKey MinimizeWindow => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Window.Minimize");
public static ComponentResourceKey MaximizeWindow => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Window.Maximize");
public static ComponentResourceKey RestoreWindow => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Window.Restore");
public static ComponentResourceKey HideWindow => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Window.Hide");
public static ComponentResourceKey CloseWindow => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Window.Close");
public static ComponentResourceKey Clear => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Clear");
public static ComponentResourceKey AddTransparent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Add.Transparent");
public static ComponentResourceKey AddTransparentBorder => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Add.Border");
public static ComponentResourceKey Delete => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Delete");
public static ComponentResourceKey Edit => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Edit");
public static ComponentResourceKey Detial => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Detial");
public static ComponentResourceKey Add => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Add");
public static ComponentResourceKey Set => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Set");
public static ComponentResourceKey CloseMouseOver => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Close.MouseOver");
public static ComponentResourceKey CloseTransparent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Close.Transparent");
public static ComponentResourceKey Left => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Left");
public static ComponentResourceKey Right => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Right");
public static ComponentResourceKey Start => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Start");
public static ComponentResourceKey Stop => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Stop");
public static ComponentResourceKey VerticalToolBar => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Vertical.ToolBar");
public static ComponentResourceKey SetTransparent => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Transparent.Set");
public static ComponentResourceKey AddCircle => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Add.Circle");
public static ComponentResourceKey DeleteCircle => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Delete.Circle");
public static ComponentResourceKey SumitCircle => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Sumit.Circle");
public static ComponentResourceKey CloseCircle => new ComponentResourceKey(typeof(ButtonKeys), "S.Button.Close.Circle");
}
public class TextBlockKeys
{
public static ComponentResourceKey Default => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Default");
public static ComponentResourceKey Icon => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Icon");
public static ComponentResourceKey Title => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Title");
public static ComponentResourceKey Binding => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Binding");
public static ComponentResourceKey FontSize18 => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.FontSize.18");
public static ComponentResourceKey FontSize16 => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.FontSize.16");
public static ComponentResourceKey FontSize14 => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.FontSize.14");
public static ComponentResourceKey AnimationFontSize => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.FontSize");
public static ComponentResourceKey AnimationFontSizeBounceEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.FontSize.BounceEase");
public static ComponentResourceKey AnimationFontSizeBackEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.FontSize.BackEase");
public static ComponentResourceKey AnimationFontSizeElasticEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.FontSize.ElasticEase");
public static ComponentResourceKey AnimationOpacity => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Opacity");
public static ComponentResourceKey AnimationOpacityBounceEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Opacity.BounceEase");
public static ComponentResourceKey AnimationOpacityBackEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Opacity.BackEase");
public static ComponentResourceKey AnimationOpacityCubicEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Opacity.CubicEase");
public static ComponentResourceKey ColorAnimation => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Opacity.ElasticEase");
public static ComponentResourceKey AnimationOpacityElasticEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Opacity.BounceEase");
public static ComponentResourceKey AnimationColor => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Color");
public static ComponentResourceKey AnimationColorElasticEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Color.ElasticEase");
public static ComponentResourceKey AnimationColorCubicEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Color.CubicEase");
public static ComponentResourceKey AnimationColorBounceEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Color.BounceEase");
public static ComponentResourceKey AnimationColorBackEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Color.BackEase");
public static ComponentResourceKey AnimationAngle => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Angle");
public static ComponentResourceKey AnimationAngleBounceEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Angle.BounceEase");
public static ComponentResourceKey AnimationAngleBackEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Angle.BackEase");
public static ComponentResourceKey AnimationAngleElasticEase => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Angle.ElasticEase");
public static ComponentResourceKey AnimationTranslateX => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Translate.X");
public static ComponentResourceKey AnimationTranslateXToLeft => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Translate.X.ToLeft");
public static ComponentResourceKey AnimationTranslateXToRight => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Translate.X.ToRight");
public static ComponentResourceKey AnimationTranslateY => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Translate.Y");
public static ComponentResourceKey AnimationTranslateYToBottom => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Translate.Y.ToBottom");
public static ComponentResourceKey AnimationTranslateYToTop => new ComponentResourceKey(typeof(TextBlockKeys), "S.TextBlock.Animation.Translate.Y.ToTop");
}
<h:ButtonKeys />
<h:BorderKeys />
<h:CheckBoxKeys />
<h:RadioButtonKeys />
<h:ComboBoxKeys />
<h:DataGridKeys />
<h:DatePickerKeys />
<h:CalendarKeys />
<h:ExpanderKeys />
<h:GroupBoxKeys />
<h:LabelKeys />
<h:ListBoxKeys />
<h:MenuKeys />
<h:MenuItemKeys />
<h:PasswordBoxKeys />
<h:ProgressBarKeys />
<h:ScrollViewerKeys />
<h:SeparatorKeys />
<h:SliderKeys />
<h:TabControlKeys />
<h:TextBlockKeys />
<h:HyperlinkKeys />
<h:TextBoxKeys />
<h:ToggleButtonKeys />
<h:TreeViewKeys />