expression-blend

How to style different items differently when using data template in xaml?

I would like my elements generated from datatemplate to look differently depending on some properties in the model. For example I want to display the text in various colors or present different images or path drawing for each generatred element. I know how to do it in general, but I'm looking for a solution that would allow editing the v...

WPF Which IDE to go for?

Hi, just wondering what IDE people use for their WPF apps? I currently have VS2008 + VS2010 (RC) and MS Expression Blend 3 installed on my system. I'm just wondering what is the best way to go about WPF apps? Could I create in Blend and then edit the source in VS or vice versa? Ideas would be great and info on how everyone else does ...

How do I make a simple image-based button with visual states in Silverlight 3?

At my previous company, we created our RIAs using Flex with graphical assets created in Flash. In Flash, you could simply lay out your graphics for different states, i.e. rollover, disabled. Now, I'm working on a Silverlight 3 project. I've been given a bunch of images that need to serve as the graphics for buttons that have a rollo...

Adding .cs in a ResourceDictionary ?

Hello. I have DataTemplate in a ressource dictionnary, and in some, I need button and i don't know how i can use code behind for manage events. I tried to put a class in my resource dictionnary like that : <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/...

How to animate an object to the Center of a fluid layout in Silverlight

Hi and thanks for reading. I am building a simple silverlight page and having difficulties animating elements to the center the screen. The example... MouseLeftButtonDown > animate the rectangle to the center of the screen. Is there a way to do this? ...

Why doesn't my tempate show up in expression blend 3

I right click on a button. Select edit template edit a copy. The template is blank and not the template of the button. This happens off and on. WHY???? ...

Expression Blend 3 (Silverlight) gives me nothing on project compile

When I press F5 the project compiles, and the new web page launches. However, the silverlight control loads (the standard load counter counts to 100%) but then the whole control just disappear. Only the left default menu bar (feedback etc) is visible. It's a very small project, my first actually. This also happened earlier today, but the...

Expression Blend Preview for .NET 4 and vs 2010 RC?

Is anyone successfully using Expression Blend Preview for .NET 4 with the RC of VS 2010/.NET 4? I installed EBP beside Expression Blend 3 on my development machine. It launches okay, but when I try to open a solution created with VS 200, it crashes. Has anyone else run into this? Is there a fix? Thanks. ...

Visual Studio 2010 RC with .net 4 beta 2

Does anyone know if it is possible to use Visual Studio 2010 RC with the beta 2 version of the .NET 4 framework? The reason I need to use the beta 2 version and not the RC is that there isn't an Expression Blend that can support the .NET 4 RC. I uninstalled the .NET 4 framework that installed with Visual Studio 2010, then I reinstalled ...

Extending the SketchFlow player

I would like to add some controls to the SketchFlow player. For example, I would like to add a combo box with a list of values for a specific variable, and selecting a value will make a specific screen/state show up in the SketchFlow player canvas. Is this possible? I have seen that using the PlayerContext allows access to some controls/...

Create Silverlight application in Blend then migrate to Visual Studio

I want to make a Silverlight application in Expression Blend because of the rich UI and navigation of Blend. But I want to store the Silverlight application in an ASP.NET MVC web project. When I try to make a new Silverlight application, the default web application is an ASP.NET Web application (or web site, if I'm wrong). Can I make a s...

Silverlight 3 Application Background

I am new to Silverlight development. I have created a nice png file in Expression Design. I would like to use this png file as the background for my application. When I set the Stretch property to fill, it does not fill the entire page like I think it should. Here's the xaml: <Grid x:Name="LayoutRoot"> <Grid.Background> <ImageBru...

Expression blend for WPF 4 release date

I understand that Visual Studio 2010 is being released 12 April, but does anyone know when Expression Blend for .NET and WPF 4 is being released? I have the beta, but it is pretty buggy and it crashes a lot. I have not had much luck searching for the release date, so any help would put my mind at ease. Cory ...

WPF - List items not visible in Blend when 'DisplayMemberPath' is used

Hi, We're currently working out how to implement MVVM and I've got to the point where I've got the MVVM Light Toolkit set up in blend and can specify dummy data to be supplied if running in Blend. All good. I've created a dummy list of data. The list contains 6 instances of a very simple class called DummyItem which has Age and Name p...

Using Moq at Blend design time

This might be a bit out there, but suppose I want to use Moq in a ViewModel to create some design time data, like so: public class SomeViewModel { public SomeViewModel(ISomeDependency dependency) { if (IsInDesignMode) { var mock = new Mock<ISomeDependency>(); dependency = mock.Object; // this throws! ...

The best way to organize WPF projects

Hello everybody, I've started recently to develop a new software in WPF, and I still don't know which is the best way to organize the application, to be more productive with Visual Studio and Expression Blend. I noticed 2 annoying things I'd like to solve: I'm using Code Contracts in my projects, and when I run my project with Expres...

How do I stream videos from web server in Silverlight using ExpressionMediaPlayer control?

Hello. I would like to stream videos that reside at the webserver from within a ExpressionMediaPlayer control. The following results in a network error. I believe that the problem is with my Uri. I have the videos inside the 'ClentBin' folder. Can anyone tell me how this is done? private void videoList_SelectionChanged(object sender, S...

Need some advise on Silverlight template/style reuse strategy

I'm an absolute Silverlight noob that is confused by the help file. Here is what I want: I would like to use Expression Blend for the creation of mockups using Sketchflow. I want to create a set of controls that have my companies' look & feel applied to them and be able to easily reuse then across projects, preferably by simply dragging...

Grabbing values from Expression.Blend.SampleData

I am trying to figure out how to grab a value from Expression.Blend.SampleData. If my id is equal to a drop down for example, I can grab it by doing this: ((Expression.Blend.SampleData.MyDatabase.something)(MyDropDown.SelectedItem)).description; I need some way to place my own value where (MyDropDown.SelectedItem) is. Visual studio ...

Expression Blend and Scatterview

Hi I would like to animate a ScatterView Control using Expression Blend However, it seems that Blend doesn't recognise this control and nothing is visible on the design surface despite it being in the xaml Is there an addon or something that you need to get Blend to recognise controls that are specific to MS Surface? Have been googli...