Giter Club home page Giter Club logo

universalwpf's Introduction

UniversalWPF

A set of WPF Controls ported from Windows Universal apps / WinUI

NOTE: This is mostly a work in progress. TwoPaneView is fully working, but might have issues on Windows X, as the necessary APIs there to do screen spanning are not yet exposed. State Triggers are not working yet. RelativePanel should work but needs lots of testing (please help!), SplitView is partially working, but needs some work still.

NuGet / Usage

Install this from NuGet:

Install-Package UniversalWPF

No xmlns registration needed in your xaml files! You can just use the controls prefix-less like the built-in controls. Example:

<TwoPaneView>
  <TwoPaneView.Pane1>
    <RelativePanel>
      <NumberBox />
    </RelativePanel>
  </TwoPaneView.Pane1>
</TwoPaneView>

Sponsoring

If you like this library and use it a lot, consider sponsoring me. Anything helps and encourages me to keep going.

See here for details: https://github.com/sponsors/dotMorten

Controls

  • TwoPaneView - A full port of UWP's TwoPaneView control, including support the Windows X Dual-screen devices.

TwoPaneView

  • NumberBox - A full port of UWP's NumberBox control.

numberbox

RelativePanel

In Progress

  • SplitView (Very much work in progress - doesn't animate in/out and closed compact mode isn't rendering)

  • StateTrigger / AdaptiveTrigger (API complete, functionality not so much)

image

universalwpf's People

Contributors

dotmorten avatar

Stargazers

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

Watchers

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

universalwpf's Issues

AlignBottomWith and fixed Height

Hi, I got this issue while playing with your nice Panel. I don't know, maybe it's my fault...

<universalWpf:RelativePanel>

    <Rectangle x:Name="playcontrolpanel"
               Fill="DarkOrange"
               Stroke="Yellow"
               StrokeThickness="4"
               Height="80"
               MinWidth="50"
               universalWpf:RelativePanel.RightOf="coverPanel"
               universalWpf:RelativePanel.AlignTopWithPanel="True"
               universalWpf:RelativePanel.AlignBottomWith="coverPanel"
               universalWpf:RelativePanel.AlignRightWithPanel="True" />

    <Rectangle x:Name="coverPanel"
               Fill="CornflowerBlue"
               Height="100"
               Width="100" />

</universalWpf:RelativePanel>

image

The playcontrolpanel should be aligned with the bottom of coverPanel.

RelativePanel LeftOf and Above differ from UWP behaviour

The LeftOf and Above constraints do not match the result of the UWP implementation.
This example positions the red rectangle to the left of the blue, but it does not place it tightly against it.

        <RelativePanel>
            <Rectangle x:Name="BlueRect" Fill="Blue" Height="100" Width="150" RelativePanel.AlignRightWithPanel="True"/>
            <Rectangle x:Name="RedRect" Fill="Red" Height="100" Width="150" RelativePanel.LeftOf="BlueRect"/>
        </RelativePanel>

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.