Tag Archives: application

Getting Started with WPF : Button Control Part 2 – Basic Styling

In my previous post about buttons and content controls , I explained how to do quite a bit of customization using just the content property of a button. That gets you pretty far, but you’re barely tapping into what WPF (and Silverlight) can do. In this post, we’ll cover styling and and build up the background we’ll need to tackle templating, the backbone of what makes WPF and Silverlight so powerful. Lookless Controls In WPF and Silverlight, controls are “lookless”. That is, everything about how they appear is defined in the style and the control template.

Read the original here:
Getting Started with WPF : Button Control Part 2 – Basic Styling

WPF Quick Tip: How to Restrict Window Size in WPF 4

Another (paraphrased) question from twitter “How do I set the minimum and maximum sizes for my window in WPF”. The poster wanted to know how to constrain the size of their WPF window to a set minimum height/width and maximum height/width. I originally replied with a complex answer referring back to my WPF Resize Behavior , because I completely forgot about the simple supported approach: The above markup constrains the size of the window to the sizes indicated by using the MinHeight, MinWidth, MaxHeight and MaxWidth properties. You can also set these from code at runtime. Use this sparingly. It is generally not a great practice to constrain the size of your application window, or at least not the max size.

See the rest here: 
WPF Quick Tip: How to Restrict Window Size in WPF 4

Welcoming Silverlight 3 RTW

As of today, Silverlight 3 has officially released. My congratulations again to the Silverlight and Expression teams for the great job they did in getting some great products out on a relatively short timeline. Breaking Changes and Quirks Mode Be sure to read the breaking changes document that is included with the Silverlight 3 development tools. This will help clear up any confusion about why things aren’t working the same way they were in the beta. Note that, unless the Silverlight team made a mistake, your Silverlight 2 apps will all run on Silverlight 3 without compiling.

View original here:
Welcoming Silverlight 3 RTW

Features over Usability : How not to design a web application

Since deregulation increased my electric bill by more than 100%, I’ve hated paying it. What makes it worse, though, is the really annoying workflow for the BGE online payment site. I’ve been meaning to take screenshots of the process for some time now, and just finally got around to it. First, we start at the main page at www.bge.com . You might assume that you should click the “Pay Online” link to, well, pay online. Despite how big they made the buttons on the top right, your eye naturally scans left to right, so what you tend to see first is the “Pay Online” link. You might even be tempted to look for a payment link under “Residential” below, but you won’t find one.

The rest is here: 
Features over Usability : How not to design a web application

Silverlight Application – Animal Testing Breaks Hearts

PETA and AIS just completed a great Silverlight 2 application for the Animal Testing Breaks Hearts campaign. Almost exactly two years ago, in time for the 7/7/7 Live Earth event, AIS created the first Silverlight managed code application ever to go live. It was a carbon offset calculator written for Conservation International using Silverlight 1.1alpha. AIS’s RIA practice, Silverlight itself, and the tools like Blend, have all grown since then. Two years later, and we’re again working with a non-profit on a socially conscious application. This time, the cause is animal testing rather than environmental conservation, and the technology is the final version of Silverlight 2 rather than an early alpha preview of the technology For this application, PETA supplied all the comps in Adobe Illustrator format and AIS converted the assets into Silverlight. Tad Van Fleet took the heart images and others and imported them into Blend 3 using the new Illustrator import function, and created the appropriate Xaml

See the original post:
Silverlight Application – Animal Testing Breaks Hearts

Composite Application Guidance (Prism-v2) sample application using Silverlight 3 Child Window

Today I tweaked the Event Aggregator Quickstart that comes with the Prism-v2 source code to show how Silverlight 3 Child Windows could be used in a Silverlight Composite Application. Child Window Overview Silverlight 3 has a new template called ChildWindow. It is basically a user control (unlike a Popup you can edit its XAML), but it allows you to create modal windows for your application, such as dialogs. To use this dialog, you just have to create a new instance of it and call

View post: 
Composite Application Guidance (Prism-v2) sample application using Silverlight 3 Child Window

XAML By FARR: Resource Dictionaries Vs User Control Resources

A while ago I had a debate with my co-worker on when to put a resource in a User Control (whether it would be in XAML or in code behind) or put that resource in a Resource Dictionary.  We had this debate because we initially put all our resources in Resource Dictionaries and as our application became more modular this would become a problem when we only want to update a particular sections resource.  Since all our resources were in the same location (our shell project) if a change was necessary,

Continued here: 
XAML By FARR: Resource Dictionaries Vs User Control Resources

Flash vs Silverlight: Custom Loading Splash Screen

If you want to make a fully personalized Silverlight or Flash application, then you shouldn’t miss out this post. Splash Screen is a very user friendly way to notice how long you have to wait for the application to load. You may also add some graphics, advertisements or animations to entertain the users before the they get bored by waiting. Flash and Silverlight have completely different mechanisms in adding the splash screen. Before we start, let’s take a look on the comparisons and demo first.

Read the original post:
Flash vs Silverlight: Custom Loading Splash Screen

Flash vs Silverlight: Controlling UI Object

This is a new request from my friend Pierre. He wants to implement a POC to demonstrate how to control objects on the stage. That’s a very good sample for your reference if you want to implement some layout application. If you want to add a resize functionality to the object, you may refer to my previous post Image Manipulation - Scale.

Read more from the original source: 
Flash vs Silverlight: Controlling UI Object