expression-blend

How can I use Expression Blend to edit a DataTemplate created in Visual Studio?

南笙酒味 提交于 2019-12-02 19:43:57
For those of you using Expression Blend as well as Visual Studio in your real projects, please help me understand how you use Blend and Visual Studio in your everyday development/design tasks , here is a real scenario: I created the following simple WPF application in Visual Studio. It shows a list of customer objects with a DataTemplate that shows the customers in simple orange boxes. I now want put some pizazz into this DataTemplate by using Expression Blend. I open the project in Expression Blend thinking that I'm going to see the orange boxes which I can change the color of, create an

Making a DataTemplate blendable

六眼飞鱼酱① 提交于 2019-12-02 18:11:27
How can I make a Datatemplate for a ViewModel blendable (designable in expression blend). When I go to resources and try to edit the DataTemplate directly all I see on the Drawingborad is a blank rectangle. This is because the DataTemplate is not bound to anything. Of course I can create a UserControl and create some designtime data in code there to see the template but I now would have to switch back and forth between the resource (to edit) and the usercontrol (to see the result of my edit). Isn't there a more direct way to edit and see my DataTemplate? Anderson Imes It's a bit of a stretch

Expression Blend: Why do I not have options for Transitions and Easing?

让人想犯罪 __ 提交于 2019-12-02 08:22:48
I am using Expression Blend 4 with .Net 3.5 In the image below, there are options for Transition Effects and the ability to choose Easing effects for your transitions: My Blend interface does not have these on my WPF application: However, if I create a new application (such as a WPF Sketchflow app) these options appear just as they do in the first photo. What determines whether or not these options appear, and how can I get them into my WPF application? I think you need the WPF toolkit to even get this far with .NET 3.5. (WPF 3.5 lacks the VisualStateManager; the toolkit adds this missing

Windows phone7: Create a custom button with different background Images for each state

不羁岁月 提交于 2019-12-01 10:08:21
问题 In my Windows phone7 Application I just have to create a custom button with different Images for each state of the button(Normal, mouseOver, Pressed, disabled). If I just wanted to create a custom button for each state with different background color, then I would have followed the following steps and done that. 1. Open the page with Expresion Blend 2. Right click button -> Edit Template -> Edit a copy 3. Select Background (In the "Objects and Timeline" Section) 4. Select each "state" under

Does Expression Blend and Visual Studio Render WPF Controls Differently

别来无恙 提交于 2019-12-01 06:19:54
In my WPF App, I have designed the Form using Expression Blend. To my surprise, the rendering is quite different when I load the solution using Visual Studio 2008. What is even more surprising, when I run the application, the resulting UI is different from the rendering done by both VS and Blend. Though I have not provided by XAML code, but in general is this a known Issue? This is most definitely a known issue. Visual Studio uses what's known as the Cider designer to render WPF code. It most definitely renders XAML differently from Blend. Cider in VS2008 is pretty terrible, but gets much

WPF Button isPressed and isEnabled problem

血红的双手。 提交于 2019-11-30 20:55:33
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/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Kiosk.ButtonTest" x:Name="UserControl"> <Grid x:Name="LayoutRoot"> <Button HorizontalAlignment="Left"

How to draw an arc in winRT with animation?

自古美人都是妖i 提交于 2019-11-30 15:10:37
I am a newbie to WinRT and Blend and I need to draw digits 1, 2 etc with drawing effect in my WinRT application. The requirement is like the application will be drawing the digit. Any help will be really appreciated. Thanks in advance. I think you would need to piece together a couple of storyboards to achieve that, and I would really recommend that you use Blend for that! Open a blank project, under objects and timeline there is a plus, click on it and add a new story board. Move the yellow bar of the storyboard line a few milliseconds forward. Draw a piece of the animation , click start

TextBlock with multiple <Run> spacing

北战南征 提交于 2019-11-30 14:27:37
问题 Given a formatted text block in Windows Phone 7.1 project: <StackPanel Orientation="Horizontal"> <TextBlock Foreground="DarkGray" VerticalAlignment="Bottom" Margin="0,0,0,8"> <Run Text="total length "/> <Run Text="{Binding TotalHours}" FontSize="48"/> <Run Text="h "/> <Run Text=":" FontSize="48"/> <Run Text="{Binding TotalMinutes}" FontSize="48"/> <Run Text="m "/> </TextBlock> </StackPanel> It is being previewed correctly in VS designer: It is already looking not the way I want in Blend: It

Blend Behaviours - can you bind to their properties?

淺唱寂寞╮ 提交于 2019-11-30 13:53:41
I am currently migrating a number of attached behaviours I have created to Blend Behaviours so that they support drag and drop within Expression Blend. I have noticed that authors of Blend behaviours tend to define the behaviour properties as dependency properties. I have created a behaviour, TiltBehaviour , which exposes a public dependency property, TiltFactor , of type double. Within Expression Blend I can set the value of this property, however, the option to add a "Data Binding ..." is grayed out: I have also noticed that Behaviors extend DependencyObject , therefore they do not have a

WPF - How can I place a usercontrol over an AdornedElementPlaceholder?

人盡茶涼 提交于 2019-11-30 12:38:22
alt text http://img42.imageshack.us/img42/4161/blinkthru.png I'm trying to get the validation to not show through my custom modal dialog. I've tried setting the zindex of the dialog and and of the elements in this template. Any ideas? This is coming from a validation template: <ControlTemplate x:Key="ValidationTemplate"> <DockPanel> <TextBlock Foreground="Red" FontSize="20" Panel.ZIndex="-10">!</TextBlock> <Border Name="validationBorder" BorderBrush="Red" BorderThickness="2" Padding="1" CornerRadius="3" Panel.ZIndex="-10"> <Border.Resources> <Storyboard x:Key="_blink">