2014-11-24 81 views
1

我是整个XAML考验的新手。我需要帮助。我需要知道如何设置进度条能见度折叠...基本上我想有progessbar消失后,我达到我的目标价值...以下是代码:XAML/C++进度条

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

需要使用的命名空间

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

谢谢,我会试试看。 – Ethandecohen 2014-11-25 06:42:38