protected override void LoadState(Object navigationParameter, Dictionary<String, Object> pageState)
{
// TODO: Assign a bindable collection of items to this.DefaultViewModel["Items"]
if (Convert.ToInt32(navigationParameter) >= 0)
{
BindData();
BindData();
txt1.Text = data[Convert.ToInt32(navigationParameter)].Name;
Img.Source = data[Convert.ToInt32(navigationParameter)].ImagePath;
}
我想将 img 源设置为字符串。