expression-blend

Blend Trigger vs. WPF Trigger

妖精的绣舞 提交于 2019-12-07 04:08:18
问题 It seems to me that there is a major difference between the Blend-style Trigger s found in the Interactivity namespace, and the classic Trigger s available via Styles, ControlTemplate s, etc, in WPF (I supposed this probably applies to SilverLight as well). In WPF, when you set a Trigger with a Setter, you get two behaviours: if the trigger condition is met, the Setter is applied. However, once a Trigger is no longer satisfied, the previous value is restored. This is tremendously useful when

WPF stackpanel visibility animation

萝らか妹 提交于 2019-12-07 02:21:48
问题 I have a stackpanel with a button which, when clicked, makes the stackpanel disappear. I want to animate the transition form visible to hidden, but haven't been able to. I looked around for a while and bumped into something that looks like this: <StackPanel Margin="80,60,60,80" Background="Gray"> <StackPanel.Triggers > <EventTrigger > <EventTrigger.Actions> <BeginStoryboard> <Storyboard TargetProperty="Visibility"> <DoubleAnimation Duration="0:0:5:0" From="Visible" To="Hidden"/> </Storyboard>

Expression Blend and Sample data for Dictionary in WPF application

懵懂的女人 提交于 2019-12-06 18:20:22
问题 I have a WPF app which I am using Blend to style. One of my view models is of the type: public Dictionary<DateTime, ObservableCollection<MyViewModel>> TimesAndEvents But when I try to create some sample data in Expression Blend it simply doesnt create the XAML for this property. Can you create a data type like this in XAML? The non-design time support is killing my productivity. 回答1: Any more I've gone the route of creating a Design Time Instance of my Viewmodel in my Locator that I reference

LightSwitch and Expression Blend - Will they work together?

痴心易碎 提交于 2019-12-06 12:46:07
问题 how well can LightSwitch work together with Blend? I saw in some videos that you can use custom Silverlight control in LS and naturally I can create them with Blend. But can Blend in itself be used to customize the screens of a LightSwitch application? It seems LS doesn't use Xaml but puts all screen in an application.lsml file which is invalid for Blend. Is there support coming here? Thanks in advance. 回答1: No. You will never be able to customize the LightSwitch 'Screens' in Blend, because

Inheriting from a UserControl abstract subclass

情到浓时终转凉″ 提交于 2019-12-06 12:25:09
I have a set of UserControls that need to have a few similar properties. Thus I have defined an abstract subclass of UserControl that defines these properties and updated the .xaml.cs and .g.cs files to inherit from this base class. All compiles well and runs well. Great! But.... .g.cs files are generated and will be regenerated, so how do I tell Blend or Visual Studio to keep inheriting from my base class rather than UserControl? You need to change the XAML a bit to prefix the UserControl declaration with a namespace: <local:MyBaseControl x:Class="MyNameSpace.MyControl" xmlns:local="clr

How do I bind to this custom dependency property?

末鹿安然 提交于 2019-12-06 10:17:27
I have a DependencyProperty in my custom UserControl that looks like this: public static readonly DependencyProperty ColumnWidthProperty = DependencyProperty.Register("ColumnWidth", typeof(int), typeof(CallBoard), new PropertyMetadata(150)); public int ColumnWidth { get { return (int)GetValue(ColumnWidthProperty); } set { SetValue(ColumnWidthProperty, value); } } In Expression Blend 3, I have this: <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"

How to make WPF animations without expression blend

十年热恋 提交于 2019-12-06 09:38:18
Is there a way or a tool i can use to make WPF animations and controls without using Expression Blend...maybe just using Visual Studio 2008 or something??? You can use Visual Studio. ALSO: Visual Web Developer XAMLPad If you're looking for a visual XAML tool and can't swing Blend, take a look at: Kaxaml Even though the page says for Silverlight two, the designer says: The latest beta of Kaxaml works with Silverlight 3 with you doing anything. That said, I’m looking to expand the support and finally bump SL support out of beta. Unfortunately, Kaxaml takes a back seat to paying gigs these days

How to edit a c# project in Blend 4 that was created with VS2012?

荒凉一梦 提交于 2019-12-06 04:03:20
问题 It always says "The solution "foo.sln" is of an unsupported Format and may not open correctly. Do you want to open the solution anyway?" If I click yes, it Shows the solution tree, but when I open a xaml file, it only Displays its xaml text, not the Rendering of the UI. According to this http://blendinsider.com/technical/available-now-blend-for-visual-studio-2012-2012-08-15/ Blend 4 is the way it's meant to work. So something is wrong I guess. I have older Projects created with vs2010 and

Blend KeyTrigger fires multiple times

蓝咒 提交于 2019-12-06 02:42:41
I am using the Blend SDK KeyTrigger in a WPF project and have the problem that the event is fired multiple times each time I press the assigned key, here the DeleteCommand. <ei:KeyTrigger FiredOn="KeyDown" ActiveOnFocus="True" SourceName="repositoryPackages" Key="Delete"> <i:InvokeCommandAction Command="{Binding SelectedItem.DeleteCommand, repositoryPackages}" /> </ei:KeyTrigger> This trigger is in the trigger collection of a ListView which itself is on a grid inside a user control. The user control is then embedded on a tab of a WPF TabControl on the application main window. Each time I

Theming using resources without Blend vomitting

一笑奈何 提交于 2019-12-06 01:43:37
WPF is great in that I should be able to use {StaticResource MyBackground} instead of "White" throughout my app, and then by changing resource definitions redefine the look of my entire application. Problem is Expression Blend just won't work if you have references to global resources in a subcontrol. Is there any other way of theme-ing your app? I am not willing to lose Blend designer support, or replicate a piece of code/xaml in every single control. I find it astounding that they have not fixed a bug of this magnitude. Any ideas? Cheers So I haven't tried this, but it sounds like it would