Пример #1
0
 public ArchiveItem()
 {
     InitializeComponent();
     // TODO: Proper fix
     ViewModel = Service.Services.GetRequiredService <ArchiveItemViewModel>();
     lang      = ResourceLoader.GetForCurrentView("Dialogs");
     flags     = Service.Api.ControlFlags;
 }
Пример #2
0
 public ArchiveHitItem()
 {
     this.InitializeComponent();
     // TODO: Proper fix
     LeftViewModel  = Service.Services.GetRequiredService <ArchiveItemViewModel>();
     RightViewModel = Service.Services.GetRequiredService <ArchiveItemViewModel>();
     Data           = Service.Services.GetRequiredService <ArchiveHitViewModel>();
 }
Пример #3
0
 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;
 }