Код: Выделить всё
Код: Выделить всё
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace WeatherApp.UserControl
{
public partial class CardDay : UserControl
{
public CardDay()
{
InitializeComponent();
}
public string Day
{
get { return (string)GetValue(DayProperty); }
set { SetValue(DayProperty, value); }
}
public static readonly DependencyProperty DayProperty = DependencyProperty.Register("Day", typeof(string), typeof(CardDay));
public string MaxNum
{
get { return (string)GetValue(MaxNumProperty); }
set { SetValue(MaxNumProperty, value); }
}
public static readonly DependencyProperty MaxNumProperty = DependencyProperty.Register("MaxNum", typeof(string), typeof(CardDay));
public string MinNum
{
get { return (string)GetValue(MinNumProperty); }
set { SetValue(MinNumProperty, value); }
}
public static readonly DependencyProperty MinNumProperty = DependencyProperty.Register("MinNum", typeof(string), typeof(CardDay));
public ImageSource Source
{
get { return (ImageSource)GetValue(SourceProperty); }
set { SetValue(SourceProperty, value); }
}
public static readonly DependencyProperty SourceProperty = DependencyProperty.Register("Source", typeof(ImageSource), typeof(CardDay));
}
}
Код: Выделить всё
public partial class CardDay : UserControl
{
public CardDay()
{
InitializeComponent();
}
как я могу решить эту проблему??
действительно новичок в этом деле
Пытался использовать возможные исправления, но не помогло.
Подробнее здесь: https://stackoverflow.com/questions/783 ... ike-a-type
Мобильная версия