System.ComponentModel.PropertyChangedEventHandler.Invoke(object, System.ComponentModel.PropertyChangedEventArgs)

Here are the examples of the csharp api System.ComponentModel.PropertyChangedEventHandler.Invoke(object, System.ComponentModel.PropertyChangedEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2002 Examples 7

19 View Source File : ViewModelBase.cs
License : Microsoft Public License
Project Creator : achimismaili

protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : ViewModelBase.cs
License : GNU General Public License v3.0
Project Creator : Acumatica

public virtual void RaiseAllPropertyChanged() => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(string.Empty));

19 View Source File : BoxAnnotation3D.cs
License : MIT License
Project Creator : ABTSoftware

protected void NotifyPropertyChanged(String PropertyName)
		{
			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(PropertyName));
		}

19 View Source File : AcceleriderUserExtensions.cs
License : MIT License
Project Creator : Accelerider

private static void RaisePropertyChanged([CallerMemberName] string propertyName = null)
        {
            Guards.ThrowIfNull(propertyName);

            if (propertyName.StartsWith("Remove") || propertyName.StartsWith("Add"))
            {
                propertyName += "s";
            }

            propertyName = propertyName
                .Replace("Set", string.Empty)
                .Replace("Add", string.Empty)
                .Replace("Remove", string.Empty);

            PropertyChanged?.Invoke(null, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : ActualSizePropertyProxy.cs
License : MIT License
Project Creator : ABTSoftware

private void NotifyPropChange()
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs("ActualWidthValue"));
                PropertyChanged(this, new PropertyChangedEventArgs("ActualHeightValue"));
            }
        }

19 View Source File : HyperlinkButtonCompatible.cs
License : MIT License
Project Creator : ABTSoftware

private void OnPropertyChanged(string propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

19 View Source File : ClockControl.xaml.cs
License : MIT License
Project Creator : Actipro

protected virtual void OnPropertyChanged(PropertyChangedEventArgs e) {
			PropertyChangedEventHandler eventHandlers = this.PropertyChanged;
			if (null != eventHandlers)
				eventHandlers(this, e);
		}

19 View Source File : BindableAvalonEditor.cs
License : MIT License
Project Creator : Abdesol

public void RaisePropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

19 View Source File : ObservableValue.cs
License : GNU General Public License v3.0
Project Creator : Adam-Wilkinson

protected void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : UndoStack.cs
License : MIT License
Project Creator : Abdesol

void NotifyPropertyChanged(string propertyName)
		{
			if (PropertyChanged != null)
				PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
		}

19 View Source File : Notification.cs
License : MIT License
Project Creator : Accelerider

protected virtual void RaisePropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : HistogramBarDemoProjectViewModel.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null) PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : AddRemoveDataSeries3DChart.xaml.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : Feature.cs
License : Microsoft Public License
Project Creator : achimismaili

protected void OnPropertyChanged(string name)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
        }

19 View Source File : SortedObservableCollectionTests.cs
License : Microsoft Public License
Project Creator : AArnott

internal void RaisePropertyChanged(object? sender, string? propertyName) => this.PropertyChanged?.Invoke(sender, new PropertyChangedEventArgs(propertyName));

19 View Source File : StaduimSeatingTier.cs
License : GNU Lesser General Public License v3.0
Project Creator : acnicholas

private void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

19 View Source File : BaseViewModel.cs
License : MIT License
Project Creator : ABTSoftware

protected void OnPropertyChanged(string propertyName)
        {            
#if SILVERLIGHT
            if (_dispatcher == null) TryGetDispatcher();

            if (_dispatcher != null && !_dispatcher.CheckAccess())
            {
                _dispatcher.BeginInvoke(() => OnPropertyChanged(propertyName));
                return;
            }
#endif            

            var handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

19 View Source File : GameAI.cs
License : MIT License
Project Creator : active-logic

void NotifyPropertyChanged(String p) => PropertyChanged?
        .Invoke(this, new PropertyChangedEventArgs(p));

19 View Source File : MainViewModel.cs
License : MIT License
Project Creator : 1iveowl

protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
        {
            PropertyChanged?.Invoke(this, e);
        }

19 View Source File : MainWindowViewModel.cs
License : GNU General Public License v3.0
Project Creator : Adam-Wilkinson

public void ShowAllScripts()
        {
            MainControl = new AllScriptsViewer
            {
                DataContext = App.LaminarInstance
            };
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(MainControl)));
        }

19 View Source File : MainViewModel.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged(string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : LogarithmicAxisView.xaml.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged(string propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : MainWindow.xaml.cs
License : MIT License
Project Creator : 3RD-Dimension

private void RaisePropertyChanged(string propertyName)
		{
			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
		}

19 View Source File : Scatter3DOnChartWalls.xaml.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : TextEditor.cs
License : MIT License
Project Creator : Abdesol

protected virtual void OnOptionChanged(PropertyChangedEventArgs e)
		{
			if (OptionChanged != null) {
				OptionChanged(this, e);
			}
		}

19 View Source File : TestResult.cs
License : MIT License
Project Creator : ABTSoftware

protected void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

19 View Source File : MainViewModel.cs
License : MIT License
Project Creator : ABTSoftware

[NotifyPropertyChangedInvocator]
        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : FibonacciRetracementViewModel.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged(string propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

19 View Source File : ObservableLazyTreeNode.cs
License : MIT License
Project Creator : Accelerider

public virtual void RaisePropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : SortedObservableCollection`1.cs
License : Microsoft Public License
Project Creator : AArnott

protected void OnPropertyChanged(string propertyName)
	{
		replacedumes.True(propertyName == nameof(this.Count));
		this.PropertyChanged?.Invoke(this, CountPropertyChangedArgs);
	}

19 View Source File : FileExplorer.xaml.cs
License : GNU General Public License v3.0
Project Creator : ACEmulator

private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : Person.cs
License : MIT License
Project Creator : ABTSoftware

private void PropChanged(string name)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
        }

19 View Source File : ViewModelBase.cs
License : Microsoft Public License
Project Creator : achimismaili

protected virtual void SetProperty<T>(ref T member, T val,
            [CallerMemberName] string propertyName = null)
        {
            if (object.Equals(member, val)) return;

            member = val;
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : MainWindow.xaml.cs
License : GNU General Public License v3.0
Project Creator : 1RedOne

protected virtual void OnPropertyChanged(string name)
        {
            var handler = System.Threading.Interlocked.CompareExchange(ref PropertyChanged, null, null);
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
                log.Info($"Changing property {name}");
            }
        }

19 View Source File : Hatch.cs
License : GNU Lesser General Public License v3.0
Project Creator : acnicholas

private void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : FeaturesHelper.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged(string propertyName)
        {
            var handler = PropertyChanged;

            handler?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : MvvmTextEditor.cs
License : GNU Lesser General Public License v3.0
Project Creator : acnicholas

public void RaisePropertyChanged(string property)
        #pragma warning restore CA1030 // Use events where appropriate
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

19 View Source File : SortedObservableCollectionTests.cs
License : Microsoft Public License
Project Creator : AArnott

protected void OnPropertyChanged([CallerMemberName] string propertyName = "") => this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));

19 View Source File : InertiaScrollViewerViewModel.cs
License : MIT License
Project Creator : Actipro

protected virtual void OnPropertyChanged(string propertyName) {
			PropertyChangedEventHandler handler = PropertyChanged;
			if (handler != null)
				handler(this, new PropertyChangedEventArgs(propertyName));
		}

19 View Source File : SciChartInteractionToolbar.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged(string propertyName)
            {
                var handler = PropertyChanged;
                if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
            }

19 View Source File : ViewModelBase.cs
License : GNU General Public License v3.0
Project Creator : Acumatica

public virtual void NotifyPropertyChanged([CallerMemberName]string propertyName = null)
		{
			if (propertyName.IsNullOrWhiteSpace())
				return;

			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
		}

19 View Source File : StatusViewClasses.cs
License : GNU General Public License v3.0
Project Creator : 1RedOne

protected void OnPropertyChanged(string name)
            {
                PropertyChangedEventHandler handler = PropertyChanged;
                if (handler != null)
                {
                    handler(this, new PropertyChangedEventArgs(name));
                }
            }

19 View Source File : MainWindowViewModel.cs
License : GNU General Public License v3.0
Project Creator : Adam-Wilkinson

public void ShowScriptEditor(IAdvancedScript script)
        {
            MainControl = new ScriptEditor
            {
                DataContext = script,
            };
            script.IsBeingEdited = true;
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(MainControl)));
        }

19 View Source File : LineChartViewModel.cs
License : MIT License
Project Creator : ABTSoftware

protected virtual void OnPropertyChanged(string propertyName = "")
        {
            var handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : TextDocument.cs
License : MIT License
Project Creator : Abdesol

void OnPropertyChanged(string propertyName)
		{
			if (PropertyChanged != null)
				PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
		}

19 View Source File : MainWindow_Model.cs
License : MIT License
Project Creator : 1217950746

private void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : StatusViewClasses.cs
License : GNU General Public License v3.0
Project Creator : 1RedOne

public void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : ShadowWindow.xaml.cs
License : MIT License
Project Creator : 944095635

protected virtual void OnPropertyChanged(string propertyName = null)
        {
            if (PropertyChanged != null)
                PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

19 View Source File : TextEditorOptions.cs
License : MIT License
Project Creator : Abdesol

protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
		{
			if (PropertyChanged != null) {
				PropertyChanged(this, e);
			}
		}

19 View Source File : Load500x500SeriesRefreshTest.xaml.cs
License : MIT License
Project Creator : ABTSoftware

[NotifyPropertyChangedInvocator]
        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
        }

See More Examples