Modal Dialog (blocking) in WPF

by Ronald 15. April 2009 11:42

Window1

What can you do if you would like to display a modal / blocking dialog in WPF? By default, there is the possibility to use the Window.ShowDialog() method. This has the disadvantage that a completely new “Windows”-Window will be created which is not part of our main application window (which again has several disadvantages that I don’t want to discuss here). I would like to present an alternative solution:

As shown in the image beside, we would like to have a half transparent overlay with some kind of content (here, just for example, we use a simple text message, but we could also display other controls). Mehr...

Bewertung: 4.3 von 4 Benutzern

  • Currently 4,25/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Tutorials

Scaling (visual) between a min and max value (e.g. level bar)

by Ronald 11. März 2009 13:36

Tank

In many projects that are related to process automation, it is necessary to display equipments and the current state in a visual representation. Many equipments, for example, a tank, have some kind of meter that should display a current value between a range (min / max). Let's have a look at how we can do that in a dynamic way using the WPF Viewbox and some simple calculations. Mehr...

Gib die erste Bewertung ab

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Tutorials

Transaktionen auf .Net Objektmodell

by Ronald 7. März 2009 15:29

Wäre es nicht toll, wenn man auf einem objektorientierten Domänenmodell wie auch in einer Datenbank Transaktionen starten, Daten mehr oder wenig beliebig verändern und dann u.U. wieder ein Rollback machen könnte? Ich denke schon! Insbesondere dann, wenn man wie wir versucht, so wenig Datenbank und so viel Objektorientierung wie möglich zu erreichen, sind objektmodellbezogene Transaktionen in einigen Systemdesigns unumgänglich. Für das TechNewLogic Stasy-Framework - eine High-Level Implementierung des Unit-Of-Work Entwurfsmusters (http://martinfowler.com/eaaCatalog/unitOfWork.html) (in Kürze mehr dazu) - habe ich deshalb eine kleine Erweiterung geschrieben, welche Objektmodelltransaktionen demohaft implementiert. Mehr...

Gib die erste Bewertung ab

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Tutorials

Powered by BlogEngine.NET 1.4.5.0

RecentPosts

written and designed by TechNewLogic 2010