Questions tagged [design-time]

In opposition to the run-time of a software, its design-time represents the time where it's being created.

In opposition to the run-time of a software, its design-time represents the time where it's being created or when its UI is being created.

The term design-time is particularly used in the domain of widget/visual components programming as they have to be efficient in an IDE and inside its UI editor (at design-time) but also when the program runs (at run-time).

413 questions
101
votes
8 answers

What approaches are available to dummy design-time data in WPF?

I am working without expression blend and just using the XAML editor in vs2010. The wisdom of this aside, I am increasingly seeing a need for design-time data binding. For simple cases, the FallbackValue property works very nicely (Textboxes and…
el2iot2
  • 6,428
  • 7
  • 38
  • 51
44
votes
1 answer

Published interface properties bug and workarounds

I wrote a set of components that link to each other via published interface properties. They are registered and installed in a design package. Using published interface properties is not that common in Delphi, and thus, unsurprisingly, doesn't seem…
user219760
35
votes
5 answers

Baseline snaplines in custom Winforms controls

I have a custom user control with a textbox on it and I'd like to expose the baseline (of the text in the textbox) snapline outside of the custom control. I know that you create a designer (inherited from ControlDesigner) and override SnapLines to…
Mike
  • 1,445
  • 1
  • 11
  • 14
31
votes
2 answers

How to see design-time data-binding in XAML editor (it works in runtime)?

I data-binded version number to appear as follows: DataContext="{Binding RelativeSource={RelativeSource Self}}"> Version is:
Tar
  • 8,529
  • 9
  • 56
  • 127
21
votes
3 answers

How to know whether a control is at design-time or not?

I have a class (control), implementing ICustomTypeDescriptor, which is used both at design-time and run-time by PropertyGrid for customization. I need to expose different properties at design-time (standard controls properties like width, height and…
Tadeusz
  • 6,453
  • 9
  • 40
  • 58
18
votes
6 answers

How to have code in the constructor that will NOT be executed at design time by Visual Studio?

I have a method call in the constructor of my user control that does something that won't work at design time (connecting to a database), and Visual Studio just bailed out when I tried to add that control to the GUI designer. Sure, I can factor out…
polyglot
  • 9,945
  • 10
  • 49
  • 63
15
votes
3 answers

How to troubleshoot and debug Visual Studio design mode errors?

Using Windows 7 and Visual Studio 2010, I am writing a C# custom UserControl. I was coding in code view for weeks and recently when I tried to switch to design mode, Visual Studio hanged, "NOT RESPONDING". I can wait for an hour, and still nothing…
Jake
  • 11,273
  • 21
  • 90
  • 147
14
votes
3 answers

How to debug Visual Studio 2012 instance design-time

I'm developing a WPF MarkupExtension and encountered errors during design time. With the previous version of Visual Studio 2010 it was possible to start a second instance of Visual Studio 2010 and attach to the process of the already-running…
11
votes
3 answers

Design Time Reflection

Is there a way to do reflection pre-compile - at design time? My intent is to use T4 to spit out custom codes based on classes that implement certain interfaces. I know I can call upon reflection, but I want the T4 script to spit out the additional…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
10
votes
2 answers

Can RTTI interrogate types from project code at designtime?

I would like to use RTTI to examine the types contained within project source files at designtime rather than runtime. To the best of my knowledge this is unsupported but the discussion in the comments of this question indicate that it is possible…
LachlanG
  • 4,047
  • 1
  • 23
  • 35
10
votes
5 answers

.NET Windows Forms design time rules

I have an object that starts a thread, opens a file, and waits for input from other classes. As it receives input, it writes it to disk. Basically, it's a thread safe data logging class... Here's the weird part. When I open a form in the designer…
Nate
  • 5,237
  • 7
  • 42
  • 52
10
votes
2 answers

How do you debug a WPF user control in design mode?

I have a wpf user control I created that contains a label. The label's foreground setting changes based on some code that checks a number of conditions. The label in my control is displaying the wrong color at design time but I cannot figure out…
WiredWiz
  • 646
  • 8
  • 18
8
votes
2 answers

How to disable designer in derived classes in following generations

In order to disable component designer in classes it is simple to add just [System.ComponentModel.DesignerCategory("")] attribute to it, however it does not work for any classes derived from this class in any generation.…
Tamir
  • 2,503
  • 16
  • 23
8
votes
1 answer

Detect DesignTime in WP7 code

simple question, does anyone know how to detect whether code is executed design-time with WP7? The usual Silverlight solution of HtmlPage.IsEnabled doesn't work in this context.
ColinE
  • 68,894
  • 15
  • 164
  • 232
8
votes
1 answer

Design time data in WPF

[using vs2010 & expression blend v4] Hi - trying to load up some design time data in WPF and Blend, using Josh Smith's concept here:…
Ian
  • 275
  • 6
  • 17
1
2 3
27 28