blend

DesignInstance not working in VS2012

喜你入骨 提交于 2019-12-18 14:45:12
问题 I just spent several hours on an issue when using VS2012, WPF 4.5 and design-time data, specifically the DesignInstance attribute. Goal : I wanted to have design-time data support in my WPF project (MVVM-based), both in VS2012 and Blend, and I could not for the life of me make the MVVMLight approach work consistently . So I tried to change to "just" using the built-in support for design-time data, using the markup extension provided with Blend. Problem : Consider the following code: <Window x

where is blend for visual studio 2012

回眸只為那壹抹淺笑 提交于 2019-12-18 04:35:11
问题 I see a lot of refs to something called 'blend for visual studio' which I understand a W8 version of blend. I have VS2012 Ultimate installed on W8 and I don't see any blend. I looked into my MSDN Pro subscription and I don't see neither separate Blend for VS2012 download not VS2012 with Blend download.. How do I get it? 回答1: It is one of the install options that you pick when you do the install (or at least it was in 2012 Professional). You should be able to get it by going Add/Remove

VS2012/ Blend 5: Debugging an Exception (only) occurring in design view

戏子无情 提交于 2019-12-17 19:05:55
问题 I'm developing a Metro-style app (for Windows 8) using C# and XAML. I have set up my viewmodels to be used as design-time datacontexts, like so: xmlns:vm="using:hub.ViewModels" d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type=vm:ViewModels My app appears to work perfectly when run, but in the design views of both VS 2012 and Blend, I occasionally get this (unhelpful) error message: An Exception was thrown. TargetException: Error in the application. Stacktrace at System

Why do Blend Interaction event triggers fire multiple times when using a Caliburn Micro Conductor.OneActive?

余生长醉 提交于 2019-12-13 18:27:23
问题 [Note that I asked the wrong question on my first stab at diagnosing this - now corrected.] I have a WPF application with one main window that inherits from Conductor.Collection.OneActive. It handles navigation requests and keeps a cache of the viewmodels so that the state is maintained. This private collection is almost identical to the base.Items collection but not all of the viewmodels are IScreen. Everything works fine and state is maintained when we move from one active item to another.

Visual Studio 2012 and Blend which version(s)?

不想你离开。 提交于 2019-12-13 04:36:36
问题 I'm sorry if these are really noob questions but I am new to the Visual Studio C# world and confused about what I will and will not be able to do with the Express editions and how they differ from the Professional Edition. I installed Visual Studio Express for Desktops a couple of weeks ago. I have seen MVVM tutorials using Blend (Expression Blend?) which looks a great tool for creating modern looking apps that will scale on different devices. However, I can't find Blend in my current install

Blend cannot generate sample data for many intrinsic types

风流意气都作罢 提交于 2019-12-13 02:26:02
问题 It looks like Blend (2015) cannot generate sample values for certain data types. The types that failed for me include short and byte . The types that generated sample values are string , int and bool . Has anyone else experienced it and is there a workaround for this limitation? Example: The following class doesn't generate correct sample data: public partial class PointLocation { public byte Number { get; set; } public short X { get; set; } public short Y { get; set; } } Sample data looks

Final steps in using MVVM to decouple GUI from business logic?

二次信任 提交于 2019-12-12 04:53:38
问题 Just recently, I learned about using MVVM to decouple GUIs from the underlying model. I ended up learning as much as I could to convert my current application over to MVVM, and was largely successful. Now I need to figure out how to actually take a GUI generated in Blend and use it in place of my current GUI, which was designed in Visual Studio. I can't find any resources on the web for making this as seamless as possible. I'd like to know what you all have done and have had work for you. My

Windows Phone 8.1 AppBarButton Template not editable

别说谁变了你拦得住时间么 提交于 2019-12-12 03:37:24
问题 I am not able to redefine the Template of an AppBarButton inside BottomAppBar in a Windows Phone 8.1 project. In Visual Studio XAML designer it changes (it shows "button 2" text), but when I deploy it to the phone or to the emulator, the default template is applied. I tried to right click the control, "Edit template", "Edit a copy...", but it's not available. Is it possible, to redefine this template? My XAML code (just a very simplified example): <Page.BottomAppBar> <CommandBar> <CommandBar

OpenGL - FBO and alpha blending

拥有回忆 提交于 2019-12-12 01:53:26
问题 I was finding for answer, but I can't get answer for my problem. I have FBO and I can't get alpha blending and multisample to work. FBO draws scene to texture and then it's drown to default framebuffer with two textured triangles. Drawing directly to default framebuffer is fine. Here is difference between default framebuffer (top) and my FBO (bottom). I use FBO with 2x color attachments and 1x depth attachments. (Only GL_COLOR_ATTACHMENT0 is used, second is for other function) Depth test:

Set hidden AttachedProperty through Style

扶醉桌前 提交于 2019-12-12 01:33:38
问题 I've got a problem using System.Windows.Interactivity.Interaction attached behavior class (from Expression Blend SDK 4). I'd like to define a pair of triggers for System.Windows.Window class in XAML Style element. But as the TriggersProperty field of System.Windows.Interactivity.Interaction class is private and there is no SetTriggers method in this class, I've got an error 'Set property System.Windows.Setter.Property threw an exception. -> Value cannot be null. Parameter name: property' when