Giter VIP home page Giter VIP logo

wpfcustommessagebox's People

Contributors

evanwon avatar kcl93 avatar wonea 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

wpfcustommessagebox's Issues

Signing problem

My executable is signed with a strong name. The reference for this one is not. I tried signing it with my strong name but it doesn't work. Someone help.

1>------ Build started: Project: ProjectName, Configuration: Debug Any CPU ------
1>CSC : warning CS8002: Referenced assembly 'WPFCustomMessageBox, Version=1.0.7.39267, Culture=neutral, PublicKeyToken=null' does not have a strong name.
1>CSC : warning CS8002: Referenced assembly 'WPFCustomMessageBox, Version=1.0.7.39267, Culture=neutral, PublicKeyToken=null' does not have a strong name.

How to set only focus custom message box at one form?

Hi All,

Your custom message box has been not lost focus or owner form when I moved form by Alt+Tab.

But MessageBox has been lost when I moved form by Alt+Tab.

How to set only focus custom message box at one form?

Any plans to update NuGet for .NET Core compatibility

The library works fine under WPF Core 3.1 (did not try it under Core 3.0). But Packages displays restore warning. I thought that might be your 1.0.9 fork but that has the same targeting warning.

Package 'WPFCustomMessageBox 1.0.7' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project.

Thanks for creating this! Really improved the ability for my current project's workflow to be clearly represented in the UI.
Greg

A More Usable Working Example Could Have Been Nice

Not sure if this was ever addressed for noobs or not, but I downloaded an old 2012 version of this for vs 2010.

Getting the normal dialog box to do something when choosing yes or no was incredibly hard, I have no idea how to actually utilize this past the visual aspect as I get this error. Error 2 'WPFCustomMessageBox.CustomMessageBox' does not contain a definition for 'bye'

DialogResult result = CustomMessageBox.ShowCustomYesNo("Hi", "bye", "hello", "goodbye", MessageBoxImage.Asterisk);

            if (result == CustomMessageBox.yes);
            {
                Process.Start("process.exe","test");
            }
            else
            {
                System.Windows.Forms.Application.ExitThread();
            }

Fixed height in image

You can add to Image_MessageBox the follwing things to make it seem like the original MessageBox:

VerticalAlignment="Top"
Margin="30,20,0,0"

This way the image will not move around in case of long messages.

Add overloads which take a "Window" param

Like the regular MessageBox methods, CustomMessageBox needs overloads of the various Show methods which take a Window parameter.

Otherwise, there is no way to specify the parent window and make the message box be modal for that window.

Feature request: Mixing caption strings and MessageBoxButtons

Add additional overrides for the Show-methods to support a mix of caption strings and MessageBoxButtons. I.e.:

CustomMessageBox.ShowOKCancel(
    "Are you sure you want to eject the nuclear fuel rods?",
    "Confirm Fuel Ejection",
    MessageBoxButton.Ok,
    "Don't do it!");

Due to the number of possible combinations, this might get a little bit tedious...

Query in Thread

Can you explain why we need to invoke Message Box in STA.
I'm trying to re-create your code for learning purpose.

scrolling for the textblock

Not an issue, but a suggestion...
I got a source copy and added a scrollViewer around the text block, added max height and width to the window. I have some really long messages I want to display. Perhaps a feature you could add if you see fit?

Nice job BTW,
Regards,
Hobie

Add default MessageBoxResult to the window

You can add a default MessageBoxResult in the DisplayButtons method. That way, if the user clicks on the close button of the window, the result returned will not be None in case of Yes/No/Cancel message boxes.

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.