protected override void OnAttached() { base.OnAttached(); _itemType = AssociatedObject is GridView ? SelectorItemType.GridViewItem : SelectorItemType.ListViewItem; AssociatedObject.ChoosingItemContainer += OnChoosingItemContainer; AssociatedObject.ContainerContentChanging += OnContainerContentChanging; ProcessMappings(); }
public SelectorItem(string label, IMaybe <TypeConstraint> typeConstraint, SelectorItemType selectorItemType) : this() { Label = label; TypeConstraint = typeConstraint; SelectorItemType = selectorItemType; }