//public ICommand ClickCommand //{ // get { return (ICommand)GetValue(ClickCommandProperty); } // set { SetValue(ClickCommandProperty, value); } ////} //public static readonly DependencyProperty ClickCommandProperty = // DependencyProperty.Register("ClickCommand", typeof(ICommand), typeof(ThumbnailControl), new PropertyMetadata()); private void selection_Checked(object sender, RoutedEventArgs e) { OnSelected?.Execute(e); }