Код: Выделить всё
Код: Выделить всё
public partial class MonthDayControl : UserControl
{
public MonthDayControl()
{
InitializeComponent();
DataContext = this;
}
public string Month
{
get
{
return (string)GetValue(MonthProperty);
}
set
{
SetValue(MonthProperty, value);
}
}
public static readonly DependencyProperty MonthProperty = DependencyProperty.Register("Month", typeof(string), typeof(MonthDayControl), new PropertyMetadata(string.Empty));
public int Day
{
get
{
return (int)GetValue(DayProperty);
}
set
{
SetValue(DayProperty, value);
}
}
public static readonly DependencyProperty DayProperty = DependencyProperty.Register("Day", typeof(int), typeof(MonthDayControl), new PropertyMetadata(0));
}
}
Свойство MonthAbbreviated не найдено в объекте типа MonthDayControl.
Свойство Date не найдено в объекте типа MonthDayControl.
Подробнее здесь: https://stackoverflow.com/questions/793 ... rol-in-wpf
Мобильная версия