GithubHelp home page GithubHelp logo

andersen27 / photino.blazor.customwindow Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 2.0 410 KB

Customizable window view and behaviour implementation for Photino.Blazor applications with Chromeless mode

License: MIT License

HTML 22.95% C# 65.20% CSS 10.18% JavaScript 1.66%

photino.blazor.customwindow's Introduction

 Photino.Blazor.CustomWindow

NuGet Version NuGet Downloads

About

Customizable cross-platform window view and behaviour implementation for Photino.Blazor applications with Chromeless mode.
The project provides Blazor component named CustomWindow that takes up the entire space of the cromeless window and renders custom window header and borders. It includes the possibility of customizing the window header up to the icon, title and control buttons, moving the window on header dragging, window resizing on borders dragging, and some other features such as stretching (expanding) the window by half the screen when moving it to the boundaries of the monitor's work area. Default control buttons allow to minimize, maximize and close the window. At the same time, the component also provides appropriate methods.

How to use

  1. Include Photino.Blazor.CustomWindow as PackageReference to your project.
  2. Include css and js files from _content/Photino.Blazor.CustomWindow to your index.html as shown in the example. Or you can add their contents manually as your own files.
  3. Add CustomWindow to your Photino.Blazor application service collection with AddCustomWindow() extension.
  4. Use CustomWindow component as root in your markup and place your content to its WindowContent RenderFragment (see example).
  5. Don't forget to set the PhotinoWindow.Chromeless property to true.
  6. Override --pb-custom-window-[. . .] css variables for styling (default values here).

Problems

  • When Blazor catch an unhandled error, entire window freezes including any interaction with CustomWindow. This can only be solved by creating a solution based on JavaScript and not Blazor.

photino.blazor.customwindow's People

Contributors

andersen27 avatar pathartl avatar

Stargazers

 avatar Brad Pillow avatar Manfredi avatar  avatar Wolfgang Dichler avatar André Luiz avatar  avatar Denis avatar David avatar  avatar  avatar  avatar Alexey Skalkin avatar

Watchers

 avatar  avatar

photino.blazor.customwindow's Issues

Linux support requires improvements

The project is not running on linux right now. There are problems reading monitors data.
DevTools inspector console output for window.getScreenDetails():

linux_bug

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.