You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a dependency property is an enum and bound to the UI - during live running of the app, any change made to the enum is accepted correctly, but the UI fails (control assumes that property is now null) and the IDE says it cannot convert the enum to a valid entry.
Error message in logs:
Exception thrown at 0x7598A942 in Heic Viewer.exe: Microsoft C++ exception: Microsoft::VisualStudio::DesignTools::UwpTap::LiveMarkup::LiveMarkupError at memory location 0x0077E4DC
Steps to reproduce the bug
public enum MyEnum
{
OptionOne,
OptionTwo,
OptionThree
}
public class MyCustomControl : Control
{
public static readonly DependencyProperty MyEnumProperty =
DependencyProperty.Register(
nameof(MyEnum),
typeof(MyEnum),
typeof(MyCustomControl),
new PropertyMetadata(MyEnum.OptionOne)
);
public MyEnum MyEnum
{
get { return (MyEnum)GetValue(MyEnumProperty); }
set { SetValue(MyEnumProperty, value); }
}
public MyCustomControl()
{
this.DefaultStyleKey = typeof(MyCustomControl);
}
}
Expected behavior
As we don't have a visual designer, the expected behavour is that the live hot reload works, allowing changes to the code/xaml to not require a "close app", recompile, deploy, and run, to test changes.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.5: 1.5.240627000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When a dependency property is an enum and bound to the UI - during live running of the app, any change made to the enum is accepted correctly, but the UI fails (control assumes that property is now null) and the IDE says it cannot convert the enum to a valid entry.
Error message in logs:
Exception thrown at 0x7598A942 in Heic Viewer.exe: Microsoft C++ exception: Microsoft::VisualStudio::DesignTools::UwpTap::LiveMarkup::LiveMarkupError at memory location 0x0077E4DC
Steps to reproduce the bug
public enum MyEnum
{
OptionOne,
OptionTwo,
OptionThree
}
public class MyCustomControl : Control
{
public static readonly DependencyProperty MyEnumProperty =
DependencyProperty.Register(
nameof(MyEnum),
typeof(MyEnum),
typeof(MyCustomControl),
new PropertyMetadata(MyEnum.OptionOne)
);
}
Expected behavior
As we don't have a visual designer, the expected behavour is that the live hot reload works, allowing changes to the code/xaml to not require a "close app", recompile, deploy, and run, to test changes.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.5: 1.5.240627000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: