Open mageshsankar opened 3 years ago
@mageshsankar did you find this issue using Winui3 or system xaml (winui2)?
Hi @StephenLPeters
I have found the issue in WinUi 3
Thanks
@mageshsankar does this work with x:Bind
? And do you know if it's just DateTimeOffset
or is it any nullable type?
@stevenbrix issue occurs only for nullable type, as you suggested x:Bind is working properly for nullable DateTimeOffset ,
The same scenario(binding) working properly for nullable DateTime type.
Issue only with nullable DateTimeOffset type
Hi Team,
Is there any workaround solution to resolve the binding issue in custom control(CustomPicker) itself instead of using x:bind in application level.
Hi Team,
Any update on this?
I can't x:Bind the Date property of CalendarDatePicker to DateTimeOffset (nullable or not), without getting an exception in WinUI 3 Preview 4
Hi Team, Any update on this issue? I had same issue with Nullable DateTime too. I cannot bind string to LowerValue on XAML. Please take a look at this issue. Thanks! [DefaultValue(typeof(DateTime), "")] public DateTime? LowerValue { get => _lowerValue; set => SetLowerValue(value, false); }
Hi Team, Any updates on the above issue? Any workaround/fix instead of using x;Bind ?
Describe the bug I am trying to bind value for property of nullable DateTimeOffset type, but binding does not work. But, when I manually set the value for particular property in code behind, it works properly. Please find the Code Snippet for the same below:
Expected behavior Binding Should work as expected
XAML:
<Page x:Class="BindingIssue_sample.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:BindingIssue_sample" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">