![]() We will need a reference to the PresentationFramework.dll where the out-of-the-box class, which our custom window class will inherit from, is implemented. Start by creating a new C# class library in Visual Studio (File->New Project) and give it a suitable name like Mm.Wpf.Controls.Īfter removing the automatically generated Class1.cs from the project the first thing to do is to add some references. The solution includes two Visual Studio projects, the first one a class library where the control itself is implemented and the second one a sample WPF application which will have a reference to the class library and use the custom window control as its main window. This introductory post will provide a walkthrough on how to create your own custom looking window control with resize, drag, minimize, restore and close functionality and how to use it in your WPF applications. NET, C#, Custom Controls, Visual Studio, WPF | 89 Comments How to create a custom window in WPF Posted: Ma| Author: Magnus Montin | Filed under: Custom Controls, WPF | Tags.
0 Comments
Leave a Reply. |