Git Product home page Git Product logo

wpfappbar's Introduction

WPFAppBar

Available via Nuget : https://www.nuget.org/packages/WpfAppBar

As seen in this StackOverflow question:

How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

Looking for a WinForms version: https://github.com/tip2tail/t2tWinFormAppBarLib

What is it?

A helper for turning a WPF window into an "AppBar" like the Windows taskbar. I hope you're not writing any applications that need to do this, but if you are, hopefully this library will help.

How do I use it?

To use, just call this code from anywhere within a normal WPF window (say a button click or the initialize). Note that you can not call this until AFTER the window is initialized, if the HWND hasn't been created yet (like in the constructor), an error will occur.

//Make the window an appbar:
AppBarFunctions.SetAppBar(this, ABEdge.Right);

// If you want to resize the window by its content:
AppBarFunctions.SetAppBar(this, ABEdge.Right, grid);
AppBarFunctions.SetAppBar(this, ABEdge.Right, wrapPanel);
// etc...

//Restore the window to a normal window:
AppBarFunctions.SetAppBar(this, ABEdge.None);

I found a bug!

Please add an issue, or better yet send a pull request. Thanks!

That sounds okay... but licensing?

No warranty of any kind implied.

Creative Commons CC0 (https://creativecommons.org/publicdomain/zero/1.0/)

wpfappbar's People

Contributors

benji-yarmand avatar danielchalmers avatar gabriellaheil26 avatar masbicudo avatar philiprieck avatar thedewi avatar tonyvalenti avatar

Watchers

 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.