Private DetailViewModelBase _selectedDetail In the MainViewModel I’ve defined the properties Details and SelectedDetail like below (Note: this is not the full-blown MainViewModel): public class MainViewModel : ViewModelBase Now let’s look at some code parts that are quite common to TabControl users. If the friend has been changed, this popup appears when the user tries to close the tab: In the ViewModel for a friend I check whether the friend has been changed by the user or not. When you click on the little X-button in the tab header, the tab closes… did I say “tab”? Of course I mean pivot-item. Clicking on “Open new friend” or “Open new book” opens up a new tab and also adds that item to the navigation on the left. There was not everything perfect, but let’s look at these “non-perfect”-points later and let’s start with the sample.īelow you see a screenshot of the sample-application. And again, UWP felt like a pretty amazing technology.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |