87 questions
0
votes
0
answers
14
views
How to convert a sender object to a ListItens object?
In my code convertion of VB.NET to C#, is error in convertion...
"Cannot implicitly convert type 'object' to 'demoComp.ListControlItem'. An explicit conversion exists (are you missing a cast?)&...
2
votes
1
answer
82
views
Why does my Designer Generated Code (InitializeComponent()) Not Generate an Object Instantiation Line For my Custom Control?
Enviroment details:
.NET 4.8
Visual Studio 2022
Designer interface (if that's what it's actually called)
I've created a custom form called WeatherBox which inherits from another custom form ...
6
votes
3
answers
2k
views
How can I open the Visual Studio EditorConfig Designer after changing the default editor for the .editorconfig file type?
Does anyone know how to either add back in the EditorConfig Designer as a program to open files with or how to reset the default editors for file types?
After changing the default editor for ....
1
vote
1
answer
1k
views
How to force Visual Studio Designer to emit AutoScaleDimensions set to (6F, 13F) within the InitializeComponent function
I have a System.Windows.Forms.UserControl. I have observed that Visual Studio Designer puts the following two lines (among others) within the InitializeComponent function:
this.AutoScaleDimensions = ...
1
vote
2
answers
879
views
Form inheritance crashes with .NET 6
I'm converting an old winforms application from 4.8 to 6.0.1.
The conversion has been incredibly easy and the application worked with no problems at all until, suddenly, Visual Studio (2022 64-bit v17....
-1
votes
1
answer
1k
views
UserControl is not Resizing in Panel
I'm having a problem using user controls with panels. When I load user control into the panel with the code:
panel3.Controls.Add(new userControl1());
it loads with the size of my initial ...
0
votes
2
answers
433
views
Xaml: design a layout with dynamically visible components
In a mvvm application some areas inside a window (in reality it is a UserControl inside MainWindow) are dynamically displayed according to the user selections.
The changing blocks are inside ...
3
votes
3
answers
4k
views
visual Studio WPF xaml designer won't show up, even when enabled
So I'm trying to load the XAML designer in visual Studio, and it won't show up, only the source editor shows up
I use the XAML WPF designer to make a lot of decisions, as I'm not on a team and do ...
0
votes
1
answer
1k
views
VS stuck at `Loading` when starting debugger
This happened After updating Visual Studio to 16.2.0:
Start Debugging > Building started > Building succeeded > App launches [Suspended]
>
Loading... [Stuck/VS instance blocked]
Other projects run ...
0
votes
1
answer
279
views
VS Design Time DataContext (Sample Data) Contains Exception
Application
It's a WPF application meant to send files between clients. I'm working on a usercontrol meant to show a list of sent files, their recipients, etc.
Setup
I'm trying to style the control,...
-1
votes
1
answer
460
views
Visual Studio 2017 Xamarin Designer Not Displaying Content Even Though It has Before
I am using Visual Studio 2017 with the Xamarin extension. I have encountered a problem where the Designer view is only showing white space and not the layout and content I added to the axml file. I ...
2
votes
1
answer
439
views
Visual Studio WPF Designer does not use overwritten SystemColors
I am currently trying to overwrite the WPF system colors. From here I found out that this can be done by creating a new SolidColorBrush resource with for example the key x:Key="{x:Static SystemColors....
0
votes
1
answer
319
views
No XAML designer preview with custom ChromeWindow
I've been trying to build a custom chrome window vs a window with no border style.
In Visual Studio, the XAML designer is showing the custom title bar in the content area, and the actual content area ...
1
vote
0
answers
564
views
VS 2017 Designer: Method not found (static method)
I have a windows form that contains a user control (each defined in separate assemblies). The control calls a factory method (defined in yet another assembly) to create a DataGridView CheckBox column:
...
1
vote
1
answer
1k
views
VS 2017 XAML Designer View not Rendering Custom/User Control in One Solution but Will in New Ones
I have a WPF solution which at some point the design viewer stopped properly rendering a custom control I wrote and the LiveCharts Cartesian Chart which is a user control, I believe. To be clear, ...
1
vote
1
answer
417
views
UWP Designer Stopped Working
So I have been working on this UWP project (visual studio 2017) for months and just recently the designer stopped working (it shows Loading desinger... You can continue working while the designer is ...
1
vote
1
answer
375
views
How do I prevent Visual Studio from firing events on the designer?
I've got a user control which is supposed to fire an event when the visibility or the enable status changes.
My problem is the events fire on Visual Studio's designer too, which is irritating since ...
0
votes
1
answer
52
views
Visual Studio designer warning for custom web server control "Content is not allowed between the opening and closing tags for element <control-name>"
The following code works as intended but I can't seem to get rid of the VS designer warning above.
Here's my custom web server control class:
<ParseChildren(True, "Content")>
Public Class Test
...
0
votes
1
answer
174
views
How to add multi line string property on DSL
I am developing a workflow designer by DSL tools (Domain Specific Language) in Visual Studio,
I want to add a multi line string property as a domain property on one of my domain classes.
When I add ...
0
votes
2
answers
2k
views
Create a custom button with icon in a custom group for Outlook using C# VSTO
I am fairly new to C# as well as the Outlook Library.
I have created a custom group in Meeting Tab of Outlook, which has a button in it.
I also added an image in properties of Button(as displayed in ...
2
votes
0
answers
734
views
Cannot select objects in XAML Designer when using dragablz and MahApps
I am developing an application with the use of dragablz, MahApps and MaterialDesign. However, I have broken down the problem to the dragablz and MahApps extension.
I create two tab items (extract ...
2
votes
2
answers
2k
views
Xamarin.Android, Visual Studio - Designer doesn't work with v7 AppCompat library
I want to create an app with Material Design using Xamarin and Visual Studio. I want to achieve this using the v7 AppCompat library, so my app runs well on older devices.
I have an activity with a ...
0
votes
0
answers
85
views
WPF/Designer: ItemContainerStyle RadioButton as ToggleButton. Works when in runtime but fails in designer
I have a ItemsControl with an ItemContainerStyle based on ToggleButton.
This works just fine at runetime, but it casts an error in the designer. (So I have to comment it out if i want to use the ...
1
vote
1
answer
4k
views
The designer cannot process unknown name 'mycomboBox_SourceType' at line 46
I have a windows form where I have created my own custom comboBox code .cs class file in my project and used that in my form controls(designer files).
This works fine for the exsisting project where ...
1
vote
1
answer
3k
views
Renaming resources in Visual Studio does not update their references
I have added some image files as resources to my project through the Resources.resx. But if I change the name of the image file after adding it, both in Resources.resx and in the "Resources" folder on ...
0
votes
0
answers
113
views
Visual Studio Designer for Javascript App
I'm writing an application and after some Proof-of-concept work I'm starting to design the app in UML. It will be an HTML5/Javascript app with a simple ASP.NET backend serving data over SignalR and ...
0
votes
0
answers
44
views
ListView - Data template and data source in xaml (instant changes in VS designer)
I have something like this:
<ListView >
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></...
1
vote
2
answers
319
views
Text visible on VS 2015 designer when control's text field value is binded
Whenever I bind text property to view model property
<TextBlock Text="{Binding SomeExampleText}"/>
on the designer I see nothing in the place where my text will appear in runtime. When I use x:...
3
votes
0
answers
584
views
VS 2015 hangs when trying to load XAML in Designer
I have found some similar questions on here, but none that are quite the same thing. This Question is probably closest. I am using VS 2015 Community on Windows 10.
This is where it hangs:
I cannot ...
1
vote
1
answer
846
views
Visual Studio 2015 Designer Crashes in all Win10 UAP projects ("The app didn't start.")
The xaml visual designer crashes for all WIN10 UWP projects, including ones created from the standard template with no code added. I don't know when it started because I thought it was a problem with ...
1
vote
0
answers
321
views
Opening vs2010 C# project in vs2015 resulting in error in designer
I can access the code but can not open the designer view. I can add new items and code them, only the existing item's designer view is returning these errors.
I can also run and debug the program ...
1
vote
1
answer
1k
views
How to maintain control in center with anchor(left,right)/dock(fill) and maximum width
Let's say we have form with docked GroupBox. GroupBox have docked TableLayoutPanel with 2 rows (50% height each). Each row have Button. I want this buttons to be centered in TableLayoutPanel cells, ...
9
votes
5
answers
4k
views
System.NullReferenceException occurs in xaml designer
I've created a C++ UWP Windows 10 app using Visual Studio 2015. However, I'm not able to visualize any xaml in the designer because I'm always getting a System.NullReferenceException error. How can ...
0
votes
2
answers
187
views
PNG img displays in Visual Studio Designer but not IE
I am currently writing a webpage. I want there to be a banner image on the top of the webpage. Here is my html and css:
index.html
<!DOCTYPE html>
<html>
<head>
<title>...
1
vote
1
answer
3k
views
Multilanguage wpf application with resources in Visual Studio Designer
This is my issue:
I have multilanguage WPF application with resources in two different files. Now I choose the proper one in app.xaml.cs like this:
var dict = new ResourceDictionary();
switch (Thread....
0
votes
1
answer
60
views
How does editor \ preview for Windows Phone work in Visual Studio works?
How is the image of the Page's XAML gets generated?
Is it running a virtual machine and it's grabbing a snapshot?
Does it send the XAML?
Any details of that would be welcome.
0
votes
1
answer
170
views
Visual Studio Designer Bottom Pane
What does it mean in the designer when you add something like saveFileDialog to a form, and it appears in the bottom pane at the bottom of the designer window rather than inside the form like a button ...
1
vote
1
answer
2k
views
Can I preview my DataTemplate(s) in my collection-based controls in the designer?
I have an application that I've near-finished that makes use of multiple Data Templates. Specifically, I have a ListView and a DataGrid.
I've created some special formatting for these items and I'd ...
0
votes
0
answers
39
views
VisualStudio 2013 DesignMode CurrentDirectory
i have a problem with designer in VS2013. When i'm using
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
or
Environment.CurrentDirectory;
I'm getting path like this one
C:\Users{...
4
votes
1
answer
2k
views
How do you change the type of a WinForms control to a new type that is derived from the original type when using Visual Studio Designer?
I built several user controls that used a number of GroupBox objects using Visual Studio Designer and later decided I wanted to be able to control the color of the GroupBox border(a feature you don't ...
-1
votes
1
answer
105
views
Why does visual studio put CommandText in resx resource file vs designer code behind file?
Sometimes my queries that are stored in OdbcCommand.CommandText are saved to the designer.cx code behind, and sometimes in the .resx resource file. What causes it to go to the code behind vs the ...
2
votes
2
answers
1k
views
Form with a MainMenu shrinks every time the project is run
Whenever I build the following program Form1's size shrinks by 20. (In some cases I need to make a change to the form, such as moving someLaggyControl1 by a few pixels, but not always. It's weird.) ...
2
votes
1
answer
2k
views
Visual Studio designer does not generate code for `List<T>` members of `Windows.Forms.Control`
The following class (a Windows Forms Control) is a type of list control,
and the ListControlItem don't inherit any Windows Control class.
public class ListControl : Control
{
private List<...
1
vote
1
answer
449
views
'enum' type breaks in Windows Forms C# designer file
I'm wondering if anyone has experienced this issue before. I'm using C#, .NET 4.5 and Visual Studio 2013.
I have a custom text box, one that basically just inherits from a standard Windows Forms ...
0
votes
0
answers
92
views
Change VS2013 Standard properties in windows forms designer
we use VS2013 in our company and when creating forms with the designer the standard of the autoscalemode is "font". We have a lot of problems with that - we need "none". Sometimes developers forget to ...
1
vote
1
answer
2k
views
Is there a way to display WPF Extended Toolkit's control in VS Designer?
I'm used to create my forms with the designer, and modifying the XAML manually only when needed.
Even though the extended toolkit is a fantastic library, it still lacks integration with Visual Studio'...
-1
votes
1
answer
106
views
Is it possible to view control layout in visual studio designer but disable modifying from the designer?
Is it possible to view control layout in visual studio designer but disable modifying from the designer?
You may be wondering why I would possibly want this. My answer is simple and here it is.
If ...
0
votes
0
answers
51
views
Scroll bug in visual studio 2012?
So the GroupBox i am trying to place is larger than the screen real state of the designer in visual studio.
Hence i scroll to make room however after scrolling whenever i try to re-size the groupbox ...
2
votes
1
answer
1k
views
Dont throw exception on Null Dates on XSD generated DataTable classes
When designing data tables in the .xsd designer in Visual Studio, there is a property that specifies what to do when the table encounters a null value:
The problem is, if the DataType is System....
3
votes
0
answers
227
views
How to get Designer Support for VisualStateGroups in Windows 8.1 XAML Apps
There used to be really great designer support for Windows 8.0 apps in Visual Studio 2012. In the Device Panel, you could move to different VisualStates within the VisualStateManager....