コード例 #1
0
 public AgencyQuickPickerView( AgencyQuickPickerViewModel agencyQuickPickerViewModel )
     : this()
 {
     DataContext = agencyQuickPickerViewModel;
     var regionContext = RegionContext.GetObservableContext ( this );
     regionContext.PropertyChanged += ( source, args ) =>
         {
             agencyQuickPickerViewModel.SearchCommunicater =
                 ( QuickPickerCommunicator )regionContext.Value;
         };
 }
コード例 #2
0
        public AgencyQuickPickerView(AgencyQuickPickerViewModel agencyQuickPickerViewModel)
            : this()
        {
            DataContext = agencyQuickPickerViewModel;
            var regionContext = RegionContext.GetObservableContext(this);

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