Answer the question
In order to leave comments, you need to log in
How to make a window template in WPF?
In WinForms it was possible to make a window with elements. Then create another window inherited from the first one and add more elements to it. How does WPF do this? Something I can't figure out.
Answer the question
In order to leave comments, you need to log in
How did you try? If you add controls from Code-behind, in theory it should work.
Source window
<Window x:Class="WpfApplication1.MyWindow" ... >
</Window>
<local:MyWindow x:Class="WpfApplication1.MyChildWindow"
xmlns:local="clr-namespace:WpfApplication1"
... >
</local:MyWindow>
class MyChildWindow : MyWindow
{
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question