Repository navigation
Open
Labels
area/hot-reloadCategorizes an issue or PR as relevant to hot reloaddifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't working
Description
Current behavior
During some specific changes it seems HR changes the Data Context to incorrect value, especially for x:Bind:
fail: Microsoft.UI.Xaml.Data.BindingExpression[0]
Failed to apply binding to property [DependencyPropertyDetails(DocsUri)] on [UnexpectedApis.UserControls.SamplePageHeader] (UriTypeConverter cannot convert from UnexpectedApis.ViewModels.DataGridViewModel.)
System.NotSupportedException: UriTypeConverter cannot convert from UnexpectedApis.ViewModels.DataGridViewModel.
at System.ComponentModel.TypeConverter.GetConvertFromException(Object value)
at System.UriTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Uno.UI.DataBinding.BindingPropertyHelper.ConvertUsingTypeDescriptor(Type type, Object value) in C:\a\1\s\src\Uno.UI\DataBinding\BindingPropertyHelper.cs:line 1281
at Uno.UI.DataBinding.BindingPropertyHelper.Convert(Type propertyType, Object value) in C:\a\1\s\src\Uno.UI\DataBinding\BindingPropertyHelper.cs:line 1327
at Microsoft.UI.Xaml.Data.BindingExpression.ConvertToBoundPropertyType(Object value) in C:\a\1\s\src\Uno.UI\DataBinding\BindingExpression.cs:line 865
at Microsoft.UI.Xaml.Data.BindingExpression.ConvertValue(Object value) in C:\a\1\s\src\Uno.UI\DataBinding\BindingExpression.cs:line 851
at Microsoft.UI.Xaml.Data.BindingExpression.SetTargetValueSafe(Object v, Boolean useTargetNullValue) in C:\a\1\s\src\Uno.UI\DataBinding\BindingExpression.cs:line 758
Expected behavior
Should not happen
How to reproduce it (as minimally and precisely as possible)
- Clone https://github.com/MartinZikmund/uno-unexpected-apis
- Checkout commit 47284fe7678ef60e194e799ec67da1a14286c16e
- Run the app on Desktop Win32
- Navigate to
DataGridsample in UI section of navigation view - Go to
SamplePageHeader.xamlin Visual Studio - Change the root grid's padding to "18,0" from "20,0"
- Observe a fail message in the console log
- Observe the page title breaks in the UI
From
To
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Renderer
- Skia
- Native
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
Metadata
Metadata
Assignees
Labels
area/hot-reloadCategorizes an issue or PR as relevant to hot reloaddifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't working


Activity
DevTKSS commentedon May 16, 2025
@MartinZikmund mine breaks also on hotreload after I edited Bindings, but with a different error message, is that somehow related to your issue?
I dont know under which caption I should list this instead maybe you have a suggestion if its not same.
Github dont lets me add the repro without bin and obj as zip here, but you can get it from my Repository directly
the nuget its "missing" then is content of my Extensions PR, but packed it here:
nuget DevTKSS.Extensions.Uno.1.0.0-preview.1.0.0.zip
jeromelaban commentedon May 16, 2025
This is a different issue, let's track in the linked issue.
jhanvi03 commentedon Oct 29, 2025
The issue still persist in latest sdk/template
Tested with:
sdk/template: 6.4.0-dev.50, 6.4.0-dev.51
TFM: Desktop
Console log:
dr1rrb commentedon Nov 5, 2025
Looks similar to unoplatform/uno.extensions#2903
codymullins commentedon Dec 9, 2025
I get this error when doing something as simple as changing the text color. The error says something about being unable to convert to Brush from HotDesign.Brush (this crashed Rider so I can't nab the whole exception.)
github-actions commentedon May 12, 2026
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.