GithubHelp home page GithubHelp logo

leifuk / opencontrols.wpf Goto Github PK

View Code? Open in Web Editor NEW
71.0 71.0 37.0 367 KB

The OpenControl.Wpf project is a library of useful WPF controls. They are free to use and distribute but please add my name and a link to this page to your application credits page.

C# 100.00%

opencontrols.wpf's People

Contributors

algorithman avatar leifuk 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencontrols.wpf's Issues

Putting multiple 3D plots on a form cause Font to go white/white

I'm using your wonderful tool to analyze data taken from up to 6 different lasers to check alignment. So I need to put 6 plots on a form and be able to compare them. When I do this the font file that is generated eventually becomes a white font on a white background even though in the config I have set it to be white over transparent.

Unfortunately this is making this tool unusable for my purpose as I need to show the x/y coordinates of the grid.

Problem with TabHeaderControl.Height of dragged window

Hello.

I ran your OpenControls.Wpf.DockManagerDemo on my system (Windows 10, 20H2, 19042.1566, VS2019) and found a small problem with dragged document.

When I drag document within borders of MainWindow - all is ok.
capture-01-OK

When I drag document outside borders of MainWindow - new window will be created incorrectly. TabHeaderControl will have the wrong height.
capture-02-BAD

I found two solutions to this problem.

  1. Need change order of these two lines:
    floatingPane.Width = dockPane.ActualWidth;
    floatingPane.Height = dockPane.ActualHeight;

In other words - at first need to setup Height, then setup Width.

It seems to me, it's a bad decision.

  1. It need to remove call of floatingPane.Show() from FloatingPaneManager.RegisterFloatingPane
            floatingPane.EndDrag += FloatingPane_EndDrag;
            // Ensure the window remains on top of the main window
            floatingPane.Owner = Application.Current.MainWindow;
            //floatingPane.Show(); //<--- REMOVE IT
        }//FloatingPaneManager.RegisterFloatingPane

And need to add a call floatingPane.Show() at the end of DockPaneManager.Float

            floatingPane.Left = cursorPositionOnScreen.X - 30;
            floatingPane.Top = cursorPositionOnScreen.Y - 30;
            floatingPane.Width = dockPane.ActualWidth;
            floatingPane.Height = dockPane.ActualHeight;
            floatingPane.Show(); // <---- ADD IT
        }//DockPaneManager.Float

capture-10-OK

--
I'm sorry for mistakes in my English :)

Weird Scaling issue

While trying to use the scatter plot, almost everything i add to it, shoots really high above the charts.
Am i initializing the data incorrectly?
image

FloatingPaneManager doesn't work well with high dpi displays

First: Nice work. Thanks.

But now for the issue:
For example

_windowLocationPane.Left = topLeftPanePoint.X;

you have to consider the scaling (probably everywhere where PointToScreen is involved).

If i don't divide topLeftPanePoint by 1.5 (my monitor's scaling factor) i end up with a displaced FloatingPaneManager.

Second scaling issue: GetCursorPos also does not account for scaling, so undocking a window can displace it outside the monitor space.

Docking like VSCode

Sorry, it is not properly an issue but I need help.

I would like to do an interface like VSCode using your dockManager, that mean:

  • don't allow to make document floating
  • don't show the cross of buttons when move a document

This gif show the result I would like to reach: VSCode sample
is it possible?

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.