Skip to content

Commit

Permalink
image button instead of image
Browse files Browse the repository at this point in the history
  • Loading branch information
sebarslan committed Apr 4, 2024
1 parent e566871 commit d9d0248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Maui.NullableDateTimePicker/NullableDateTimePicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class NullableDateTimePicker : ContentView
public event EventHandler<DateTimeChangedEventArgs> NullableDateTimeChanged;
private Grid _dateTimePickerGrid;
private Entry _dateTimePickerEntry;
private Image _dateTimePickerIcon;
private ImageButton _dateTimePickerIcon;
private Border _dateTimePickerBorder;
private bool isSetIconCalledForFirstTime = false;
const double defaultHeightRequest = 40;
Expand Down Expand Up @@ -52,7 +52,7 @@ public NullableDateTimePicker()
VerticalTextAlignment = this.VerticalTextAlignment
};

_dateTimePickerIcon = new Image
_dateTimePickerIcon = new ImageButton
{
BackgroundColor = this.IconBackgroundColor,
Aspect = Aspect.AspectFit,
Expand Down

0 comments on commit d9d0248

Please sign in to comment.