-
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.
More from MAUI version
- Loading branch information
Showing
10 changed files
with
1,704 additions
and
1,701 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
Binary file renamed
BIN
+4.16 MB
nuget/AppoMobi.Xamarin.DrawnUi.1.9.0.nupkg → nuget/AppoMobi.Xamarin.DrawnUi.1.9.1.1.nupkg
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
29 changes: 13 additions & 16 deletions
29
src/lib/AppoMobi.Xamarin.DrawnUi/DrawnUi/Controls/Button/SkiaButton.Xamarin.cs
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 |
---|---|---|
@@ -1,27 +1,24 @@ | ||
using System.Windows.Input; | ||
|
||
|
||
namespace DrawnUi.Maui.Draw; | ||
namespace DrawnUi.Maui.Draw; | ||
|
||
/// <summary> | ||
/// Button-like control, can include any content inside. It's either you use default content (todo templates?..) | ||
/// or can include any content inside, and properties will by applied by convention to a SkiaLabel with Tag `MainLabel`, SkiaShape with Tag `MainFrame`. At the same time you can override ApplyProperties() and apply them to your content yourself. | ||
/// </summary> | ||
public partial class SkiaButton : SkiaLayout, ISkiaGestureListener | ||
{ | ||
public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create( | ||
nameof(CornerRadius), | ||
typeof(CornerRadius), | ||
typeof(SkiaButton), | ||
default(CornerRadius), | ||
propertyChanged: NeedApplyProperties); | ||
public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create( | ||
nameof(CornerRadius), | ||
typeof(CornerRadius), | ||
typeof(SkiaButton), | ||
new CornerRadius(8), | ||
propertyChanged: NeedApplyProperties); | ||
|
||
[System.ComponentModel.TypeConverter(typeof(CornerRadiusTypeConverter))] | ||
public CornerRadius CornerRadius | ||
{ | ||
get { return (CornerRadius)GetValue(CornerRadiusProperty); } | ||
set { SetValue(CornerRadiusProperty, value); } | ||
} | ||
[System.ComponentModel.TypeConverter(typeof(CornerRadiusTypeConverter))] | ||
public CornerRadius CornerRadius | ||
{ | ||
get { return (CornerRadius)GetValue(CornerRadiusProperty); } | ||
set { SetValue(CornerRadiusProperty, value); } | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.