Skip to content

Commit

Permalink
Fix ImageButton CornerRadius type #37
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkov committed Jun 29, 2023
1 parent 0514a6b commit 6dc2903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fabulous.XamarinForms/Views/Controls/ImageButton.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module ImageButton =

let BorderWidth = Attributes.defineBindableFloat ImageButton.BorderWidthProperty

let CornerRadius = Attributes.defineBindableFloat ImageButton.CornerRadiusProperty
let CornerRadius = Attributes.defineBindableInt ImageButton.CornerRadiusProperty

let IsLoading = Attributes.defineBindableBool ImageButton.IsLoadingProperty

Expand Down Expand Up @@ -103,7 +103,7 @@ type ImageButtonModifiers =
/// <summary>Set the corner radius of the image button</summary>
/// <param name="radius">The corner radius of the image button.</param>
[<Extension>]
static member inline cornerRadius(this: WidgetBuilder<'msg, #IImageButton>, value: float) =
static member inline cornerRadius(this: WidgetBuilder<'msg, #IImageButton>, value: int) =
this.AddScalar(ImageButton.CornerRadius.WithValue(value))

[<Extension>]
Expand Down

0 comments on commit 6dc2903

Please sign in to comment.