Open Siyh opened 2 years ago
Hello Siyh, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback π
This issue has been marked as "needs attention π" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention π" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention π" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention π" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention π" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention π" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention π" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention π" due to no activity for 15 days. Please triage the issue so the fix can be established.
In my case, I just use Converter as suggested in WPF, and that caused Parsing Error. Samples are below:
xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls"
XAML:
<controls:DataGridTextColumn Binding="{Binding UploadDate, Converter={StaticResource DateTimeConverter}}" Header="Date" />
And in the code behind:
public class DateTimeConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { if (value is DateTime) { var test = (DateTime)value; if (test == DateTime.MinValue) { return "None"; } var date = test.ToString("dd.MM.yyyy"); return (date); } return string.Empty; } public object ConvertBack(object value, Type targetType, object parameter, string language) { throw new NotImplementedException(); } }
Describe the bug
See here for details.
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
Comboboxes with displayed values that differ from those underlying.
Screenshots
No response
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
No response
Device form factor
Desktop
Nuget packages
No response
Additional context
No response
Help us help you
No.