blend

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. ...

XAML/Blend dependant data binding

I want to create a listbox that'll be bound to XPath, relative to the other listbox's currently selected item. It's using XmlDataProvider for the data, and the XML file looks like this: <Programs> <Program name="..."> <Step name="..."/> <Step name="..."/> </Program> <Program name="another"> ... </Progr...

When IAttachedObject.Detach() (KeyTrigger.Detaching()) method is actually called?

Let's say I have a Silverlight user control with a textbox: <TextBox> <ii:KeyTrigger Key="Enter"> <!-- something here --> </ii:KeyTrigger> </TextBox> I inject my user control into root content control: root.Content = new MyUserControl(); Now I know that KeyTrigger will be hooked up to TextBox when "Loaded" event of MyUser...

Troubleshooting XamlParseExceptions in Expression Blend 4

What is the best way to troubleshoot XamlParseExceptions in Blend? I'm using Blend 4 RTM, with a SL4 project, and I get totally stumped when I get the "Red Screen of Death": "An Exception was thrown. XamlParseException: [Line: 0 Position: 0]..." Is there a list of techniques that help? The error message is completely opaque and useles...

Silverlight template selector solution works great, but not blend able.

Before I begin here is a reference to how I implemented a template selector with Silverlight. http://geekswithblogs.net/tkokke/archive/2009/09/28/datatemplateselector-in-silverlight.aspx Everything works great. But the solution just doesn't work in blends making things more difficult to visualize overall. Is the correct work flow to ...

Android Blend Modes

I am looking for a way to add more advanced blend modes to my program (ones that I could define myself). How would you suggest going about this with Android? Setting pixels individually is too slow to be a viable solution. ...

Microsoft Blend - drawing polygons

Hi I recently downloaded trial version of Microsoft Expression Blend and I can't figure out how I can draw polygons. I only found predefined shapes like pentagon,octagon, triangles but I can't find a tool to draw polygon ...

How to convince WPF (Blend) designer to user panels and layouts?

In Blend, as soon as you insert a control (like Button) and start dragging it onto Window/Grid/whatever you get hard-coded margins and width/height. Thus designer that I work with ends up creating beautiful static pictures that, on my side, fall apart as soon as one data-bound string is longer than the sample ones. Or if font size gets ...

OpenGL blend problem

I want to draw aquarium (container) standing on table. Walls of aquarium need to be blended. But, if I draw table first and then aquarium I get: - looking from the up of the table: ok - looking from the bottom of the table: wrong, I still see aquarium If I draw aquariun first and then table I get: - looking from the up of the table: ...

Databinding in Blend

I have found an excellent video about how to bind controls to an XML dataset completly in Blend without a single line of code. I am trying to do the same - bind a textbox to a value of Dataset --> MyDataSet.xsd which grabs the total number of rows in a table (executes: select count(id) from books). And I am having a really hard time doi...

prevent blend from adding a startupURI to application?

Is there some trick that is known to tell blend to stop trying to set a startupURI in my app.xaml? I googled but didn't see anything so I figured I would ask here. I use a startup routine and instantiate mainwindow myself. Every once and a while blend likes to toss in the startupURI="MainWindow.xaml" when I let it compile. Occasionally ...

Creating a Custom Silverlight Designer in WPF

I need to create a designer for Silverlight in WPF and I’m thinking of a few options Use a WebBrowser control, display the content there and communicate Silverlight using the JavaScript Bridge. Not sure if this will be enough for the scenarios I need to support (see below). This is what KaXaml is doing. SilverlightSpy uses a a more so...

Limiting custom BlendMode made with PixelBender - how to merge images

Hi, i need to mix two images one photo and a placeholder. The idea is that we see the placeholder except where the palceholder has a particular color, in that case the user sees the photo. Something like chroma key. For this purpose i wrote a Pixel Bender shader that acts as a BlendMode. If the background is in the right color output th...

Set layout to have 100% width and 100% height

How can I set a layout to have 100% width and 100% height? I want my Silverlight application to stretch in the browser to fill all space. I am using Expression Blend 4. Here is my XAML: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:C...

Does Sketchflow to Production now work in version 4?

Please ignore all the stuff about whether you should or not go from Sketch to Production... Can it be done more easly now in version 4? ...

Can I make a custom control similar to a ContentControl editable in Blend?

I'm trying to make a custom control in Silverlight have the same functionality as a ContentControl, notably being editable in Blend. The custom control has a property "AdditionalContent" which holds the Content that should be displayed. It is bound to and displayed with a ContentPresenter in the Xaml for the control's UI. Unfortunately...

How do I stop a video at a specific time using Blend/WPF.

How do I stop a video at a specific time using Blend/WPF in C#? Example: When I clicked on a "TreeViewItem" called "MONDAY", the video will start to play. But up to 10sec of that video, I want it to stop. As after 10sec, that video will be showing video of another "TreeViewItem" called "TUESDAY". So what is the coding for it? My codin...

How do I stop a video at a specific time using Blend/WPF in C#?

How do I stop a video at a specific time using Blend/WPF in C#? Example: When I clicked on a "TreeViewItem" called "MONDAY", the video will start to play. But up to 10sec of that video, I want it to stop. As after 10sec, that video will be showing video of another "TreeViewItem" called "TUESDAY". And when the video is stop, the "Slide...

How do I stop a running video using Blend/WPF?

How to stop a video after playing 10 sec. And the video slider will also stop. thanks. My coding: if (threeA.IsSelected == true) { Video.Source = new Uri(@".\step_3.wmv", UriKind.Relative); Video.Play(); descriptionText.Text = "Stepping out."; // When the video play until 10sec, both ...