2014-11-24 66 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