Coder Social home page Coder Social logo

dirkster99 / msgbox Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 2.0 274 KB

Implements of a custom message box service

License: MIT License

Batchfile 0.54% C# 99.46%
mvvm wpf notifications notification-component dialog message theme dark-theme light-theme msgbox nuget library control mit-license nuget-package

msgbox's Introduction

Build status Release NuGet

Net4 NetCore3

Overview

This project shows implements a custom message box service that is driven by a service locator interface. It inlcudes a notification component that can be used to implement positioned pop-up messages in the vicinity of related controls. All implementation is in WPF and follows MVVM without compromises.

See http://www.msgbox.codeplex.com for more details.

##Tip Review App class in the Demo application to understand the service initialization: https://github.com/Dirkster99/MsgBox/blob/master/source/MsgBoxDemo/App.xaml.cs

Basic Terminilogy Screenshot

Dark Sample Screenshot

Theming

Load Light or Dark brush resources in you resource dictionary to take advantage of existing definitions.

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/MsgBox;component/Themes/DarkBrushs.xaml" />
    </ResourceDictionary.MergedDictionaries>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/MsgBox;component/Themes/LightBrushs.xaml" />
    </ResourceDictionary.MergedDictionaries>

These definitions do not theme all controls used within this library. You should use a standard theming library, such as:

to also theme standard elements, such as, button and textblock etc.

Change History:

  • 2017-07-28 Removed UserNotification and replaced it with nuget Dependency: https://preview.nuget.org/packages/Dirkster.UserNotifications https://github.com/Dirkster99/UserNotifications

  • 2015-07-29 There are breaking changes in the way a Window Chrome is themed in WPF between .Net Version 4.0 and .Net Version 4.5. Namely:

    • The System.Windows.Shell.DLL is integrated into the PresentationFramework assembly (see code changes in this branch for more details).
  • Extracted service locator into separate ServiceLocator project and re-designed interface (small breaking change that should be easy to repair see difference in demo programs)

  • Extended Notification project with new controls (see class files and Wiki documentation for details): UserNotification.View.SimpleNotificationWindow UserNotification.View.NotifyableContentControl

  • Bugfix Italian typo Non should be No http://www.codeproject.com/Tips/682283/WPF-MessageBox-Service?msg=4707211#xx4707211xx

  • Small bugfix in Dialog - View focus handling

  • Correction in 2 Hindi translation strings

Fixed Issues:

  • MsgBoxDemo Project Copy statement does not always work if quotes around path are missing

  • MsgBox Cannot set Owner property to itself Added code to ensure that owner of MsgBox dialog can never be the window itself (which causes an exception to be thrown and the message box not to be displayed)

  • Notification Added SimpleNotification view to support scenarios with tool tip like view

Credits

Implementations in this project are based on these resources:

MsgBox Project

Source: http://blogsprajeesh.blogspot.de/2009/12/wpf-messagebox-custom-control.html

Service Locator: http://www.codeproject.com/Articles/70223/Using-a-Service-Locator-to-Work-with-MessageBoxes

Notification Project

The project contains a user notification component: https://github.com/Dirkster99/UserNotifications

that pops-up user messages similar to extended tool-tips.

This component is based on a Growl Notifications project at Code Project: http://www.codeproject.com/Articles/499241/Growl-Alike-WPF-Notifications

msgbox's People

Contributors

dirkster99 avatar

Stargazers

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

Watchers

 avatar  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.