Skip to content

Commit

Permalink
feat: Add Material 3 FAB Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 committed May 19, 2022
1 parent ff96638 commit 1cd22cc
Show file tree
Hide file tree
Showing 5 changed files with 1,663 additions and 8 deletions.
22 changes: 22 additions & 0 deletions src/library/Uno.Material/Extensions/ControlExtensions.cs
Expand Up @@ -27,6 +27,28 @@ public static class ControlExtensions

public static IconElement GetIcon(Control obj) => (IconElement)obj.GetValue(IconProperty);
public static void SetIcon(Control obj, IconElement value) => obj.SetValue(IconProperty, value);
#endregion

#region DependencyProperty: IconHeight
public static DependencyProperty IconHeightProperty { get; } = DependencyProperty.RegisterAttached(
"IconHeight",
typeof(double),
typeof(ControlExtensions),
new PropertyMetadata(Double.NaN));

public static double GetIconHeight(Control obj) => (double)obj.GetValue(IconHeightProperty);
public static void SetIconHeight(Control obj, double value) => obj.SetValue(IconHeightProperty, value);
#endregion

#region DependencyProperty: IconWidth
public static DependencyProperty IconWidthProperty { get; } = DependencyProperty.RegisterAttached(
"IconWidth",
typeof(double),
typeof(ControlExtensions),
new PropertyMetadata(Double.NaN));

public static double GetIconWidth(Control obj) => (double)obj.GetValue(IconWidthProperty);
public static void SetIconWidth(Control obj, double value) => obj.SetValue(IconWidthProperty, value);

#endregion

Expand Down

0 comments on commit 1cd22cc

Please sign in to comment.