Files
parsec-vdd/app/Components/Button.xaml.cs
T
2025-03-11 09:26:30 +07:00

26 lines
681 B
C#

using System;
using System.Windows;
using System.Windows.Controls;
namespace ParsecVDisplay.Components
{
public partial class Button : UserControl
{
public event EventHandler Click;
public new object Content { get; set; }
public static readonly new DependencyProperty ContentProperty =
DependencyProperty.Register("Content", typeof(object), typeof(Button), new PropertyMetadata(null));
public Button()
{
InitializeComponent();
DataContext = this;
}
private void Button_Click(object sender, RoutedEventArgs e)
{
Click?.Invoke(sender, e);
}
}
}