expression-blend

properly resize wpf ListView's last column

北战南征 提交于 2019-12-11 02:23:06
问题 How to properly handle listview's last column sizing in such a way that: listview does not display the ugly and unused 'extra' column (see picture 1, or here for example) the (actual) last column is stretched to fill the remaining space the horizontal scrollbar is not shown resizing in any direction leaves no artefacts (see below) I've been struggling with this for quite some time and it doesn't work out, nor did numerous searches on the web provide any insight. Here's what I have so far: I

Why isn't Expression Blend rendering my User Control? It's only showing XAML

流过昼夜 提交于 2019-12-11 00:46:10
问题 I'm opening valid XAML within my VS2008 solution in Expression Blend 3 and it is only showing XAML when I try to open individual XAML files. My solution/projects all build and run correctly. When I go to View -> Active Document View the Design View , Split View and XAML View options are all grayed out... which doesn't make much sense. I'm not much of a Blend user, but this has never happened before, and I'm coming up blank for how to fix it. Any ideas? 回答1: How did you create your project ?

Loading Views into ContentControl and changing their properties by clicking buttons

爷,独闯天下 提交于 2019-12-11 00:21:33
问题 I have a mvvm(model view viewmodel) silverlight application that has several views that need to be loaded into ContentControls (i made it all in expression blend). What i dont know how to do is, for example, to load one view (user control) in one content control by clicking a button from another view that is in another content control. To make it easier to understand the problem, i need to do something similar to this: http://www.codeproject.com/KB/silverlight/BlendableVMCom.aspx with that

Cannot open xaml pages in Blend after installing Visual Studio 2012 Update 2 (CTP)

青春壹個敷衍的年華 提交于 2019-12-10 23:42:42
问题 I am experiencing something weird at the moment. After I installed Visual Studio 2012 Update 2 (CTP), I can no longer open xaml pages properly in Blend designer view. Looks like everything from other namespaces just cannot be found (see screenshot below)... Please also note that the whole solution compiles ok if I close up all the xaml pages, and runs well too. But as soon as I open any of the xaml pages, it will throw me those errors... UPDATE 13 MAY 2013 Just an update, a couple of days ago

How to change EasingDoubleKeyFrame value at Runtime?

社会主义新天地 提交于 2019-12-10 23:39:53
问题 I am trying to make a TranslateTransform animation. In the animation, I need my object to remain at the center of the window. I know WPF animation is Freezable. I am using a converter, but it initializes values at startup. Is there any way to set the value of EasingDoubleKeyFrame at runtime? Here is my XAML code: <Storyboard x:Key="Storyboard1"> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard

How to show/hide (with animation if possible) a CheckBox within a LongListSelector

99封情书 提交于 2019-12-10 18:48:48
问题 I've been trawling the MSDN for hours now and can't find an example of how to show or hide a CheckBox within a list in Windows Phone 8. An example would be within the messaging application, where the user uses the Application Bar to press a 'multiple selection' button. This allows the user to select multiple messages. I've came across some information about using Expression Blend and the VisualStateManager but for some reason it does not seem to be capable of applying state groups to a

What are the differences between the WPF designer in Expression Blend and in Visual Studio (2008)?

半城伤御伤魂 提交于 2019-12-10 16:46:51
问题 This was inspired by a question I asked recently regarding design time behaviour in my WPF app. (Can't databind at design time in WPF using MVVM - ViewModel property never gets called) The net result of that is that my design time DataContext/ViewModel works perfectly in Blend, but doesn't show up in Visual Studio 2008. I've decided not to look further into it as Blend support is all I really need, but this surprised me as I had been working under the assumption that Blend and VS would have

How do I bind to this custom dependency property?

不打扰是莪最后的温柔 提交于 2019-12-10 11:24:02
问题 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:/

WPF 4.0 InvokeCommandAction Compatibility (System.Windows.Interactivity)

*爱你&永不变心* 提交于 2019-12-10 10:06:44
问题 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

Is it possible to apply Blend behavior using style or template?

允我心安 提交于 2019-12-09 13:09:22
问题 I'm very happy with my small collection of Blend behaviors, actions and triggers - they are easy to use and powerful. But I still can't figure out how to avoid applying them on per element basis. For example, if I have a behavior as such: <Rectangle> <i:Interaction.Behaviors> <il:MouseDragElementBehavior/> </i:Interaction.Behaviors> </Rectangle> and I have a few draggable rectangles in my Window, each of them has to have the above markup to be draggable. What I would like to do is to be able