expression-blend

What does Binding=“{Binding (0)}” mean?

瘦欲@ 提交于 2019-12-08 16:38:09
问题 I found this: <DataTrigger Value="True" Binding="{Binding (0)}"> triggers in RibbonMenuButton template. What does it mean? I've tried to google, but found nothing. UPD more code: <ControlTemplate x:Key="RibbonMenuButtonControlTemplate1" TargetType="{x:Type RibbonMenuButton}"> ... <DataTrigger Binding="{Binding (0)}" Value="True"> <Setter Property="TextElement.Foreground" TargetName="MainGrid" Value="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}"/> <Setter Property="PathFill"

WPF Datagrid binding does not show values

拜拜、爱过 提交于 2019-12-08 06:19:34
问题 I am total begginer with WPF and I try to make binding to datagrid in WPF here is XAML code <Grid x:Name="LayoutRoot"> <Grid HorizontalAlignment="Left" Height="440" VerticalAlignment="Top" Width="632"> <DataGrid HorizontalAlignment="Left" Height="420" Margin="10,10,0,0" VerticalAlignment="Top" Width="603" ItemsSource="{Binding Source=MailCollection}" AutoGenerateColumns="False"> <DataGrid.Columns> <DataGridTextColumn Header="id" Binding="{Binding Id}"/> <DataGridTextColumn Header="nazwa"

Blend in visual studio 2012: Missing the “resources” window i used to use in blend 4

守給你的承諾、 提交于 2019-12-08 06:15:42
问题 In blend 4 i often open a resource dictionary (i.e. "Generic.xaml") by clicking the "resources" tab (next to the property tab on the right pane), navigate to a resource and click on its icon to edit it in the designer. In blend for visual studio 2012 i can't seem to find the resources tab? How am i then able to edit resources in resource dictionaries? 回答1: I'm assuming this is a XAML project. Is the Window open? Main toolbar -> Window -> Resources... is that checked? If not, check that. 回答2:

PageFunction is not supported in a Windows Presentation Foundation project

南笙酒味 提交于 2019-12-08 05:45:46
问题 I'm aware this is the same issue as raised in "PageFunction is not supported in a Windows Presentation Foundation (WPF) project" 2012 - however, I'm unsure as to how to apply the workaround mentioned there, and thought it may be more appropriate to raise this as a separate question. Apologies in advance if this is against the site ethos. To summarise the problem: I have a C# Visual Studio 2010 WPF project that's a couple of years old, which I'm now trying to open in Visual Studio 2012.

Silverlight 4: How to apply multiple effects to an element?

时光毁灭记忆、已成空白 提交于 2019-12-08 01:01:32
问题 We can apply only one effect to an element. Is there any way to apply multiple effects simultaneously to an element? like both DropShadowEffect as well as the BlurEffect ? Google did not help me much. Any suggestions? 回答1: I once experienced the same problem; I had to apply a BlurEffect as well as a DropShadowEffect to an image. What I did was this: I applied the BlurEffect to the Image and put that Image into a Grid (which itself is lookless) onto which I could apply the DropShadowEffect:

Blend KeyTrigger fires multiple times

可紊 提交于 2019-12-07 12:10:53
问题 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

wpf VisualState conflicts with wpfToolkit?

五迷三道 提交于 2019-12-07 11:06:59
问题 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

How do I stub data for designers when using Expression Blend and Visual Studio?

隐身守侯 提交于 2019-12-07 10:01:02
问题 We are trying out Visual Studio 2008 and Expression Blend on a new project. The goal is to clearly define the role of the developer and designer as separate, but reap the benefit of the developer being able to directly consume the XAML produced by the designer. For the most part this has worked great, and I really like the possibilities. One difficulty we have come across though is designing against DataBindings. In many cases, the GUI does not populate rows, or other data structures unless

How do I bind an Image Source?

徘徊边缘 提交于 2019-12-07 09:05:58
问题 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! 回答1: In your case, it can be very easy! Add the images as

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

不打扰是莪最后的温柔 提交于 2019-12-07 05:25:38
问题 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