【发布时间】:2011-03-15 12:05:17
【问题描述】:
我正在用 XAML 编写这个
<TextBlock Text="{Binding Path=Test}" Grid.Column="1" Margin="52,46,32,50" Name="textBlockCheck" />
在 CS 中
public partial class MainPage : PhoneApplicationPage
{
private string _test = "SHUAIB";
public string Test
{
get
{
return this._test;
}
set
{
if (value != this._test)
{
this._test = value;
}
}
}//other code here}
但问题是 textBlock 中没有显示任何内容:(。我知道这会很简单,但我对 phone 7 和 silverlight 很陌生。我会感谢你的:)
【问题讨论】:
标签: c# silverlight data-binding mobile