Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

251
Views
containing type does not implement interface 'IComponentConnector'

IComponentConnector is implemented in the generated cs file

For some reason visual studio will not compile the below code.
I am on .NET 6 WPF.
Has there been any breaking changes that doesn't allow me to extend System.Windows.Window anymore ?
I am lost for words. The error makes no sense.
I'll post below my xaml and cs for the window:

<local:ExtendedWindow x:Class="Enciphered.Wpf.Window1"
                      x:TypeArguments="local:RoundedWindowViewModel"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                      xmlns:local="clr-namespace:Enciphered.Wpf"
                      mc:Ignorable="d"
                      Title="Window1" Height="450" Width="800">
    <Grid>

    </Grid>
</local:ExtendedWindow>
namespace Enciphered.Wpf
{
    public partial class Window1 : ExtendedWindow<RoundedWindowViewModel>
    {
        public Window1()
        {
            InitializeComponent();
        }
    }
}
using System.Windows;

namespace Enciphered.Wpf
{
    public class ExtendedWindow<TViewModel> : Window 
        where TViewModel: ViewModel
    {
        protected TViewModel? _viewModel;
        public TViewModel? ViewModel
        {
            get => _viewModel;
            set
            {
                if (_viewModel is not null)
                    if (_viewModel.Equals(value))
                        return;
                if (_viewModel is null && value is null)
                    return;
                _viewModel = value;
                DataContext = ViewModel;
            }
        }
    }
}
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try to remove the following line from the project (.csproj) file and then build again:

<Nullable>enable</Nullable>
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!