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
8
votes
1 answer

WPF Design-Time vs Run-Time Style Differences with Triggers

I am having a big issue with how XAML is rendered in Design-Time vs Run-Time. For the most part, things are consistent, but when I use any styles which have a Trigger, the trigger is not checked in Design-Time. Here is a sample application to show…
Travis
  • 293
  • 1
  • 5
  • 13
8
votes
1 answer

WPF user control throws design-time exception

I have a userControl which starts a timer. It looks like the XAML designer is trying to call that code, which links to some back-end database stuff. I keep getting an unhanded exception error in the design screen. Any ideas how I can stop the…
Jay
  • 2,077
  • 5
  • 24
  • 39
8
votes
3 answers

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

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,…
rikkit
  • 1,127
  • 3
  • 18
  • 35
7
votes
3 answers

Design-time drag and drop in Delphi?

Before Delphi 2006 (I think) introduced the TFlowPanel and TGridPanel, I did a control that was similar in concept. It still does a couple of things those controls do not do, and when upgrading my code to Delphi 2009, I decided to add a couple of…
Cobus Kruger
  • 8,338
  • 3
  • 61
  • 106
7
votes
1 answer

Enable a button to be clicked at design-time in Visual Studio?

My setting: I've got a C# application (.NET 3.5) in Visual Studio 2008. No chance to switch to WPF or whatsoever :). My app contains a custom control (a button class derived from Windows.Forms.Button) that acts as a replacement for the…
mfeineis
  • 2,607
  • 19
  • 22
7
votes
4 answers

Fuss over Runtime and Design Time packages in Delphi

I have seen that most of the components (VCLs) in Delphi are split in two parts. 1) DesignTime Package 2) RunTime Package Why all this fuss. What difference does it make if both RunTime and DesignTime packages are united into one single Package? I…
Yogi Yang 007
  • 5,147
  • 10
  • 56
  • 77
7
votes
2 answers

Rebuild T4 template when external file is modified

I'm building a set of T4 templates that gather their data from an XML file. Is there any way to force Visual Studio to regenerate the templates when the XML file is changed? Presently, the developers must modify the XML file and then rebuild each…
Adam Maras
  • 26,269
  • 6
  • 65
  • 91
7
votes
6 answers

Is it possible to style text in a richtextbox at design time?

I have a System.Windows.Forms.RichTextBox that I wish to use to display some instructions to my application users. Is it possible to set some of the text I enter at designtime to be bold? Or do I have no option but to do it at runtime?
Martin
  • 39,569
  • 20
  • 99
  • 130
7
votes
6 answers

How can a component at designtime determine the project directory

I write a component which should store some information relative to the project directory. Every time a property of my component is changed it should write a file. So how can a component determine the current project directory at design time. Thanks…
Heinz Z.
  • 1,537
  • 3
  • 14
  • 29
7
votes
1 answer

WPF MarkupExtension and RowDefinition results in NotImplementedException

The scenario: Create a MarkupExtension to replace Grid.Row=”0” by Grid.Row=”{namespace:ClassExtension GridRowName}” (same for column) Xaml Code:
Frederik Prijck
  • 1,424
  • 10
  • 16
7
votes
2 answers

Set column width for QTableWidget in designtime

I cannot find any information for the following question: is there a possibility to set width to columns for QTableWidget in designtime. When I opened ui-file in text editor, I found, that columns are declared like this:
borisbn
  • 4,988
  • 25
  • 42
7
votes
1 answer

Design-time data for ControlTemplate

Providing design-time data for DataContext is easy with use of d:DataContext but what about control properties referenced with {TemplateBinding} or {RelativeSource TemplatedParent} from Style.Template ? Should I just populate control with sample…
Marcin Wisnicki
  • 4,511
  • 4
  • 35
  • 57
6
votes
1 answer

How to fix Delphi component with TFont property that gets "cannot assign NIL to a TFont" at design time?

I have started building a new component in Delphi 6 Pro. Currently it just has a single TFont published property. However, when I drop the component on a Form at design time, and click on the edit button for the "textAttr_1" property (ellipsis), I…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
6
votes
7 answers

How do you handle multiple TPanel's at design-time?

I have several TPanel's on my main form that I show/hide depending on options a user selects. The problem is that at design time I have to constantly move them around to edit them. Is there an easier/better way that others handle this situation?
Mick
  • 13,248
  • 9
  • 69
  • 119
6
votes
0 answers

Evaluate project full path in XAML designer (XDesProc.exe)

I have UserControl displaying file information. And I want to see test file information in visual studio designer using view-model mock. Here is XAML:
Sam
  • 1,384
  • 2
  • 20
  • 30
1
2
3
27 28