-
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.
* WatchList.WPF - Used DevExpress in project. * WatchList.WPF - Change view page.
- Loading branch information
1 parent
d2a0699
commit 7eb8b8c
Showing
13 changed files
with
65 additions
and
142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
using System.Windows.Controls; | ||
using DevExpress.Mvvm; | ||
using WatchList.WPF.Data; | ||
using WatchList.WPF.Views; | ||
|
||
namespace WatchList.WPF.ViewModel | ||
{ | ||
public sealed class CinemaWindowViewModel | ||
public sealed class CinemaWindowViewModel : BindableBase | ||
{ | ||
private Page? _currentPage; | ||
|
||
public CinemaWindowViewModel(PageService pageService) | ||
{ | ||
pageService.PageChanged += (o, page) => CurrentPage = page; | ||
pageService.Open(this, new CinemaPage()); | ||
} | ||
|
||
public Page? CurrentPage { get; private set; } | ||
public Page? CurrentPage { get => _currentPage; set => SetValue(ref _currentPage, value); } | ||
} | ||
} |
Oops, something went wrong.