From d9d02488dceff1c886477bbe90815e5223d94edb Mon Sep 17 00:00:00 2001 From: Sebahattin Arslan Date: Thu, 4 Apr 2024 18:50:49 +0200 Subject: [PATCH] image button instead of image --- Maui.NullableDateTimePicker/NullableDateTimePicker.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Maui.NullableDateTimePicker/NullableDateTimePicker.cs b/Maui.NullableDateTimePicker/NullableDateTimePicker.cs index b1151c6..e4a703c 100644 --- a/Maui.NullableDateTimePicker/NullableDateTimePicker.cs +++ b/Maui.NullableDateTimePicker/NullableDateTimePicker.cs @@ -9,7 +9,7 @@ public class NullableDateTimePicker : ContentView public event EventHandler NullableDateTimeChanged; private Grid _dateTimePickerGrid; private Entry _dateTimePickerEntry; - private Image _dateTimePickerIcon; + private ImageButton _dateTimePickerIcon; private Border _dateTimePickerBorder; private bool isSetIconCalledForFirstTime = false; const double defaultHeightRequest = 40; @@ -52,7 +52,7 @@ public NullableDateTimePicker() VerticalTextAlignment = this.VerticalTextAlignment }; - _dateTimePickerIcon = new Image + _dateTimePickerIcon = new ImageButton { BackgroundColor = this.IconBackgroundColor, Aspect = Aspect.AspectFit,