blend

Silverlight and Blend - How do I programmatically access sample data?

Hello, I have created a user interface for my Silverlight application in Blend. This application is currently using some sample data that I created within Blend. I need to do something with this sample data at runtime. How do I access sample data that has been created in Blend at runtime? Thank you! ...

Final steps in using MVVM to decouple GUI from business logic?

Just recently, I learned about using MVVM to decouple GUIs from the underlying model. I ended up learning as much as I could to convert my current application over to MVVM, and was largely successful. Now I need to figure out how to actually take a GUI generated in Blend and use it in place of my current GUI, which was designed in Visu...

Silverlight 4.0 - Deploying the XAP via a custom installer and configure it for OOB + Elevated permissions

Is it possible to deploy a XAP using a custom installer (much like deploying a desktop app), and configure it to run as OOB with Elevated permissions? Bottomline is, when the app is started, it should run in Elevated permissions + OOB, with out any user intervention at all after the installation. ...

Silverlight VisualStateManager

Is it possible to have nested visual states. What I mean is if a ParentControl has a ChildControl and both have their own visual states, is it possible by setting the state of the ParentControl to change the state of the ChildControl accordingly. ...

Invert a Clipping Path in Expression Blend

I want to be able to invert a clipping path. Rather than use the path to show parts of an object, I want to use the clipping path to hide (cut into) an object. Does anyone know if this is possible? ...

WPF Designer Popup Content Display

Happy friday folks, awesome. I am currently writing a small tooltip mimicking control to display inline help in an application. I was going to just use standard tooltips but decided that I potentially wanted interactivity. I have it working no problem. Its quite literally an implementation of ContentControl with a ControlTemplate trigg...

Calling two different animations from the same click event

Hi Stackoverflow, I'm currently working on a Surface application where I need to call two different animations when a button is tapped. How exactly should I be doing this? I'd like to do it declaratively if it's possible. Should I be using MultiTriggers for this, or? Thanks in advance! ...

Binding from DataContext in Blend 3

i'm trying to build a simple application, that changes images based on Selected item in ListBox. <Grid> <Grid> <Image /> </Grid> <ListBox /> </Grid> The XAML looks similar to this. So i set DataContext of the "inside" Grid to the ListBox's SelectedItem property. The problem is that when i try to DataBind Image source p...

Settings TranslateX or Canvas.SetLeft Property programmatically in Silverlight

So Here is the Problem, I am trying to get that circle to align on the number. When I do that in blend it shows me I have a Left (23), I try to do that programmaticly Canvas.SetLeft(thePanel,23) it overshoots. Better yet, if anyone knows of a control like this in silverlight let me know. What this does is when the user clicks on a number...

Where to find Helpful Silverlight Tutorial (interactive)

I want to be able to create an interactive type program where a user can pin point plots on a graph, so if a user clicks anywhere on the map a dot of some sort will be plotted. I just need a helpful tutorial on silverlight to help me do this sort of thing. I have tried looking up google but I am not finding exactly what I want. ****I a...

Control Inheritance with Blend in Silverlight 3

Hi, i would like to create a custom base class for some of my UserControls. Doing this in VS2008 is fine and compiles as expected, but when i edit the control in Blend 3 the base class in the blabla.g.vb is always changed back to System.Windows.Controls.UserControl. How can i force Blend to keep the assigned base class? regards Chris...

Wrong assembly-references for Silverlight Sketchflow project in Blend 3

Hello, In my installation of Blend 3, the SketchStyles are missing when a new project is created. I found out that this is because the following automatic references in the project are wrong: Microsoft.Expression.Interactions Microsoft.Expression.Prototyping.Interactivity Microsoft.Expression.Prototyping.RunTime Microsoft.Expression.P...

Silvlerlight 4 development using VS 2008.

My current software is based on Silverlight 3 and i am using VS 2008 and Blend 3 for development. With SL4 out in the wild, can i use my existing tool set (VS 2008 atleast) to develop SL4 code? ...

MVVM Light + Blend designer view error: Cannot find resource named 'Locator'.

The application runs fine but i could not see my design in the designer view. It says Cannot find resource named 'Locator'. Obviously, i did not change anything in the code, i just did the data binding using the data binding dialog... anyone facing the same problem? ...

PHP - Possible to blend an image into a color? (Left, right, bottom)

Hello. Is it possible to blend the left, right and bottom sides of an image into a color? Lets say, I want the image to be blended into the color "#F0F0F0". I want the image to appear as an actual part of the background, so I thought it would look cool if it was blended in. Thanks. ...

Blend 4 Beta: How to change image source as part of Timeline

I'm trying out Blend 4 beta, and looking for a way to do a simple thing: When a mouse is hovered on an image, the image should change its source to a different image. When the MouseLeave happens, the image changes back. I know I can do it in source code, but I'm looking for a code free way to do it, without hand coding xaml. Blend...

MVVM - Master/Detail scenario with Navigation and Blendability

Hi, I'll start off with what I want so it may be simpler to understand: I have a Page (Master.xaml) that has has a listbox of PersonViewModel. When the user selects a PersonViewModel from the listbox, I want to Navigate to a details (Details.xaml) page of the selected PersonViewModel. The details page does some extra heavy lifting th...

How to style a treeview in Expression Blend

(Using Expression Blend 4 RC, Silverlight 3) I have a treeview with several different item templates for different levels. When I open this project in Blend, it seems I can only really style the top-most DataTemplate (via right-click the TreeView in the Objects/Timeline view, Edit Additional Templates->Edit Generated Items (ItemTemplate...

WPF NotifyIcon Help C#

Hi everyone. I'm having trouble with a NotifyIcon in WPF I currently have the following: notifyI = new NotifyIcon(); notifyI.Icon = new Icon("Power.ico"); notifyI.Text = "Shutdown Timer"; notifyI.Visible = true; notifyI.MouseDoubleClick...

Silverlight clipping UserControl when parent column width is set to GridUnitType.Star

Hi, I have a user control that contains an ellipse. The ellipse is translate transformed to the right until it lies partially outside its parent control. I put the user control into the middle column of a 3 column grid. If I set the column width to GridUnitType.Auto I can see the ellipse overflowing the column. If I set the column...