wpf-designer

WPF designer won't load with entity framework

I have been having real problems getting the WPF designer to work in VS 2008 when i use the entity framework. I have a user control that gets data from an entity model. The user control designer loads fine but the main window throws the following error "Could not create an instance of type 'CampaignList". When i compile the project there...

Can't use WPF designer in VS2008 SP1

Hi, i searched several hours four solution and nothing found. If I open WPF Designer in my VS2008 Team Suite SP1 I become following error: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boole...

Replicating 9-slice functionality in WPF

I really love the 9-slice feature in Flash/Flex. It is a great quick way to make liquid vector layouts. Take a look at: http://www.screencast.com/users/rfairchild/folders/Jing/media/e1493b02-e258-4283-b5e0-d72e517112ae I am using the selected object in AI file to setup a 9-slice grid (I am not using 9s to scale corners!). I only want...

Can you use a style to define a StackPanel's Content property?

I'll just show an example <Style TargetType="{x:Type f:WorkflowPage}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <DockPanel Background="Red"> <StackPanel Style="{StaticResource Header}"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> ...

How can I make a rounded-corners form in WPF?

I am trying to make the corners of a Window (WPF) rounded and it doesn't work, I tried to make the window itself transparent and add an internal border with rounded corners and it doesn't work. any ideas? ...

WPF UserControl Designer Problem with Strech

I have a WPF UserControl (Foo.xaml) that should be displayed streched (VerticalAlignment="Stretch" HorizontalAlignment="Stretch") on a window. If I don't specify Width/Height on the UserControl it will be displayed as intended at runtime. Unfortunately the VS WPF designer will not show the control correctly if I open Foo.xaml (size may...

Link button in wpf

Hey Guys, How can I make Button to look like LinkButton, and I don't want to use Hyperlink...!! Any suggestions ...

WPF Designer and Binding to Dependency Property problem

Hello all, I have a problem updating the WPF Designer when binding to custom dependency properties. In the following example, I create a simple Ellipse that I would like to fill with my custom MyAwesomeFill property. The MyAwesomeFill has a default value of a Yellow SolidColor brush. The problem is that in the control form of the des...

Dependencies of dependencies not being copied to the output directory

Hi, I posted this question on the MSDN forum but haven't been able to receive much of an answer, so decided to try it out here. I'm having a problem with dependency libraries of a project not being copied to the output directory of a second project that references it, when the first library is mostly xaml. Here is a typical scenario w...

Using XAML + designer to edit Plain Old CLR Objects?

I want to write a POCO in XAML, and use a DataTemplate to display that object in the GUI at runtime. So far, so good; I know how to do all that. Since I'll already have a DataTemplate that can transform my POCO into a WPF visual tree, is there any way to get the Visual Studio designer to play along, and have the Design View show me the ...

A simple tutorial for a beginner with WPF

Hi Guys, I started today working on WPF for the first time. My requirement is to create a windows application using WPF. I mean an application which has page, buttons, tree view, log details (typically of selecting a project and subproject then manipulate the data on it) using WPF controls. Can I get some basic tutorials on this ple...

Strange HorizontalContentAlignment (non) behavior

I define a style in app.xaml: <Style x:Key="textBoxCenter" TargetType="{x:Type TextBox}"> <Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property="HorizontalContentAlignment" Value="Center"/> </Style> I use the style in window1.xaml: <TextBox Style="{StaticResource textBoxCenter}" Background="BlanchedAlm...

wpf visual studio designer won't load user controls

Hello The view below is a container for three user controls, and I started getting this error after refactoring application resources: Error 295 Could not create an instance of type 'FilterPanel'. C:...\ProjectPickerWindow.xaml Here is the xaml for the view: <Window x:Class="Smack.ConstructionAdmin.WpfPresentation.Views.ProjectPic...

Visual Studio Hangs in WPF Design View - ".NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A2E0F92) (0)"

I've encountered an issue where Visual Studio hangs in WPF design view. I've read through similar posts and I believe my issue is similar, but different. The errors I see in Windows Event Viewer are below. Hanging application devenv.exe, version 9.0.30729.1, hang module hungapp, version 0.0.0.0, hang address 0x00000000. .N...

wpf designer: the type initializer for threw an exception

I'm having an issue with databinding to a service class in WPF. My service class has a static constructor that reads configuration information and pulls in some required information. The problem is that during design, I get the error the type initializer for Mytype threw an exception. I believe this is because the configuration inform...

Creating a Custom Design-Time Environment

Hello all, My question is related to the design-time support of WPF. From MSDN I read, The WPF Designer provides a framework and a public API which you can use to implement custom adorners, tools, property editors, and designers. But the vast majority of the examples I have found are trivial, and do not illustrate much con...

Building Visual studio like application, need inputs..

Hi, I am working on a Visual studio like application i.e. have a tolbox, an editor and property grid similar to VS. User can drag and drop the controls(custom and third party) to the editor window and perform operations like resize, move, align, group etc.; Properties of that control needs to be displayed in property grid and user can ...

WPF designer gives exception when databinding a label to a checkbox

I'm sure it's something stupid, but I'm playing around with databinding. I have a checkbox and a label on a form. What I'm trying to do is simply bind the Content of the label to the checkbox's IsChecked value. What I've done runs fine (no compilation errors and acts as expected), but if I touch the label in the XAML, the designer tro...

WPF Login Screen

I have search on google about the login screens which are design in WPF , as I have to using one of the best login screen for my application, Is the any good login screen avaialble so that I can see them and choose one of them, I am having no idean about the good design of the login screen. Please help me, thanks in advance ...

WPF: How can I create sample data in design mode?

I would like to create sample data which are created only in design mode (When the WPF Window is shown in the Visual Studio WPF Designer or in Expression Blend). I tried this: public MainWindow() { InitializeComponent(); if (DesignerProperties.GetIsInDesignMode(this)) { DataContext = new Person() { Name = "Harry" };...