32 lines
721 B
C#
32 lines
721 B
C#
using System;
|
|
using System.Collections.ObjectModel;
|
|
using System.IO;
|
|
using System.Text;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Media.Imaging;
|
|
using Avalonia.Platform;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace ZTools.ViewModels;
|
|
|
|
public partial class Item1: ObservableObject
|
|
{
|
|
[ObservableProperty]
|
|
private string _name;
|
|
[ObservableProperty]
|
|
private DateTime _bornDate;
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Name: {_name}, BornDate: {_bornDate}";
|
|
}
|
|
}
|
|
public partial class SettingViewModel: PageViewModelBase
|
|
{
|
|
private bool _isOpenLog;
|
|
private bool _isOnTop;
|
|
|
|
public bool IsOpenLog => _isOpenLog;
|
|
public bool IsOnTop => _isOnTop;
|
|
} |