expression-blend

ListBox Disabled state in Silverlight 4

So I'm styling a ListBox and I've got to the part where I need to do a greyed out style when the ListBox is disabled. However when I look a the states tab in Blend, there's only Validation States present - no sign of the usual Common States which include the Disabled state. I tried creating a vanilla project with no custom styles and ju...

How to create an Inner Shadow effect using Expression Blend

I'm aware of the DropShadowEffect using blend, but I need the shadow to appear on the inside of the control giving it an internal recessed appearance. Any ideas will be greatly appreciated. ...

How to make a specific GoToStateAction-with-DataTrigger run when element is loaded

I have a DataTemplate. It has two visual states - Expanded, Collapsed. I added 2 GoToStateAction-s. The first one goes to the Expanded state when a data context property becomes True, and the second one goes to the Collapsed state when that same property becomes False. A Checkbox is part of the template and bound to that property. So wh...

Is there a recommended approach to share state between screens in Blend 4 Sketchflow?

I am developing a Sketchflow prototype in Blend 4 and I need to share some state across the entire app - for instance - the currently selected item on screen 1. I looked at using a Datastore but it can only store simple types (strings, booleans,etc.) I want to store an entire object in there and then databind to it from other screens. I...

Does Expression Blend 4 not automatically nest a new ControlTemplate within a Style anymore?

I have a onetime Style and corresponding ControlTemplate for a custom HyperLinkButton in Blend 4 (for Silverlight). Documentation for Blend says : Control templates are wrapped inside styles so that the style that is applied to a control includes both the appearance (parts) and the behavior for the control. (from here) and (...

Does FluidMoveBehavior work with ContentPresenter or am I running into a known limitation in Silverlight 4?

I have created a custom ToggleButton where the content is a TextBlock (not just a string) pasted in manually into the right place in XAML. The parent layout in the ToggleButton is a Grid with 2 columns, where the toggling swaps the ContentPresenter and some graphics between the columns. The graphics animate perfectly when FluidMoveBehav...

Why is my DataStateBehavior not working

DataStateBehavior isn't working. Is there a trick to make it work when properties are nested? <i:Interaction.Behaviors> <ic:DataStateBehavior x:Name="DataStateBehaviorCustomIndexButton" Binding="{Binding ViewModel.ButtonVisibleFlag, Mode=TwoWay}" TrueState="ButtonVisible" FalseState="ButtonHidden"/> </i:Interaction...

Debug Visual Studio or Blend Silverlight / WPF designer load errors?

Is there a way to debug Visual Studio or Blend so I can figure out where XAML designer load errors come from in my code? The stack traces are often useless. Thanks... ...

Windows Phone 7 (WP7) Change a button's background color on click.

This seems like a really, really simple problem, but I can't figure it out. The culprit appears to be WP7's default style. It changes the background color to white when a button is clicked, then back to the button's default background. The problem I have is I want to change the button's background when the button is clicked. I can't fin...

I have visual studio 2010 installed, what else do I need for windows phone 7 development?

I have VS2010 and Expression studio 4 on my machine. I have done a fair amount of programming on Silverlight. What do I need to get started with development on Windows phone 7. I googled and found out that I need to install VS2010 express for WP7 beta. Can't I just use my existing VS2010 installation with some additional templates and an...

Problem with System.Windows.Automation Namespace

I am implementing WPF Application and i want to use System.Windows.Automation Namespace to capture highlgihted text from applications. The Problem is that Visual Studio and Expression don't identfy AutomationElement, TreeScope, TextPattern and Red underlined it !! i am using Visual Studio 2010 Professional and Expression 4 on Windows 7....

VS 2010 unable to locate WP7 Resources

Lately I have installed Windows Phone 7 developement tools and noticed that VS2010 unable to resolve the phone resources like styles and fonts. But Blend does load them all, it's bit annoying that all time get exception message on designer. Can anyone suggest the solution please? ...

Using Blend with shared styles in external library

Hi, I have the following type of setup for my WPF Application. App.exe UI.Styles.dll UI.Controls.dll Component1.Views.dll Component2.Views.dll (and various other parts) I want to be able to use the design surfaces to pick my control styles - e.g. we have a border that has a "round corner + shading + border" graphical style which be...

WPF Button isPressed and isEnabled problem...

Update: using Expression Blend 3 I'm trying to style the IsPressed & IsEnabled(false) property triggers for a class of buttons in a WPF application. Here's a UserControl with a Button using the style... <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20...

Is it possible to use RadMaskedTextBox inside an AutoCompleteBox in Silverlight / Expression Blend?

It's probably doable, but with my n00b skills I couldn't figure this out yet. When I try to "Make Into Part" on the RadMaskedTextBox, Expression Blend complains that it's not a TextBox. How can I make it to use it as a proper control part? Can I "typecast" somehow in XAML? Thanks in advance for all help! ...

Custom toggle button and states - how to give same effect to both MouseOver and Checked?

I have made a custom button based on an image by more or less using the process found here: http://www.kirupa.com/blend_silverlight/creating_custom_button_pg1.htm I added a MouseOver state that enlarges the image 1.5x so when you hover over the image, it grows slightly bigger and then shrinks back to normal size when you move the mouse...

How to Databind TextBox to Property in CodeBehind

Using Expression Blend ? Let's say I got: Public string FirstName{get;set;} Edited : 23/8/2010 Thanks for tha answers, But I'm Afraid people didn't understand my question. I do know how to Bind Data in Code or in XAML My question is if there is a way to do all that with the Expression Blend Interface without writing it directly. On...

Who does design and develop Style and Layout while developing silverlight application?

In your company, who does design and develop style, layout in xaml, Designers? or Developers? Are there enough designers who are able to deal with xaml or blend? Are they willing to touch Blend? In my company, Developers do all those jobs except making images. I am so confused nowadays if this is right direction. Give me a advice. ...

Expression Blend 4.0 - What layer effects and blend modes are supported for imported Photoshop files?

Many Photoshop effects aren't property supported by Expression Blend. Usually I see an option to "flatten layer" to get around this problem. Is there a comprehensive list of what effects or blend modes are supported by Blend? I'm curious about the Silverlight features supported during import but would also like to know if there are an...

have expression blend ignore element in design

I Often find myself in a situation where Blend gives a total nonsense designtime error, that I'm clueless how to solve, so to save myself the trouble of correcting the error I'm wondering if there's any way to simply tell belnd to ignore either that error, or the element that is causing the error? ...