UWP Host allows you to integrate UWP controls and windows to your wpf applications
! Note : This project is under development, more updates will be available soon.
- No flickering on resizing window (available only on windows 10 redstone update)
- Builtin ControlBox
- Extented Content Area
NuGet Package
Install-Package UWPHost -Version 1.0.0
https://nuget.org/packages/UWPHost
Add XAML namespace.
xmlns:uwp="clr-namespace:UWPHost;assembly=UWPHost"
Add ResourceDictionary to App.xaml.
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/UWPHost;component/Themes/Generic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
MainWindow.xaml
<upw:Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
xmlns:uwp="clr-namespace:UWPHost;assembly=UWPHost"
mc:Ignorable="d"
ShowTitlebar="true" Theme="Light"
Title="MainWindow" Height="300" Width="300">
</uwp:Window>
MainWindow.xaml.cs
public partial class MainWindow : UWPHost.Window
{
public MainWindow()
{
InitializeComponent();
}
}
Property Name | Type | Description |
---|---|---|
ShowTitlebar | bool | Show or Hide the titlebar of the window. |
TitlebarBrush | SolidColorBrush | Sets the color of the titlebar. |
Theme | String | Set the theme of window. ie; Light or Dark. |
Donate us through paytm.