-
Notifications
You must be signed in to change notification settings - Fork 108
Description
Description
ToolkitVersion 1.0.5
When displaying an OK button in the footer of a Picker, the button becomes invisible after the first click.
However, the TapGestureRecognizer still works — tapping the area where the button was still triggers the event.
Video:
https://github.com/user-attachments/assets/ceb90ee7-1e18-4933-915d-99dc578575fd
Steps to Reproduce
Open Maui App on Windows.
MainPage.xaml
<VerticalStackLayout Padding="30,0" Spacing="25">
<picker:SfPicker
x:Name="SfPicker"
Mode="Dialog"
OkButtonClicked="SfPicker_OnOkButtonClicked">
<picker:SfPicker.Background>
<SolidColorBrush Color="Transparent" />
</picker:SfPicker.Background>
<picker:SfPicker.FooterView>
<picker:PickerFooterView Height="40" ShowOkButton="True" />
</picker:SfPicker.FooterView>
</picker:SfPicker>
<Button
Clicked="OnCounterClicked"
HorizontalOptions="Fill"
Text="Open Dialog Picker" />
</VerticalStackLayout>
MainPage.xaml.cs
private void OnCounterClicked(object? sender, EventArgs e)
{
this.SfPicker.Columns.Clear();
ObservableCollection<object> cityName = new ObservableCollection<object>();
cityName.Add("Chennai");
cityName.Add("Mumbai");
cityName.Add("Delhi");
cityName.Add("Kolkata");
cityName.Add("Bangalore");
cityName.Add("Hyderabad");
cityName.Add("Pune");
cityName.Add("Ahmedabad");
cityName.Add("Jaipur");
cityName.Add("Lucknow");
cityName.Add("Chandigarh");
PickerColumn pickerColumn = new PickerColumn()
{
HeaderText = "Select City",
ItemsSource = cityName,
SelectedIndex = 1,
};
this.SfPicker.Columns.Add(pickerColumn);
SfPicker.IsOpen = true;
}
private void SfPicker_OnOkButtonClicked(object? sender, EventArgs e)
{
SfPicker.IsOpen = false;
}Version with bug
1.0.4
Is this a regression from previous behavior?
No, this is a new issue
Last Known Working Version
1.0.3
Affected platforms
Windows
Affected Platform Versions
net9.0-windows10.0.19041.0
Have you found a workaround?
`Not yet
Relevant log output
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done