Example #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            HostUserControl h = new HostUserControl();

            a.Children.Clear();
            a.Children.Add(h);
        }
        private void Host_click(object sender, RoutedEventArgs e)
        {
            HostUserControl H = new HostUserControl();

            H.Back.MouseLeftButtonDown += back_hostUserControl;
            MainGrid.Opacity            = 0.9;
            MainGrid.Children.Clear();
            MainGrid.Children.Add(H);
        }