2025-07-11 09:20:23 +08:00
|
|
|
|
using Caliburn.Micro;
|
|
|
|
|
|
|
|
|
|
|
|
using System.ComponentModel.Composition;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
|
2025-07-31 20:12:24 +08:00
|
|
|
|
namespace AntDesignWPFDemo.ViewModels
|
2025-07-11 09:20:23 +08:00
|
|
|
|
{
|
|
|
|
|
|
[Export(typeof(IScreen))]
|
|
|
|
|
|
internal class TagViewModel : Screen
|
|
|
|
|
|
{
|
|
|
|
|
|
private Visibility visibility;
|
|
|
|
|
|
|
|
|
|
|
|
public Visibility Visibility
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return visibility; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
visibility = value;
|
|
|
|
|
|
NotifyOfPropertyChange();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TagViewModel()
|
|
|
|
|
|
{
|
|
|
|
|
|
DisplayName = "Tag";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void Closing(object sender, RoutedEventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
e.Handled = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void Toggle()
|
|
|
|
|
|
{
|
|
|
|
|
|
Visibility = visibility == Visibility.Collapsed ? Visibility.Visible : Visibility.Collapsed;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|