public ArchiveItem() { InitializeComponent(); // TODO: Proper fix ViewModel = Service.Services.GetRequiredService <ArchiveItemViewModel>(); lang = ResourceLoader.GetForCurrentView("Dialogs"); flags = Service.Api.ControlFlags; }
public ArchiveHitItem() { this.InitializeComponent(); // TODO: Proper fix LeftViewModel = Service.Services.GetRequiredService <ArchiveItemViewModel>(); RightViewModel = Service.Services.GetRequiredService <ArchiveItemViewModel>(); Data = Service.Services.GetRequiredService <ArchiveHitViewModel>(); }
public GenericArchiveItem() { this.DefaultStyleKey = typeof(GenericArchiveItem); // TODO: Proper fix ViewModel = Service.Services.GetRequiredService <ArchiveItemViewModel>(); ViewModel.Show += Show; ViewModel.Hide += Hide; DataContextChanged += Control_DataContextChanged; PointerPressed += Control_PointerPressed; }