.NET6.0/WPF/VS2022 XAML-Designer: The name "ReactiveWindow" does not exist in the namespace "http://reactiveui.net". #3457
-
Hi there! I started to re-write one of our WPF projects using ReactiveUI and have some trouble to get the XAML-Designer to accept the markup. After double-checking everything and spending hours on googling the error messages I finally created a fresh and clean bare minimum VisualStudio solution and the errors are still present there.
The main problem I'm facingThe following screenshot from VS should speak for itself: However, the code generated from the XAML in the file using ReactiveUI;
using SampleRoot.SampleReactiveProject.View;
using SampleRoot.SampleReactiveProject.ViewModel;
[...]
namespace SampleRoot.SampleReactiveProject.View {
/// <summary>
/// MainWindow
/// </summary>
public partial class MainWindow : ReactiveUI.ReactiveWindow<SampleRoot.SampleReactiveProject.ViewModel.MainWindowViewModel>, System.Windows.Markup.IComponentConnector {
[...]
}
} The using ReactiveUI;
using SampleRoot.SampleReactiveProject.ViewModel;
namespace SampleRoot.SampleReactiveProject.View;
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : ReactiveWindow<MainWindowViewModel>
{
public MainWindow()
{
InitializeComponent();
}
} The viewmodel class: using ReactiveUI;
namespace SampleRoot.SampleReactiveProject.ViewModel;
public class MainWindowViewModel : ReactiveObject
{
} What I did so far
At this point I'm running out of ideas, what could possibly cause/fix my problem and just hope that someone here with more experience can give me some pointers how to get this working. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@mimeister please see Updated Code I hope that this helps. |
Beta Was this translation helpful? Give feedback.
@mimeister please see Updated Code
I have updated the project to remove the unnecessary code and added a binding to demonstrate
This is an issue with any solution using any overridden base class in WPF such as ReactiveWindow or ReactiveControl.
NOTE: see that the compelling Example also has the base class declarations removed in code relying on the XAML implementation.
I hope that this helps.