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
4
votes
2 answers

Unable to click custom control in design time

I'm building a custom control (inherited from TCustomControl) in Delphi XE2 (and have had this issue in other controls of mine) and in design time, I'm unable to click them. I know it has to do with the mouse capture, and catching the mouse events…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
3
votes
2 answers

Designing WPF UserControl that gets its DataContext from outer controls: How to have some sample data in designer but use inherited DC at runtime?

I am designing a WPF user control which contains other user controls (imagine a WidgetContainer, containing different Widgets) - using M-V-VM architecture. During development, I have WidgetContainerView in a window, window (View) spawns a…
Tomáš Kafka
  • 4,405
  • 6
  • 39
  • 52
3
votes
5 answers

How can I add visible information to C# classes using attributes?

I am trying to add information to a C# interface, and I am trying to add this information using attributes. Say for example, that I have int parameters everywhere, and some of these int parameters are "row IDs" and some are "column IDs". I'd like…
Null Pointers etc.
  • 2,124
  • 2
  • 14
  • 20
3
votes
1 answer

Auto-generate name for a custom TreeViewItem

I have a class derived from TreeviewItem(Custom TreeViewItem) which is used by a class derived from Treeview(custom Treeview Control). When the user of my control adds items to my custom TreeView using the default design-time collection editor I…
Rayden
  • 135
  • 11
3
votes
2 answers

Silverlight5 MarkupExtension at Design Time

I have a simple IMarkupExtension as follows: public class HelloWorldMarkup : IMarkupExtension { public string ProvideValue(IServiceProvider serviceProvider) { return "Hello World"; } public override string ToString() …
Sam
  • 535
  • 5
  • 14
3
votes
1 answer

How implement escape key on user control child controls at design-time, so that focus moves to respective parent control?

When one works in WinForms designer, you can click on a child control to select it. When you then hit the Esc key, the selection moves up to the parent control. If you press Esc key again, the next parent control up gets selected, until finally one…
Elan
  • 6,084
  • 12
  • 64
  • 84
3
votes
2 answers

Component TSomething can't be registered by package something_design.bpl because it has already been registered by package something_design.bpl.?

One of the dread errors with design-time packages in Delphi, which means packages that register install new components onto your Palette, is this error: Component TSomething can't be registered by package something_design.bpl because it has …
Warren P
  • 65,725
  • 40
  • 181
  • 316
3
votes
0 answers

How Enter key behaves for a textbox in the IWindowsFormsEditorService.DropDownControl(userControl)

I have a custom control with a property Value. The property grid displays the editor in the dropdown style, using the IWindowsFormsEditorService.DropDownControl(userControl) method within the MyUITypeEditor.EditValue(...). The drop down editor has…
dattebayo
  • 2,012
  • 4
  • 30
  • 40
3
votes
1 answer

Accessing assemblies at design time in Blend 4

I am getting an exception from my code while designing in Blend 4. I have narrowed the issue down to loading a specific library. Other libraries can be loaded fine, just this one fails. So, for this code: var a = Assembly.Load("lib1"); var b =…
oillio
  • 4,748
  • 5
  • 31
  • 37
3
votes
1 answer

WPF: Design time support for dependency properties with default values

I have written a custom control based on a ListBox. It contains a default ItemTemplate which shows an image given to the ListBox by a custom dependency property. The control also contains a default image, which is used when the user doesn't give an…
Nostromo
  • 1,177
  • 10
  • 28
3
votes
2 answers

Dragging and dropping controls onto a custom user control become hidden

I created a custom UserControl, where I support dragging and dropping of controls at design time. My controls are dropped into my user control correctly, however they are hidden once dropped onto the user control. To get the added control to become…
Elan
  • 6,084
  • 12
  • 64
  • 84
3
votes
0 answers

Jetbrains Rider WPF Design Time Data

I'm working at a WPF Project and want to use Rider. I recognized that the preview in Rider dosen't support Design Time Preview. Everything having a d: infront will be completley ignored by the Preview. I tried it on diffrent Computers, Versions and…
Griizz
  • 155
  • 1
  • 12
3
votes
0 answers

How to add icons to the standard Collection Editor?

I have a custom control which utilizes TCollection and TCollectionItem. In the collection editor, I would like to add icons to each list item, which is sourced by an internal TImageList (inside its parent component). The collection items themselves…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
3
votes
0 answers

How can I provide summary XML Code documentation within the XAML Editor?

I have created a set of converter classes (IValueConverter) which can be used in XAML code of WPF application. All classes are documented fully with XML code documentations: summary of the class and its both convert methods including the…
rittergig
  • 715
  • 1
  • 5
  • 16
3
votes
1 answer

Why isn't my WPF control's code-behind running at design time?

I have some code in my WPF UserControl constructor but it doesn't seem to be executed at design time. I'm sure that code behind is supposed to run at design time, and there is plenty of sample code on StackOverflow showing people using design time…
Jack Ukleja
  • 13,061
  • 11
  • 72
  • 113