2015-05-10 85 views
0

我試圖將HubSection的可見性設置爲摺疊,但是當我這樣做時我的應用程序崩潰,出現以下錯誤。崩潰HubSection以編程方式崩潰 - WP8 C++

accountSection->Visibility = Windows::UI::Xaml::Visibility::Collapsed; // Executed on the main thread. 


Error Message: The parameter is incorrect. 

任何人都可以幫助我嗎?
謝謝

回答

1

這是一個known issue。不要設置該部分的可見性,請爲該集線器命名並使用add(), insert(), remove()

private void hideSection1Button_Click(object sender, RoutedEventArgs e) 
{ 
    HubName.Sections.Remove(section1); 
} 
+0

是的!這工作!謝謝! – SWE