XAML / C ++进度条

时间:2014-11-24 01:52:44

标签: xaml c++-cli

我是整个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; 
}

1 个答案:

答案 0 :(得分:0)

需要使用命名空间

this->ProgressBar1->Visibility = Windows::UI::Xaml::Visibility::Collapsed;