0

Is there any possible way to act usercontrol as a childwindow..? I need usercontrol will be act like childwindow... Is it possible?

4

1 回答 1

1

您可以将 Usercontrol 放在 Childwindow 的 Content 中。在 mvvm 中也可以。

System.Windows.Controls.ChildWindow childWindow = new System.Windows.Controls.ChildWindow();
childWindow.Content = userControlObject; 
childWindow.Show();
于 2012-11-16T08:54:10.227 回答