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

How do Grid.Row and similar properties get such great DESIGN TIME support?

The Question: By themselves, properties like Grid.Row, Grid.Column, Canvas.SetTop, etc. have great DesignTime support. You attach them to a child element, and watch the xaml update. How does their implementation differ from my example below? The…
bwall
  • 984
  • 8
  • 22
4
votes
1 answer

CustomButton_123509716 targetType does not match type of element CustomButton_096728

I recently switched to Visual Studio 2017, and my xaml design time view has suffered considerably. The most recent challenge is a design time-only bug where my components won't show up because their style_1093579 doesn't match style_0965327, but…
bwall
  • 984
  • 8
  • 22
4
votes
3 answers

Why isn't my revised .NET Windows Form not showing new changes after running the program again?

In my desktop application, previously I have designed the form and ten execute it but then I went for slight changes in my form.But even after changing, while I run the program now the previously created form is getting displayed. What might be the…
Srivastava
  • 3,500
  • 12
  • 46
  • 74
4
votes
2 answers

Can't edit Point[] or List at design time

I'm creating custom control that will draw shape from list (or array) of points. I have basic drawing functionality done, but now I'm struggling with design-time support in Visual Studio. I've created two properties: private Point _point; public…
Misiu
  • 4,738
  • 21
  • 94
  • 198
4
votes
2 answers

Design-Time Population of ListBox with Sample Data in WPF

I have a view (usercontrol) that contains a listbox. At runtime the listbox will be populated with instances of another view (also a usercontrol). How can I populate the listbox in design-time (in Blend and Cider) with sample views that are…
Omer Mor
  • 5,216
  • 2
  • 34
  • 39
4
votes
1 answer

How to proportionally resize a control with the mouse within WinForm's control designer?

I was trying to resize a control with the mouse, holding down Left-button + Shift, hoping that both width and height would be adjusted proportionally (like in Photoshop). Didn't work. I Googled to find out how to do that, sure enough that I'd have…
Crono
  • 10,211
  • 6
  • 43
  • 75
4
votes
2 answers

WPF custom window does not apply its generic template at design time

I have created a simple WPF custom control which inherits from Window, so that later I am able to override it's chrome and reuse it across my projects. The control is contained in its own project along with a generic.xaml file (in the Themes…
Ben
  • 41
  • 2
4
votes
3 answers

Is Enum the only way to show values for a Property as drop down list in the design time

I know when I use Enum and put it as Property for class/UserControl, it will show/display it with drop down list like this: But is this the only way to display available values like "drop down list"? Do we have other ways to do it? Edit: The scope…
4
votes
2 answers

Can't databind at design time in WPF using MVVM - ViewModel property never gets called

Ok, I'm pulling my hair out over this, so any help will be hugely appreciated! I'm building a WPF application using the MVVM pattern. In an attempt to get data in at design time I am using the Ninject dependency injection framework in conjunction…
randomsequence
  • 1,338
  • 1
  • 11
  • 14
4
votes
1 answer

Design-Time Redraw

I created a custom listview control. I set it to add a new button every time I add a new Column. When I run the program containing my custom control, the column buttons are placed properly. However, at design time, when I add or remove columns, the…
rusoaica
  • 49
  • 1
4
votes
1 answer

How is an assembly resolved at design time?

I have an extensibility library (or the start of one), with a UITypeEditor. I'd now like to decorate the property with the EditorAttribute. I don't want to reference the extensibility library, as it does not need to be deployed, so I'm using…
Greg McGuffey
  • 3,116
  • 3
  • 38
  • 58
4
votes
1 answer

How can I make a component disappear in the form designer?

I'm creating a custom control that contains other controls, including two scroll bars, one horizontal, one vertical. There's a property to set one or both scroll bars invisible, which works fine at runtime, but at design-time it doesn't disappear…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
4
votes
2 answers

WPF Popup permanently displays in Visual Studio design-time

I’ve met strange behaviour for WPF design-time in Visual Studio 2010: after an instance of the Popup class was created, and I switched the code tab in Visual Studio to a different file, the Popup still remains on the screen! I have a piece of code,…
infografnet
  • 3,749
  • 1
  • 35
  • 35
4
votes
3 answers

Clear InnerList elements of a custom control property after delete custom control from a form in Design Mode

I add my created custom control to the new Windows Form and add some Tab to it by "Tabs" property. However, when I delete my custom control from Windows Form, elements of "Tabs" property are not removed. Please see below figures for more…
MRS1367
  • 1,053
  • 1
  • 14
  • 40
4
votes
2 answers

How do I open a WPF menu at design-time?

I'm styling a menu in WPF and would like to see how it looks, without having to launch the application to open the menu. Is there a way to keep the menu open (so I can see the menu items) at design-time, so I can see the changes as I go? I currently…
Marcus L
  • 4,030
  • 6
  • 34
  • 42