public ShareSource() { this.InitializeComponent(); this.viewModel = (ShareSourceViewModel)this.DataContext; this.Loaded += ShareSource_Loaded; this.Unloaded += ShareSource_Unloaded; this.LostFocus += UpdateContent; this.PointerMoved += UpdateContent; this.ManipulationStarted += UpdateContent; this.KeyDown += UpdateContent; }