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
@eriklimakc Because FrameControl ultimately inherits from DependencyObject it needs to follow the rules for a DependencyObject. Specifically, it needs to have type information that can be located through the app's (generated by default) IXamlMetadataProvider implementation. If FrameControl were referenced directly in XAML markup then this type information would be automatically included in the IXamlMetadataProvider implementation but because it is not you need to decorate the type with the [Bindable] attribute in order to force its inclusion. Note that MainPageViewModel does not have the same requirement because it does not inherit from DependencyObject.
Describe the bug
When attempting to bind data from the ViewModel to a Custom UserControl created entirely in C# the binding fails and no data appears.
Steps to reproduce the bug
Repro app: FrameControl.zip
MainWindow.xaml
MainWindow.xaml.cs
MainPageViewModel
FrameControl
Expected behavior
The source binding should work.
Screenshots
Current
Expected
NuGet package version
None
Packaging type
No response
Windows version
No response
IDE
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: