Class SynchronizeSelectedItems
Custom behavior that synchronizes the list in System.Windows.Controls.ListBox.SelectedItems with a collection.
Inheritance
System.Object
SynchronizeSelectedItems
Namespace: Phoenix.Controls
Assembly: Phoenix.Controls.dll
Syntax
public class SynchronizeSelectedItems : Behavior<ListBox>
Remarks
This behavior uses a weak event handler to listen for changes on the synchronized collection. Adapted from Prism 4.1 Reference: MVVM RI\MVVM.Client\Infrastructure\Behaviors\SynchronizeSelectedItems.cs.
Fields
View SourceSelectionsProperty
A collections of selected items.
Declaration
public static readonly DependencyProperty SelectionsProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
Properties
View SourceSelections
Gets or sets a List of selected items.
Declaration
public IList Selections { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IList |
Methods
View SourceOnAttached()
Override for the OnAttached() method which is called when an object is attached.
Declaration
protected override void OnAttached()
OnDetaching()
Override for the OnDetaching() method which is called when an object is detached.
Declaration
protected override void OnDetaching()