void OnIsSelectedChanged(DependencyPropertyChangedEventArgs e) { bool newValue = (bool)e.NewValue; if (LayoutControl != null) { LayoutControl.SetTileIsSelected(this, newValue); } }