expression-blend

WPF 4.0 InvokeCommandAction Compatibility (System.Windows.Interactivity)

最后都变了- 提交于 2019-12-06 01:34:14
I have a problem when I insert a InvokeCommandAction (Blend 4 SDK) in WPF 4.0. The usercontrol is not displayed and I've got some exceptions. (log on bottom) Without the line in my xaml code, there is no problem (but no event trigger). I have tested this part of code in an external light project, and it's work perfectly !! Maybe InvokeCommandAction is not compatible with something in may app, but what ? <UserControl x:Class="Project.Views.Menu.TestView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http:/

Designing WPF Windows for Free?

可紊 提交于 2019-12-06 00:35:01
问题 I'm starting a WPF project in a "free tools" environment. I'm currently working with the designer in Visual C# Express 2008, and directly with the XAML, both of which are very limited in design capabilities. My understanding is that Microsoft Expression Blend is not available for free (except for limited time trial). Is Expression Blend expected to come out in a free Express version anytime soon? If not - are there any alternatives? Thanks 回答1: No, there is no free version of expression blend

How do I bind an Image Source?

梦想与她 提交于 2019-12-05 17:33:50
Here is what I have so far: <Image Source="{Binding ImageSource"} /> <Button Content"Text" ImageSource="path/image.png" /> I know something isn't right here. I guess I can't see where ImageSource is defined. I have several of these buttons and just want to have a unique image for each one. I have a button template that I am using and it works great for the text. <Label Content="TemplateBinding Content" /> Thanks for all your help! In your case, it can be very easy! Add the images as resources to your project, then in XAML use something like the following: <Button HorizontalAlignment="Left"

wpf VisualState conflicts with wpfToolkit?

喜欢而已 提交于 2019-12-05 14:53:20
I am building an application in VS2010 with wpfToolkit 3.5 as referenced assembly. I tried to add some VisualStates from ExpressionBlend 4 and I am getting the following error when I am trying to build the project. The type 'System.Windows.VisualState' exists in both 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\PresentationFramework.dll' and 'c:\Program Files (x86)\WPF Toolkit\v3.5.50211.1\WPFToolkit.dll' this is the code <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="ShowHideRoomNumber"> <VisualState x:Name="Show"/> <VisualState x:Name=

Blend “Window is not supported in a WPF Project”

試著忘記壹切 提交于 2019-12-05 11:50:59
问题 I am having a frustrating time with Blend reporting "Window is not supported in a Windows Presentation Foundation (WPF) project." due to unbuildable configurations but can't quite work out how to mangle my way out of it. I've worked out it is probably due to my trying to have a single solution with x86 and x64 configurations. There is no way to tell Blend 2 which is the active Solution Configuration and active Solution Platform . I think it's a bit of a weakness in the configuration system,

How do i edit the watermark for a DatePicker in WPF using Expression Blend

放肆的年华 提交于 2019-12-05 09:41:39
I have created a simple Expression Blend 4 project with a DatePicker. I edited the template for the DatePicker, including its DatePickerTextBox, changing the watermark text from "Select a date" to "dd/mm/yyyy". The resulting XAML in Blend applies a style to the original DatePicker, and this style is stored as a resource in Window.Resources. However the editing done for the watermark text does not take effect. Any ideas? Thanks. (Please note, i do not want to resort to code, i would like to understand how this can be achieved using Blend.). Here is the XAML for the window: xmlns="http://schemas

Is there a way to “extract” WPF controls of Expression Blend?

允我心安 提交于 2019-12-05 05:06:16
问题 I am not sure if the WPF controls that make up Expression Blend's UI is packaged in the application in a usable way, like separate assemblies, etc. But if they aren't, is there a way to "extract" these controls so you can have the same controls in your app with the same look and functionality? 回答1: You can look in your install folder for blend under Program Files or Program Files (x86) and there will be style directories with the appropriate resources, I believe. Otherwise you can use Snoop

Centering text in passwordBox in XAML

我只是一个虾纸丫 提交于 2019-12-05 02:48:11
问题 I'm trying to center the text in a PassWord box: In Blend the Text properties for alignment are all disabled. Is there another way to do this? Thank you for your help. 回答1: HorizontalContentAlignment works in WPF, doesn't seem to work in Silverlight though unfortunately. <PasswordBox Height="23" Width="400" HorizontalContentAlignment="Center" /> For Silverlight you need to tweak the template for the PasswordBox a little - you can extract the template for the password box (in Blend right click

Expression Blend and Sample data for Dictionary in WPF application

风格不统一 提交于 2019-12-04 22:23:51
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. Any more I've gone the route of creating a Design Time Instance of my Viewmodel in my Locator that I reference as @ChrisW suggested above: d:DataContext="{Binding Source={StaticResource Locator}, Path=DesignTimeVM}" So

LightSwitch and Expression Blend - Will they work together?

五迷三道 提交于 2019-12-04 20:26:16
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. No. You will never be able to customize the LightSwitch 'Screens' in Blend, because as you have seen, they live inside the application.lsml file. If you build a Shell Extension, you could use