designer
Visual Studio 2010 Designer Error on Run
I get this visual studio bug too now and then, and I deeply ignore the error text, instead I do the following: Close the Design-tab Reopens the Design mode by double click in Solution Explorer, or by right clicking Source code tab and select View Designer Suddenly everything works again! If not helping, you may … Read more
WPF Designer DataTemplate.DataType cannot be type object
I was able to solve this WPF Designer Bug by adding a x:Key to the DataTemplate <ResourceDictionary> <DataTemplate x:Key=”ThisKeySolvesDesignersNullRef” DataType=”viewmodels:MyViewModel”> <views:MyView/> </DataTemplate> </ResourceDictionary> I had been searching for months, because it eventually appeared on different projects and sometimes appeared and disappeard without an explicit reason. Thanks to the helping answer on SO
Designer.cs not updating when new controls added to .aspx
Try this 1.- Change CodeBehind=”Name.aspx.cs” to CodeFile =”Name.aspx.cs” 2.- Build 3.- Change CodeFile =”Name.aspx.cs” to CodeBehind =”Name.aspx.cs”
Visual Studio designer in x64 doesn’t work
I can repro your problem by creating a WPF application with a user control (put the user control on the wpf app, and build x64). Here’s my guess as to what’s going on: Visual Studio is a 32-bit application and the WPF designer has to load referenced assemblies (you see that behavior all of the … Read more
Disable XAML UI designer
In Visual Studio 2015 you can completely turn off the XAML designer in: Tools->Options->XAML Designer\Enable XAML Designer
What’s the purpose of the components IContainer generated by the Winforms designer?
When you add non-UI components to the form (such as a Timer component), components will be the parent of those compoments. The code in the designer file makes sure that these components are disposed of when the form is disposed. If you have not added any such components to the form in design time, components … Read more
Design-time-only background color in WPF?
There’s an undocumented property d:DesignStyle of type Style that you can set on a user control. This style is only applied in the designer and is not used at runtime. You use it like this: <UserControl … d:DesignStyle=”{StaticResource MyDesignStyle}” /> Or like this: <UserControl …> <d:DesignerProperties.DesignStyle> <Style TargetType=”UserControl”> <Setter Property=”Background” Value=”White” /> <Setter Property=”Height” Value=”500″ … Read more
How to change background color of XAML designer in vs2012?
In VS 2013 you can change XAML designer background. Go to: Tools -> Options -> Environment -> Fonts and Colors In the combobox at the top of the panel, select: Show settings for: XAML UI Designer Then set: Item foreground : white Item background : white or very light grey (custom)
How to manually reload the Visual Studio designer for WPF
I’m a little late but this is the best solution1 I’ve found so far: whenever the designer does stupid stuff, I just kill it’s process. Press Ctrl+Shift+Esc Navigate to the Processes tab. Kill XDesProc.exe This also fixes issues for the properties window (like when it gets jammed and you can’t type stuff into it). 1 … Read more