-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added events ViewModelAttached, ViewModelPropertyChanged and ViewMode…
…lDetached on MvvmWindow and MvvmUserControl
- Loading branch information
1 parent
7544845
commit 5dbc56f
Showing
7 changed files
with
124 additions
and
9 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
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
6 changes: 6 additions & 0 deletions
6
src/RolandK.AvaloniaExtensions/Mvvm/ViewModelAttachedEventArgs.cs
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,6 @@ | ||
namespace RolandK.AvaloniaExtensions.Mvvm; | ||
|
||
public class ViewModelAttachedEventArgs(IAttachableViewModel viewModel) : EventArgs | ||
{ | ||
public IAttachableViewModel ViewModel { get; } = viewModel; | ||
} |
6 changes: 6 additions & 0 deletions
6
src/RolandK.AvaloniaExtensions/Mvvm/ViewModelDetachedEventArgs.cs
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,6 @@ | ||
namespace RolandK.AvaloniaExtensions.Mvvm; | ||
|
||
public class ViewModelDetachedEventArgs(IAttachableViewModel viewModel) : EventArgs | ||
{ | ||
public IAttachableViewModel ViewModel { get; } = viewModel; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/RolandK.AvaloniaExtensions/Mvvm/ViewModelPropertyChangedEventArgs.cs
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,8 @@ | ||
namespace RolandK.AvaloniaExtensions.Mvvm; | ||
|
||
public class ViewModelPropertyChangedEventArgs(IAttachableViewModel viewModel, string propertyName) : EventArgs | ||
{ | ||
public IAttachableViewModel ViewModel { get; } = viewModel; | ||
|
||
public string PropertyName { get; } = propertyName; | ||
} |