Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Content presenter query - mdi parent behaviour C#

$
0
0

hi

i am new in wpf ,  since we dont have any mdicontainer in wpf so i put content presenter in my main form and add required forms in content presenter object as written below

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            login_wpf ob = new login_wpf();
            this.childcontrols.Content = ob.Content; // childocntrols is the name  of ContentPresenter 
        }

this working very fine without any error , i want to ask , is that correct approach to show window objects within window?

if no than what to use?

Thanks


Ali Muhammad



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>