-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement INotifyPropertyChanging/ed to VirtualDesktop.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace WindowsDesktop | ||
{ | ||
partial class VirtualDesktop : INotifyPropertyChanging, INotifyPropertyChanged | ||
{ | ||
/// <summary> | ||
/// Occurs when a virtual desktop property changing. | ||
/// </summary> | ||
public event PropertyChangingEventHandler PropertyChanging; | ||
|
||
private void RaisePropertyChanging([CallerMemberName] string propertyName = "") | ||
=> PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName)); | ||
|
||
/// <summary> | ||
/// Occurs when a virtual desktop property changed. | ||
/// </summary> | ||
public event PropertyChangedEventHandler PropertyChanged; | ||
|
||
private void RaisePropertyChanged([CallerMemberName] string propertyName = "") | ||
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
} |