Show / Hide Table of Contents

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 Source

SelectionsProperty

A collections of selected items.

Declaration
public static readonly DependencyProperty SelectionsProperty
Field Value
Type Description
System.Windows.DependencyProperty

Properties

View Source

Selections

Gets or sets a List of selected items.

Declaration
public IList Selections { get; set; }
Property Value
Type Description
System.Collections.IList

Methods

View Source

OnAttached()

Override for the OnAttached() method which is called when an object is attached.

Declaration
protected override void OnAttached()
View Source

OnDetaching()

Override for the OnDetaching() method which is called when an object is detached.

Declaration
protected override void OnDetaching()
  • View Source
In This Article
Back to top Generated by DocFX