12345678910111213141516171819202122232425262728 |
- using Shaker.Models;
- using ShakerApp.Views;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ShakerApp.ViewModels
- {
- internal class MainPageItemViewModel:ViewModelBase<IModel>
- {
- private bool cache;
- public bool Cache { get => cache; set =>SetProperty(ref cache , value); }
- public MainPageType PageType { get; }
- public MainPageItemViewModel(MainPageType pageType,Type content)
- {
- PageType = pageType;
- Content = content;
- }
- public object? ConvertParameter => Cache ? "123" : null;
- }
- }
|