-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency on WinUI and allow brand brush override
- Loading branch information
Showing
7 changed files
with
115 additions
and
58 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
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,50 @@ | ||
namespace Esri.Calcite.Maui | ||
{ | ||
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member | ||
[System.ComponentModel.Browsable(false)] | ||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] | ||
public static class CalciteResourceHelper | ||
{ | ||
public static Color GetColor(BindableObject obj) | ||
{ | ||
return (Color)obj.GetValue(ColorProperty); | ||
} | ||
|
||
public static void SetColor(BindableObject obj, Color value) | ||
{ | ||
obj.SetValue(ColorProperty, value); | ||
} | ||
|
||
public static readonly BindableProperty ColorProperty = | ||
BindableProperty.CreateAttached("Color", typeof(Color), typeof(CalciteResourceHelper), null); | ||
|
||
|
||
public static Color GetHoverColor(BindableObject obj) | ||
{ | ||
return (Color)obj.GetValue(HoverColorProperty); | ||
} | ||
|
||
public static void SetHoverColor(BindableObject obj, Color value) | ||
{ | ||
obj.SetValue(HoverColorProperty, value); | ||
} | ||
|
||
public static readonly BindableProperty HoverColorProperty = | ||
BindableProperty.CreateAttached("HoverColor", typeof(Color), typeof(CalciteResourceHelper), null); | ||
|
||
|
||
public static Color GetPressedColor(BindableObject obj) | ||
{ | ||
return (Color)obj.GetValue(PressedColorProperty); | ||
} | ||
|
||
public static void SetPressedColor(BindableObject obj, Color value) | ||
{ | ||
obj.SetValue(PressedColorProperty, value); | ||
} | ||
|
||
public static readonly BindableProperty PressedColorProperty = | ||
BindableProperty.CreateAttached("PressedColor", typeof(Color), typeof(CalciteResourceHelper), null); | ||
} | ||
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member | ||
} |
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
Oops, something went wrong.