C# Класс Microsoft.Practices.Prism.Regions.Behaviors.SelectorItemsSourceSyncBehavior

Defines the attached behavior that keeps the items of the Selector host control in synchronization with the IRegion. This behavior also makes sure that, if you activate a view in a region, the SelectedItem is set. If you set the SelectedItem or SelectedItems (ListBox) then this behavior will also call Activate on the selected items. When calling Activate on a view, you can only select a single active view at a time. By setting the SelectedItems property of a listbox, you can set multiple views to active.
Наследование: RegionBehavior, IHostAwareRegionBehavior
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BehaviorKey string

Защищенные методы

Метод Описание
OnAttach ( ) : void

Starts to monitor the IRegion to keep it in synch with the items of the HostControl.

Приватные методы

Метод Описание
ActiveViews_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
HostControlSelectionChanged ( object sender, SelectionChangedEventArgs e ) : void
SynchronizeItems ( ) : void
Views_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Описание методов

OnAttach() защищенный Метод

Starts to monitor the IRegion to keep it in synch with the items of the HostControl.
protected OnAttach ( ) : void
Результат void

Описание свойств

BehaviorKey публичное статическое свойство

Name that identifies the SelectorItemsSourceSyncBehavior behavior in a collection of RegionsBehaviors.
public static string BehaviorKey
Результат string