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

256
Views
el tipo que contiene no implementa la interfaz 'IComponentConnector'

IComponentConnector se implementa en el archivo cs generado

Por alguna razón, Visual Studio no compilará el siguiente código.
Estoy en .NET 6 WPF.
¿Ha habido cambios importantes que ya no me permiten extender System.Windows.Window ?
Estoy perdido por las palabras. El error no tiene sentido.
Publicaré debajo de mi xaml y cs para la ventana:

 <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

Intente eliminar la siguiente línea del archivo del proyecto ( .csproj ) y luego vuelva a compilar:

 <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!