XAML Wait Animation

by Ronald 3. Mai 2010 11:44

Here we can find a nice tutorial how to create a simple please-wait-animation in Blend. For those who would like to have a look on the XAML code, here is the source of a UserControl:

 

<UserControl.Triggers>
    <EventTrigger RoutedEvent="UserControl.Loaded">
        <EventTrigger.Actions>
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="rotation" Storyboard.TargetProperty="Angle" To="360"
                            Duration="0:0:1" RepeatBehavior="Forever" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger.Actions>
    </EventTrigger>
</UserControl.Triggers>
<Viewbox>
    <Path Width="100" Height="100" Stretch="Fill" Stroke="DarkSlateGray" StrokeThickness="0.5">
        <Path.Fill>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                <GradientStop Color="#90000000" Offset="0" />
                <GradientStop Color="#20E0E0E0" Offset="1" />
            </LinearGradientBrush>
        </Path.Fill>
        <Path.RenderTransform>
            <RotateTransform x:Name="rotation" Angle="0" CenterX="50" CenterY="50" />
        </Path.RenderTransform>
        <Path.Data>
            <CombinedGeometry GeometryCombineMode="Exclude">
                <CombinedGeometry.Geometry1>
                    <EllipseGeometry RadiusX="1" RadiusY="1" Center="0.5,0.5" />
                </CombinedGeometry.Geometry1>
                <CombinedGeometry.Geometry2>
                    <EllipseGeometry RadiusX="0.6" RadiusY="0.6" Center="0.5,0.5" />
                </CombinedGeometry.Geometry2>
            </CombinedGeometry>
        </Path.Data>
    </Path>
</Viewbox>

 

Bewertung: 5.0 von 2 Benutzern

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

Tags:

Prevent .Net Memory Leaks with the WeakEventManager

by Ronald 13. Dezember 2009 14:45

When weak events are necessary

A reason for a lot of memory leaks in .Net applications is when event handlers are not deregistered. Basically, there are two kinds of components in an application. The first kind are components that live very long, sometimes as long as your application is running. These components have a "static" or "singleton" character (which doesn't mean that the class must be marked static). Beside these singleton instances, there are usually many instances of classes which do not live for such a long time - let's call them "dynamic" components. Now, what happens when there's a static component which defines an event, and a dynamic component registeres an event handler? This means that the static component references the dynamic component! This fact will prevent the garbage collector from destroying the dynamic component. So what we have to do is to (manually) deregister the event handler at the point when the dynamic component is not needed any more, which might not be easy to determine depending on the design of the system.Mehr...

Gib die erste Bewertung ab

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

Tags:

WPF Ribbon Style

by Ronald 5. November 2009 10:39

Ribbon   This is not a real ribbon control from the behavior point of view, it’s a small collection of GroupBoxStyle, ButtonStyle, etc. that will provide you with a ribbon look-a-like. You can find the complete snippet here.

Bewertung: 5.0 von 1 Benutzern

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

Tags:

A Simple ASP.Net Request Logger

by Ronald 1. November 2009 14:44

RequestLogger If you want to know what’s going on your Website, think about using this logger. It is written in ASP.Net and it mashes up utrace and Google Maps.

Mehr...

Gib die erste Bewertung ab

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

Tags:

ObjectLounge 0.1.4 Alpha

by Ronald 5. Oktober 2009 17:36

I am very pleased to announce that we have released the version 0.1.4 of the ObjectLounge Database Framework (including framework and sample applications).

You find the Resources and Getting Started article, and you can download the framework from Codeplex.

Bewertung: 3.5 von 2 Benutzern

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

Tags:

WPF Dynamic Multilanguage

by Ronald 22. September 2009 08:55

There are many ways to "multi language" your wpf application - here's another one! Features:

  • Simple to use via a custom WPF markup extension (like the "Binding" extension).
  • Switching the language dynamically in runtime will update the associated controls immediately.
  • Can be used with various sources like csv, excel or databases (rather than sattelite assemblies).
  • No memory leaks by using weak references. Mehr...

Gib die erste Bewertung ab

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

Tags:

ObjectLounge 0.1.1 Alpha

by Ronald 20. Juli 2009 15:43
Forget those crappy tables - chill with your object in The ObjectLounge.

Bewertung: 5.0 von 1 Benutzern

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

Tags:

CRUD Generator Article

by Ronald 7. Juni 2009 13:25
I released an article on CodeProject about the CRUD Generator that can be used to semi-automate the generation of an UI out of an existing domain model. Have fun!

Gib die erste Bewertung ab

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

Tags:

Paradoxe IT Teil 1: Standard oder Eigenentwicklung?

by Andre 22. April 2009 13:30

In diesem ersten Beitrag zur Blogserie “Paradoxe IT” möchte ich auf folgendes Thema eingehen: Sollte man in der Softwareentwicklung auf Standards setzen oder eher eigene Problemlösungen entwickeln. Natürlich ist dies ein breites Feld. Es gibt die Abwägung Standard oder Eigenentwicklung auf vielen unterschiedlichen ebenen, z.B. Mehr...

Gib die erste Bewertung ab

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

Tags:

Serie: Paradoxe IT

Paradoxe IT Einleitung: Einfach oder kompliziert?

by Andre 22. April 2009 13:30

IT wird von vielen Menschen mit Misstrauen begegnet. Im besonderen Maße trifft dies zu für Entscheidungsträger. Gemessen an den vielfältigen Möglichkeiten mit IT zu scheitern ist dies auch verständlich. Dennoch ist es unverständlich, wie oft ein und dieselbe Person zu der Frage “Wie schwierig sind IT-Projekte?” ein völlig gespaltenes Verhältnis besitzt. Mehr...

Bewertung: 4.0 von 1 Benutzern

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

Tags:

Serie: Paradoxe IT

"Alles muss aussehen wie Outlook"

by Ronald 20. April 2009 16:56

"...und die GUI muss aussehen wie Outlook!". Diese Forderung scheint sich hartnäckig in den Köpfen von Marketingleuten und Entscheidern festgesetzt zu haben. Woher kommt die Forderung nach der Ähnlichkeit zu Outlook, wenn es um das UI-Design von Produktions- oder Businessanwendungen geht? Mehr...

Bewertung: 3.0 von 2 Benutzern

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

Tags:

Pitfalls

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

Generische Systeme

by Ronald 27. Februar 2009 11:50

In den Köpfen vieler Beteiligter in einem Softwareprojekt hat sich die Meinung festgesetzt, Softwareänderungen seien etwas Schlechtes. Daraus entsteht dann oftmals die Forderung, das zu entwickelnde System "erweiterbar" und "konfigurierbar" zu machen, um Softwareänderungen vermeiden zu können. Was das konkret bedeutet wird in vielen Fällen jedoch offen gelassen, und so sieht sich der Entwickler mit der Frage konfrontiert: "Wie kann Erweiterbarkeit erreicht werden, bzw: Was bedeutet das überhaupt?". Mehr...

Gib die erste Bewertung ab

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

Tags:

Systemdesign

Willkommen!

by Andre 9. Februar 2009 12:39

Wir hoffen allen Besuchern etwas interessantes auf unserer Hompage anbieten zu können. Warum probieren Sie nicht unsere Technologiedemo TimeFlies aus?

  

Bewertung: 3.0 von 2 Benutzern

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

Tags:

Powered by BlogEngine.NET 1.4.5.0

RecentPosts

written and designed by TechNewLogic 2010