当前位置: 首页>>代码示例>>C#>>正文


C# PropertyChangedEventArgs类代码示例

本文整理汇总了C#中PropertyChangedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# PropertyChangedEventArgs类的具体用法?C# PropertyChangedEventArgs怎么用?C# PropertyChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PropertyChangedEventArgs类属于命名空间,在下文中一共展示了PropertyChangedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnChange

 protected void OnChange(object sender, PropertyChangedEventArgs args)
 {
     if (Change != null)
     {
         Change(sender, args);   
     }
 }
开发者ID:StanislavBozhilov,项目名称:SoftwareUniversity,代码行数:7,代码来源:Student.cs

示例2: OnPropertyChanged

 protected virtual void OnPropertyChanged(object sender, PropertyChangedEventArgs changedArgs)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(this, changedArgs);
     }
 }
开发者ID:SGStoyanov,项目名称:SoftUni,代码行数:7,代码来源:Student.cs

示例3: OnModelPropertyChanged

 private void OnModelPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     string name = e.Property.Name;
     if (name == ButtonBase.PropWidth) SyncDimension(SizeDimension.Width);
     if (name == ButtonBase.PropHeight) SyncDimension(SizeDimension.Height);
     if (name == ImageButton.PropBackgroundHighlighting) SetupContent();
 }
开发者ID:philcockfield,项目名称:Open.TestHarness.SL,代码行数:7,代码来源:ImageButtonView.cs

示例4: OnChanged

 private void OnChanged(object sender, PropertyChangedEventArgs e)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(sender, e);
     }
 }
开发者ID:b-small,项目名称:OOP-SoftUni2014,代码行数:7,代码来源:Student.cs

示例5: OnPropertyChanged

 private void OnPropertyChanged(object sender, PropertyChangedEventArgs args)
 {
     if (args.PropertyName == PropertyHelper.GetPropertyName(() => HasMorePrograms))
     {
         RaisePropertyChanged(()=>HasMoreItems);
     }
 }
开发者ID:Catrobat,项目名称:CatrobatForWindows,代码行数:7,代码来源:OnlineProgramsCollectionWindowsShared.cs

示例6: employeeChanged

 private void employeeChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName.Equals("Name"))
     {
         LogMessage("The property '" + e.PropertyName + "' was changed." + "\n\nNew value: " + _employee.Name);
     }
 }
开发者ID:badreddine-dlaila,项目名称:Windows-8.1-Universal-App,代码行数:7,代码来源:Scenario9_UpdateSourceTrigger.xaml.cs

示例7: OnPropertyChanged

 protected virtual void OnPropertyChanged(PropertyChangedEventArgs<string> e)
 {
     if (null != this.PropertyChanged)
     {
         this.PropertyChanged(this, e);
     }
 }
开发者ID:bobosam,项目名称:CSharpOOP,代码行数:7,代码来源:Student.cs

示例8: EventHandler

    private void EventHandler(object sender ,PropertyChangedEventArgs e)
    {
        Debug.Log("Property changed event received");

        if(e.PropertyName == "SliderValue")
            IncreaseVelocity((m_heatSlider.SliderValue) / 10);
    }
开发者ID:A01492492,项目名称:Repo,代码行数:7,代码来源:GUIController.cs

示例9: Ctor_Null_Initialized

 public void Ctor_Null_Initialized()
 {
     var oldValue = new List();
     var subject = new PropertyChangedEventArgs<List>(oldValue, null);
     Assert.AreEqual(oldValue, subject.OldValue);
     Assert.IsNull(subject.NewValue);
 }
开发者ID:JackTheRipper42,项目名称:Binding,代码行数:7,代码来源:PropertyChangedEventArgsTest.cs

示例10: OnPropertyChanged

	    private void OnPropertyChanged (object sender, PropertyChangedEventArgs e)
	    {
			if (e.PropertyName != "Video")
				return;

		    this.video.SetSource (((MainPageViewModel)DataContext).Video, "video/mp4");
	    }
开发者ID:ARMoir,项目名称:mobile-samples,代码行数:7,代码来源:MainPage.xaml.cs

示例11: ViewModel_PropertyChanged

        // Visual state management typically reflects the four application view states directly
        // (full screen landscape and portrait plus snapped and filled views.)  The split page is
        // designed so that the snapped and portrait view states each have two distinct sub-states:
        // either the item list or the details are displayed, but not both at the same time.
        //
        // This is all implemented with a single physical page that can represent two logical
        // pages.  The code below achieves this goal without making the user aware of the
        // distinction.

        private void ViewModel_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            // When the 'SelectedItem' property of the view-model changes then update the visual state

            if (e.PropertyName == "SelectedItem")
                this.InvalidateVisualState();
        }
开发者ID:Valks,项目名称:Okra,代码行数:16,代码来源:SplitPage.xaml.cs

示例12: OnChanged

 protected virtual void OnChanged(object sender, PropertyChangedEventArgs e)
 {
     if (PropertyChanged != null)
     {
         PropertyChanged(sender, e);
     }
 }
开发者ID:ScreeM92,项目名称:Software-University,代码行数:7,代码来源:Student.cs

示例13: Validate

 void Validate(object sender, PropertyChangedEventArgs e)
 {
     if (validator != null)
     {
         validationResult = validator.Validate(target);
     }
 }
开发者ID:kamil-mrzyglod,项目名称:FodyAddinSamples,代码行数:7,代码来源:ValidationTemplate.cs

示例14: OnPropertyChanged

 protected void OnPropertyChanged(string propName, dynamic oldValue, dynamic newValue )
 {
     if (PropertyChanged != null)
     {
         PropertyChangedEventArgs args = new PropertyChangedEventArgs(propName, oldValue, newValue);
         PropertyChanged(this, args);
     }
 }
开发者ID:ivanovcorp,项目名称:SoftwareUniversity,代码行数:8,代码来源:Student.cs

示例15: Ctor_ValueType_Initialized

 public void Ctor_ValueType_Initialized()
 {
     const int oldValue = 42;
     const int newValue = 64;
     var subject = new PropertyChangedEventArgs<int>(oldValue, newValue);
     Assert.AreEqual(oldValue, subject.OldValue);
     Assert.AreEqual(newValue, subject.NewValue);
 }
开发者ID:JackTheRipper42,项目名称:Binding,代码行数:8,代码来源:PropertyChangedEventArgsTest.cs


注:本文中的PropertyChangedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。