Open HO-COOH opened 2 weeks ago
This behavior is so unexpected and is documented NOWHERE.
https://learn.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-intrinsic-data-types
Note Dates and times (properties that use DateTime or DateTimeOffset, TimeSpan or System.TimeSpan) aren't settable with a XAML primitive.
This behavior is so unexpected and is documented NOWHERE.
https://learn.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-intrinsic-data-types
Note Dates and times (properties that use DateTime or DateTimeOffset, TimeSpan or System.TimeSpan) aren't settable with a XAML primitive.
“aren't settable with a XAML primitive.” and this is already obviously wrong or out-dated, I can set it as a xaml string.
Describe the bug
"Obviously", this is the correct way of binding
BeginTime
to a xaml resourceNote: You got absolutely no intellisense when you type out the
StaticResource
binding (which is usually an indication of you doing something stupid)Using a
sys:TimeSpan
gives a runtime error in C# project and a build time error in C++ project: C#: C++:Using a
x:TimeSpan
gives a build error in both:This behavior is so unexpected and is documented NOWHERE.
Steps to reproduce the bug
Just see above.
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.4: 1.5.240607001
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response