Exemplo n.º 1
0
        private void LoadTaskbarIcon(TrayIconViewModel trayVm)
        {
            trayVm.OnExitApplication += (s, e) => Application.Current.Shutdown();

            _tb.DataContext = trayVm;
            _tb?.BringIntoView();
        }
 protected override void Load(ContainerBuilder builder)
 {
     builder.Register(c => TrayIconViewModel.Create(c.Resolve <AssistantApp>()));
 }