Files
StructureHelper/Infrastructure/UI/UserControls/PrimitivePopup.xaml.cs

48 lines
1.2 KiB
C#

using System.Windows;
using System.Windows.Controls.Primitives;
using StructureHelper.Infrastructure.Enums;
namespace StructureHelper.Infrastructure.UI.UserControls
{
/// <summary>
/// Interaction logic for PrimitivePopup.xaml
/// </summary>
public partial class PrimitivePopup : Popup
{
public static readonly DependencyProperty TypeProperty =
DependencyProperty.Register("Type", typeof(PrimitiveType), typeof(PrimitivePopup));
public static readonly DependencyProperty IsOpenProperty =
DependencyProperty.Register("IsOpen", typeof(bool), typeof(PrimitivePopup));
private PrimitiveType type;
private bool isOpen;
public PrimitiveType Type
{
get => type;
set
{
if (value != type)
{
type = value;
}
}
}
public bool IsOpen
{
get => isOpen;
set
{
if (value != isOpen)
isOpen = value;
}
}
public PrimitivePopup()
{
InitializeComponent();
}
}
}