Files
IPTVplayer/TV Player WPF/GroupButton.cs
T
2024-01-21 12:14:48 +02:00

38 lines
1.3 KiB
C#

using System.Windows;
using System.Windows.Controls;
namespace TV_Player
{
/// <summary>
/// Interaction logic for GroupButton.xaml
/// </summary>
public partial class GroupButton : UserControl
{
public static readonly DependencyProperty GroupNameProperty =
DependencyProperty.Register(
"GroupName", // Name of the property
typeof(string), // Type of the property
typeof(GroupButton), // Type of the owner class
new PropertyMetadata(string.Empty) // Default value
);
public string GroupName
{
get { return (string)GetValue(GroupNameProperty); }
set { SetValue(GroupNameProperty, value); }
}
public static readonly DependencyProperty ProgramsCountProperty =
DependencyProperty.Register(
"ProgramsCount", // Name of the property
typeof(string), // Type of the property
typeof(GroupButton), // Type of the owner class
new PropertyMetadata(string.Empty) // Default value
);
public string ProgramsCount
{
get { return (string)GetValue(ProgramsCountProperty); }
set { SetValue(ProgramsCountProperty, value); }
}
}
}