Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StaffQuickPickerView"/> class.
 /// </summary>
 /// <param name="staffQuickPickerViewModel">The staff quick picker view model.</param>
 public StaffQuickPickerView( StaffQuickPickerViewModel staffQuickPickerViewModel )
     : this()
 {
     DataContext = staffQuickPickerViewModel;
     var regionContext = RegionContext.GetObservableContext ( this );
     regionContext.PropertyChanged += ( source, args ) =>
         {
             staffQuickPickerViewModel.SearchCommunicater =
                 ( QuickPickerCommunicator )regionContext.Value;
         };
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="StaffQuickPickerView"/> class.
        /// </summary>
        /// <param name="staffQuickPickerViewModel">The staff quick picker view model.</param>
        public StaffQuickPickerView(StaffQuickPickerViewModel staffQuickPickerViewModel)
            : this()
        {
            DataContext = staffQuickPickerViewModel;
            var regionContext = RegionContext.GetObservableContext(this);

            regionContext.PropertyChanged += (source, args) =>
            {
                staffQuickPickerViewModel.SearchCommunicater =
                    ( QuickPickerCommunicator )regionContext.Value;
            };
        }