expression-blend

Referencing enum defined in a class from within XAML

天涯浪子 提交于 2021-02-10 06:15:17
问题 In Expression Blend 4 (Silverlight project) I have a UserControl to which I have added a CLR property. This property is an enum type, which is defined within the UC. I have attached a ChangePropertyAction behaviour to an instance of the UC. However, the XAML parser gives the following error (among others): '+' is not valid in a name This is because the following XAML (snippet) has been generated: <local:SomeControl Margin="155,113,317,0" d:LayoutOverrides="Width, Height"> <i:Interaction

Convert an image to XAML?

帅比萌擦擦* 提交于 2020-01-31 05:00:30
问题 Does anyone know of any way to convert a simple gif to xaml? E.G. A tool that would look at an image and create elipses, rectangles and paths based upon a gif / jpg / bitmap? 回答1: Illustrator has a trace tool which will do this a cheaper option might be http://vectormagic.com it will export a svg that you should be able to convert to xaml 回答2: Inkscape can trace bitmaps, and can save directly to XAML. And, it happens to be free. I've used it to trace a lot of bitmaps and it's worked really

Styling ListView(for custom template) WPF

佐手、 提交于 2020-01-24 22:19:13
问题 I have few questions about styling ListView. For example I have some style: <Style x:Key="MyListView" TargetType="{x:Type ListView}"> <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/> <Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> <Setter Property="ScrollViewer

Changing the style of a Combo-Box in WPF (in Blend preferably)

落爺英雄遲暮 提交于 2020-01-24 14:07:44
问题 I'm having some issues trying to change the look / style of a combo box in Expression Blend / WPF. While there are tutorials out there describing setting styles for buttons, there seem to be a few wrinkles with ComboBox controls. Can anyone offer any advice, or point me towards good tutorials that cover re-styling something more complex than a button? 回答1: The ComboBox style template has 3 parts to it. The ContentPresenter you should have come across styling Buttons. There is a Part_Popup

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

喜你入骨 提交于 2020-01-22 05:31:10
问题 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

MS Blend preview Designer Catastrophic failure

扶醉桌前 提交于 2020-01-16 08:25:10
问题 I know this kind of problem must be posted on microsoft support forums, so did I , but still didn't get answer. maybe someone here may know what causes this problem. So.. i have strange problem with blend for silverlight 5. I created new blank new project , everytime i try to add control (button, or textbox or something else), I' getting that error exception. here is screenshot: If i leave control Content property blank string "" error disappears. here is list of related software installed on

Theming using resources without Blend vomitting

孤街醉人 提交于 2020-01-13 17:35:12
问题 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

ListView control and blue border highlight

好久不见. 提交于 2020-01-06 15:31:47
问题 I'm creating an application that uses a couple of ListView controls. I have a particular color scheme I'm going with and I'm noticing that, when the mouse enters a ListView control, there is a thin, blue border highlight around it. I can't figure out where this is being generated. I am using Expression Blend to modify the controls, but none of the components of the ListView control, that I can find, have a definition for this blue color. In fact, nothing within the ListView control has a

Unable to determine application identity call? How to track down?

笑着哭i 提交于 2020-01-05 09:06:30
问题 I am making a windows phone 8 application and in the designer view in both blend and VS I get "Unable to determine application identity call" error as a dialog box. From what I read on stack this is propably because of the Isolated Storage is getting run and the designer can't handle it. I am wondering is there away I can get some line numbers or something where the errors are happening instead of having to manually go through the code? 回答1: By the time you see this message box it is already

Unable to determine application identity call? How to track down?

百般思念 提交于 2020-01-05 09:06:24
问题 I am making a windows phone 8 application and in the designer view in both blend and VS I get "Unable to determine application identity call" error as a dialog box. From what I read on stack this is propably because of the Isolated Storage is getting run and the designer can't handle it. I am wondering is there away I can get some line numbers or something where the errors are happening instead of having to manually go through the code? 回答1: By the time you see this message box it is already