本文整理汇总了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));
}
示例2: OnPropertyChanged
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
{
if (PropertyChanged != null)
{
PropertyChanged(this, e);
}
}
示例3: RootPropertyChanged
void RootPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if ("State" == e.PropertyName)
{
base.OnPropertyChanged("ProgressEnabled");
}
}
示例4: HandlePropertyChanged
void HandlePropertyChanged(object sender, PropertyChangedEventArgs e)
{
if(e.PropertyName == ReflectionUtil.GetPropertyName(() => this.model.DiscoveredGameInstances))
{
this.UpdateList ();
}
}
示例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();
}
示例6: OnAppearanceManagerPropertyChanged
private void OnAppearanceManagerPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == "ThemeSource" || e.PropertyName == "AccentColor")
{
SyncThemeAndColor();
}
}
示例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();
}
示例8: CoreDataContent_PropertyChanged
void CoreDataContent_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == CoreDataTypes.CurrentSelectedDatabase.ToString())
{
SetCurrentTreeViewNode();
}
}
示例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();
}
示例10: SettingsPropertyChanged
private void SettingsPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == "Password")
{
password.Password = ViewModel.Password;
}
}
示例11: LayerPropertyChanged
void LayerPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == "Envelope")
{
OnPropertyChanged(e.PropertyName);
}
}
示例12: NotifierPropertyChanged
private void NotifierPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (ShouldNotify(e.PropertyName))
Notify();
HookSubpathMonitor();
}
示例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;
}
}
示例14: OnLoginPropertyChanged
private void OnLoginPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == "IsLoggedIn" && IsLoggedIn)
{
this.regionManager.Regions[RegionNames.ShellContentRegion].RequestNavigate("ContentView", nr => { });
}
}
示例15: OnPropertyChanged
private void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (this.propertyNames[(INotifyPropertyChanged)sender].Contains(e.PropertyName))
{
this.handler(sender, e);
}
}