當前位置: 首頁>>代碼示例>>C#>>正文


C# ComponentModel.PropertyChangedEventArgs類代碼示例

本文整理匯總了C#中System.ComponentModel.PropertyChangedEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# PropertyChangedEventArgs類的具體用法?C# PropertyChangedEventArgs怎麽用?C# PropertyChangedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PropertyChangedEventArgs類屬於System.ComponentModel命名空間,在下文中一共展示了PropertyChangedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: GP_PropertyChanged

 private void GP_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     //  Nom du noeud modifié            ((GrandeurPhysique)sender).Nom  
     //  Nom de la propriété modifier    e.PropertyName
     if (e.PropertyName=="Valeur")
         Model.CalculerRelation(((GrandeurPhysique)sender));
 }
開發者ID:aliaspilote,項目名稱:TX52,代碼行數:7,代碼來源:MonGraph_ViewModel.cs

示例2: OnPropertyChanged

 protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(this, e);
     }
 }
開發者ID:PaulStovell,項目名稱:sms-quiz,代碼行數:7,代碼來源:BindableObject.cs

示例3: RootPropertyChanged

 void RootPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if ("State" == e.PropertyName)
     {
         base.OnPropertyChanged("ProgressEnabled");
     }
 }
開發者ID:bullshock29,項目名稱:Wix3.6Toolset,代碼行數:7,代碼來源:ProgressViewModel.cs

示例4: HandlePropertyChanged

 void HandlePropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if(e.PropertyName == ReflectionUtil.GetPropertyName(() => this.model.DiscoveredGameInstances))
     {
         this.UpdateList ();
     }
 }
開發者ID:Krumelur,項目名稱:Pyramid,代碼行數:7,代碼來源:GameNetworkInstanceDiscoveryController.cs

示例5: ConstantTypeVM_PropertyChanged

        void ConstantTypeVM_PropertyChanged(object sender, PropertyChangedEventArgs e) {
            if (e.PropertyName == nameof(ConstantTypeVM.Value))
                OnPropertyChanged(nameof(Value));
            else if (e.PropertyName == nameof(ConstantTypeVM.IsEnabled))
                IsEnabled = ConstantTypeVM.IsEnabled;
            HasErrorUpdated();
        }
開發者ID:manojdjoshi,項目名稱:dnSpy,代碼行數:7,代碼來源:ConstantVM.cs

示例6: OnAppearanceManagerPropertyChanged

 private void OnAppearanceManagerPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "ThemeSource" || e.PropertyName == "AccentColor")
     {
         SyncThemeAndColor();
     }
 }
開發者ID:joelbugarini,項目名稱:warehouse,代碼行數:7,代碼來源:SettingsAppearanceViewModel.cs

示例7: workWeek_PropertyChanged

 private void workWeek_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     // this property doesn't exist here, but we want to trigger saving the data at MainViewModel
     this.OnPropertyChanged("HoursDuration");
     this.UpdateProjectHitlistAsync();
     this.UpdatePositionHitlistAsync();
 }
開發者ID:dotob,項目名稱:moni,代碼行數:7,代碼來源:WorkYear.cs

示例8: CoreDataContent_PropertyChanged

 void CoreDataContent_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == CoreDataTypes.CurrentSelectedDatabase.ToString())
     {
         SetCurrentTreeViewNode();
     }
 }
開發者ID:sunnysunhuajun,項目名稱:BuilderCode,代碼行數:7,代碼來源:ExplorerForm.cs

示例9: settings_PropertyChanged

        /// <summary>
        /// Handles the PropertyChanged event of the <see cref="_settings"/>.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.ComponentModel.PropertyChangedEventArgs"/> instance containing the event data.</param>
        void settings_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (!StringComparer.Ordinal.Equals(KeySettingName, e.PropertyName))
                return;

            UpdateValue();
        }
開發者ID:Furt,項目名稱:netgore,代碼行數:12,代碼來源:SettingsKeyCodeReference.cs

示例10: SettingsPropertyChanged

 private void SettingsPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Password")
     {
         password.Password = ViewModel.Password;
     }
 }
開發者ID:alibad,項目名稱:Bugger,代碼行數:7,代碼來源:TFSSettingView.xaml.cs

示例11: LayerPropertyChanged

 void LayerPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Envelope")
     {
         OnPropertyChanged(e.PropertyName);
     }
 }
開發者ID:HackatonArGP,項目名稱:Guardianes,代碼行數:7,代碼來源:Map.cs

示例12: NotifierPropertyChanged

        private void NotifierPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (ShouldNotify(e.PropertyName))
                Notify();

            HookSubpathMonitor();
        }
開發者ID:Mrding,項目名稱:Ribbon,代碼行數:7,代碼來源:ItemPropertyPathMonitor.cs

示例13: ErrorOnPropertyChanged

 /// <summary>
 /// Wird aufgerufen, wenn sich eine Property in WorkflowEditorDesignerCanvasErrorViewModel ausgelöst wird.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void ErrorOnPropertyChanged(object sender, PropertyChangedEventArgs args)
 {
     if (args.PropertyName == "Error")
     {
         ErrorMessage = WorkflowEditorDesignerCanvasErrorViewModel.Instance.Error;
     }
 }
開發者ID:martinjuhasz,項目名稱:Softwaretechnik,代碼行數:12,代碼來源:WorkflowEditorViewModel.cs

示例14: OnLoginPropertyChanged

 private void OnLoginPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "IsLoggedIn" && IsLoggedIn)
     {
         this.regionManager.Regions[RegionNames.ShellContentRegion].RequestNavigate("ContentView", nr => { });
     }
 }
開發者ID:Displayedd,項目名稱:PrismWpfApplication,代碼行數:7,代碼來源:ContentViewModel.cs

示例15: OnPropertyChanged

 private void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (this.propertyNames[(INotifyPropertyChanged)sender].Contains(e.PropertyName))
     {
         this.handler(sender, e);
     }
 }
開發者ID:Lawo,項目名稱:ember-plus-sharp,代碼行數:7,代碼來源:PropertyChangedRegistration.cs


注:本文中的System.ComponentModel.PropertyChangedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。