attachments/asills/media/windows-live-writer/useful-expression-blend-sdk-controls--_cbc3/image_thumb.png

Useful Expression Blend SDK Controls–Callout

The Expression Blend SDK has some interesting controls in it that you can easily miss if you’re not poking around the SDK namespaces. The one I’m going to talk about right now is called Callout. The Callout control is a content control that renders itself with an optional arrow anchored at a given point. What makes this control interesting (and fun) is it has an option for a displaying itself light a thought bubble and a word balloon.

The AnchorPoint property dictates where the optional arrow will be anchored on the callout. The CalloutStyle property has 4 options: Cloud, Oval, Rectangle, RoundedRectangle. The first two support arrows and the last two do not. To see this in action:

image

If I switch CalloutStyle to Cloud and move the anchor point to “0,1” (and move the Callout up a bit with a margin) I end up with this:

image

And a quick example of Rectangle and RoundedRectangle (which are much more boring without arrows):

image

image

Leave a Reply