Time colour
Hello.
Would you be so kind as to check why it is not possible to change the selection view?
<picker:SfTimePicker x:Name="Timepicker" >
<picker:SfTimePicker.SelectionView >
<picker:PickerSelectionView CornerRadius="10" Stroke="#36454F" Padding="10, 5, 10, 5" Background="#808080" />
</picker:SfTimePicker.SelectionView>
</picker:SfTimePicker>
Hi yaro,
As per the shared information, we have checked your requirement
“To apply selection view for the .NET MAUI SfTimePicker”. We want to inform
you that as per current implementation behavior, selection view is applicable when
set the TextDisplayMode as Default.
We
hope that this helps you. Please let us know if you need further assistance.
We have attached the code snippet for picker with Selection view.
|
<picker:SfTimePicker x:Name="Picker" Mode="Dialog" IsOpen="True" TextDisplayMode="Default" > <picker:SfTimePicker.SelectionView > <picker:PickerSelectionView CornerRadius="10" Stroke="#36454F" Padding="10, 5, 10, 5" Background="#808080" /> </picker:SfTimePicker.SelectionView> </picker:SfTimePicker> |
Screenshot:
Regards,
Indumathi R
I just copied you code:
CANNOT to change text colour. And also I want to have it for TextDisplayMode="FadeAndShrink" not for TextDisplayMode="Default" only.
Also - colour is changing according to Mode="Dialog" start or end, e.g.:
According to this, POSSIBLE to change colour. Can I have selected colour in Blue/Red/Magenta... not White an Violet?
<<<<<<<<<<
Hi Yaro,
Regarding “Selection View text color is changing in Dialog mode in the .NET MAUI SfPicker”:
We have found and fixed the reported scenario on our end. The issue fix will be included in our upcoming weekly NuGet release update which scheduled to roll-out on September 24, 2024. We will let you know once the NuGet is released and appreciate your patience until then.
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Regarding “Can I have selected color in Blue/Red/Magenta?”:
Your requirement can be achieved by changing the PickerTextStyle.TextColor to the required color, as shown in the following code snippet.
[XAML]:
|
<picker:SfTimePicker.SelectedTextStyle> <picker:PickerTextStyle TextColor="Red" /> </picker:SfTimePicker.SelectedTextStyle> |
We hope that this helps you. Please let us know if you need further assistance.
Regards,
Vishal O.
Hello!
Thank you very much for the provided information and for the prompt resolution of the issue. I truly appreciate your work and attention to detail. I am also grateful for the code example and the explanation on how to change the text color. This really helped me solve the issue that was concerning me.
I look forward to the NuGet release on September 24, 2024, and I hope everything goes smoothly. Thank you for your support and professionalism!
I wish you success in your future work, and I will be happy to reach out to you if I need further assistance.
Best regards,
Yaro
Hi Yaro,
We have fixed the reported scenario “Selection View text color is changing in Dialog mode” in the .NET MAUI SfTimePicker control from our end and included the fix in our latest weekly NuGet release update version 27.1.50, which is available for download in nuget.org.
Root-cause: The selection text color was not updated based on TextDisplayMode.
We thank you for your support and appreciate your patience in waiting for this update. Please feel free to reach out to us if you would require any further assistance.
Regards,
Vishal O.
- 6 Replies
- 3 Participants
-
YA Yaro
- Sep 19, 2024 10:10 AM UTC
- Sep 24, 2024 10:41 AM UTC