Giter Site home page Giter Site logo

ngame1 / uwppopuptoolkit Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 0.0 64.53 MB

UWP Popup Toolkit is a simple UI Toolkit to make it easier to work with popups and Dialogs easier than ever in UWP

C# 99.98% Batchfile 0.02%
uwp-popup-toolkit popups uwp

uwppopuptoolkit's Introduction

UWPPopupToolkit

UWP Popup Toolkit is a simple UI Toolkit to make it easier to work with popups and Dialogs easier than ever in UWP.

Get Started

It is easy to use UWPPopupToolkit.

First of all, you need to add UWP Popup Toolkit to your solution and reference it to the main project. Or, You can use our NuGet package instead.

Then add PopupPresenterHost to the Root of your Main Page.

While using UWPPopupToolkit we highly recommend you not to navigate the Mainframe, Instead, add a Frame into your MainPage as a child of PopupPresenterHost and then navigate in that.

In this way, you will no longer need to add PopupPresenterHost to every page that you want to show a popup or dialog in it.

However, It's not impossible to add PopupPresenterHost to every page and use it for showing popups.

For showing a simple popup You have to call :

PopupPresenterHost.ShowSlideupPopup(Type content, double ContentHeight = double.NaN, string Host_Id = null, params object[] args)

The content parameter is the Type of the UserControl or the page that you want to show in the popup.

ContentHeight defines what your popup height should be. this will cause showing a popup with the given height. The default value will show you a popup with a 100px margin from the top.

Host_Id parameter can be used when you have several PopupPresenterHost controls (for example on every page or multiple controls in each other for some reason), this parameter will define which host will be the parent of the popup.

args parameter will be used when your content constructor (ctor) needs some parameters to be initialized. You can pass them using the args parameter and we will create instance of your control and dispose it after hiding the popup.

NuGet Packages

Target Branch Recommended package version
Stable SR/0.1.1.2 NuGet

Currently supported popup types

Currently, We support Slideup Popup type which is similar to Instagram's popups.

Capture Capture2 Capture3

System Requirements

  • Microsoft Visual Studio 2019
  • Universal Windows Platform SDK (Target: Win10 2004 / Build 19041)
  • Minimum Target Required - Windows 10 November update / Build 10586

uwppopuptoolkit's People

Contributors

ngame1 avatar parsalotfy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.