public WpfVideoControl() { InitializeComponent(); this.AddEvent(WpfVideoControl.ImageProperty, this.ImagePropertyChanged); this.AddEvent(WpfVideoControl.LayersProperty, this.LayersPropertyChanged); }