Пример #1
0
 public StaffSearchView( StaffSearchViewModel staffSearchViewModel )
     : this()
 {
     DataContext = staffSearchViewModel;
     var regionContext = RegionContext.GetObservableContext ( this );
     regionContext.PropertyChanged += ( source, args ) =>
         {
             staffSearchViewModel.SearchCommunicater =
                 ( SearchCommunicater )regionContext.Value;
         };
 }
Пример #2
0
        public StaffSearchView(StaffSearchViewModel staffSearchViewModel)
            : this()
        {
            DataContext = staffSearchViewModel;
            var regionContext = RegionContext.GetObservableContext(this);

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