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 { 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; } }