In my application got one sidebar, which is holding this two component :
<Grid x:Name="AF" Visibility="Visibility">
<betata:AForm Height="508" VerticalAlignment="Top"/>
</Grid>
<Grid x:Name="AN" Visibility="Collapsed">
<betata:ANav Height="508" VerticalAlignment="Top"/>
</Grid>
in the AForm got hyperlink button with this method :
private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
{
Visibility = Visibility.Collapsed;
Sidebar sb = new Sidebar();
sb.AN.Visibility = Visibility.Visible;
}
but i not sure why the aForm will collapsed but AN could not become visible. or is there any other solution to implement ::
this line in main page to call up UC_A ::
<DWDS_LULCS_Views_Sidebar:Sidebar HorizontalAlignment="Left" Width="264"/>
- Main page holding
- User Control A (Sidebar) holding
- User Control B (admin login form) and
- User Control C (admin navigation menu)
UC_B default is visible, and click the button in UC_B to call UC_A's UC_C change the visibility to visible ?