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

How to properly publish an event executed from the 'Loaded' procedure?

In a runtime only package, I've defined a TFrame descendant which publishes the OnLoaded event: type TMyMethod = procedure() of object; TMyFrame = class(TFrame) protected FOnLoaded : TMyMethod; procedure Loaded(); override; …
Fabrizio
  • 7,603
  • 6
  • 44
  • 104
3
votes
0 answers

Why is WPF/XAML adding 3 "Mocks" objects to my IEnumerable collection in my ViewModel?

I have a property defined in my ViewModel as such: public IEnumerable CurrentFilterStates { get; private set; } That I want to display in my view. I've done the binding to a Label and provided a converter: XAML:
Brandon
  • 4,491
  • 6
  • 38
  • 59
3
votes
1 answer

.Net DataSet not suitable for design time

I wrote a custom DataSet (based on strongly-typed DataSet, the further I see) and I want to make it suitable to be used on design-time, things like be dragged from ToolBox (generated automatically as a DataSet tool). All of this it's happening…
Pedro Mora
  • 95
  • 9
3
votes
4 answers

WPF get Type in Design time?

Well i have a control that inherits usercontrol(view) and im using it as you use a usercontrol (a base control) now here is the problem if i do MessageBox.Show(this.GetType().ToString()); i get different messages in runtime and design time, in…
Peter
  • 37,042
  • 39
  • 142
  • 198
3
votes
0 answers

What is the difference between d:Source and d:DesignSource?

There are two design-time attributes - d:Source and d:DesignSource. It seems both could be used for design data specification for CollectionViewSource:
Sevenate
  • 6,221
  • 3
  • 49
  • 75
3
votes
1 answer

How to know active control within XAML designer?

How to know, during design-time, which control is active / focused by the user in a custom items control, so as to show the rendering for that selected item? I'm after functionality similar to TabControl: The difference in my control is that it…
Mike Guthrie
  • 4,029
  • 2
  • 25
  • 48
3
votes
1 answer

How to get a list of all components on the Form at Design-Time?

I need to get a list of all components on the Form at Design-Time (not controls, just components). The components must also be visible on the Form as a 24x24 image at Design-Time. I could use code like this procedure TForm2.GetComponentList(Memo1:…
DmitryB
  • 455
  • 1
  • 5
  • 18
3
votes
7 answers

Run time vs design time

I read somewhere that somebody could access a config value during run time but not during design time. Whats the difference between run time and design time in this context?
Ivo
  • 3,406
  • 4
  • 33
  • 56
3
votes
2 answers

Control's Enabled appearance at design time?

I defined a custom button class, which sets background color when button is enabled/disabled. Enabled appearance at runtime (A): Disabled appearance at runtime (B): Design time appearance is always (A), regardless of the value of Enabled…
Victor Zakharov
  • 25,801
  • 18
  • 85
  • 151
3
votes
0 answers

How to react to selection in designer at design time?

I built a WPF custom control which derived from HeaderedItemsControl and whose items are hidden by default (they become visible when the user clicks the header). I want to add design time support for this control similar to the Expander control. By…
feO2x
  • 5,358
  • 2
  • 37
  • 46
3
votes
1 answer

Silverlight/WPF and Blend: DataBind a text field, but define a design-time value?

Hopefully this is simple - I DataBind a bunch of labels and text controls in a Silverlight application (to DependencyProperties that I create in my class), but of course the text is empty at design time. I'd still like to have an idea of how this…
Brandon
  • 13,956
  • 16
  • 72
  • 114
3
votes
0 answers

Prevent adding controls from toolbox to a UserControl at Design Time

I'm trying to create a user control that inherits of Panel. It has to be like a header, i'll draw border and text etc. But the sole purpose of creating it is, that i want that during design time, if I drag a control on it I get the "No" /…
3
votes
1 answer

Detect design time in NetBeans

When using the Swing graphical editor in NetBeans is it possible for a custom component to detect that it's design time? E.g. public CustomComponent() { initComponents(); if (!isDesignTime()) { someIcon =…
Luke Quinane
  • 16,447
  • 13
  • 69
  • 88
3
votes
1 answer

Visual Studio design time event handling

I am trying to create a WPF wizard control in visual studio. I am successful except I would like to navigate the pages in design time by clicking the next and previous buttons. The pages are being written in xaml. I can navigate the pages by going…
Jose
  • 10,891
  • 19
  • 67
  • 89
3
votes
2 answers

Localization Windows Phone: Is is possible to change the localized resource at design time?

I created a few resource files for different languages. (E.g. resource.resx, resource.nl-NL.resx etc) At this moment I only can see the result with the phone emulator. (By changing the language setting in the phone emulator) For the design phase I…
Tim
  • 939
  • 1
  • 7
  • 13