我是整个XAML考验的新手。我需要帮助。我需要知道如何将进度条可见性设置为Collapsed ...基本上我想让progessbar在达到目标值后消失...这是代码:
this->ProgressBar1->Value += 1;
//This is the target value
if (this->ProgressBar1->Value == 10)
{
//this line of code just doesnt work... icannot compile Please help.
this->ProgressBar1->Visibility = Visibility->Collapsed;
}
答案 0 :(得分:0)
需要使用命名空间
this->ProgressBar1->Visibility = Windows::UI::Xaml::Visibility::Collapsed;