Skip to content

Latest commit

 

History

History
112 lines (94 loc) · 3.11 KB

README.md

File metadata and controls

112 lines (94 loc) · 3.11 KB

UWP-Host

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.

Overview

  • UWP Window

       The UWP Host library provides you coustom UWP application window layout for your WPF applications.

Features

  • No flickering on resizing window (available only on windows 10 redstone update)
  • Builtin ControlBox
  • Extented Content Area

Install

NuGet Package

Install-Package UWPHost -Version 1.0.0

https://nuget.org/packages/UWPHost

Preparation

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>

Usage

UWP Window

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();
   }
}
Properties
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.


Screenshots


Dark Theme

Dark Theme


Light Theme

Light Theme

Control Box

Control Box


Flickerless Resize

Flickerless Resize


Extented Client Area

Extented Client Area



Donate

Donate us through paytm.

Donate