Я создал UserControl с меткой и прямоугольником внутри 2 строк сетки. Я добавил свойство
public string SetText
{
get
{
return (string)GetValue(mLabel.ContentProperty);
}
set
{
SetValue(mLabel.ContentProperty, value);
}
}
Использование имущества
<local:PlayerMiniImage SetText="Player 1" ...
Когда я использовал это свойство, шрифт метки изменился, а прямоугольник исчез. Есть идеи?