public TaskbarPanel(ILatch latch, ILogger logger, MainViewModel mainViewModel, IUiHelper uiHelper) { _log = logger; _mainViewModel = mainViewModel; _uiHelper = uiHelper; InitializeComponent(); InitializeMainWindowLatch = latch; ViewModel = new TaskbarPanelViewModel(_mainViewModel.MyApplications.Where(a => a.Application.PinnedToTaskbar && !a.IsUnsupported).ToList()); DataContext = ViewModel; }