如何通过单击按钮清除图像。我已经使用bt_ClearOnclick从文本框中删除数据。
private void btClear_Click(object sender, RoutedEventArgs e)
{
txtId.Text = String.Empty;
txtvalue.Text = String.Empty;
image?
答案 0 :(得分:2)
private void btClear_Click(object sender, RoutedEventArgs e)
{
txtId.Text = String.Empty;
txtvalue.Text = String.Empty;
image.Source = null;
}