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

How to display Image with design-time Source in Expression Blend

I have an Image down some controls in a XAML visual tree. I would like to display a design-time image, so that I can check layout, dimensions, etc. Something equivalent to this:
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
5
votes
2 answers

Visual Studio Design Time Property - Form List Drop Down

[EDIT] To be clear, I know how to get a list of forms via reflection. I'm more concerned with the design time property grid. I have a user control with a public property of the type Form. I want to be able to select a form at design time from a…
Dustin Brooks
  • 2,544
  • 3
  • 23
  • 33
5
votes
3 answers

Using Moq at Blend design time

This might be a bit out there, but suppose I want to use Moq in a ViewModel to create some design time data, like so: public class SomeViewModel { public SomeViewModel(ISomeDependency dependency) { if (IsInDesignMode) { …
adrian h.
  • 2,996
  • 3
  • 18
  • 24
5
votes
10 answers

How to get the project path at Design Time

I use a component (System.ComponentModel.Component) and I want to get the application path of my project in order to create a file within it. Thx Florian
Florian
  • 51
  • 1
  • 2
5
votes
2 answers

Summary of WPF designer limitations and rules for WYSIWYG view creation?

For WPF/Silverlight/XAML4Win8/WP8/whathaveyou, the visuals are created by (I believe) newing up an instance of the base class that your custom view (window/page/usercontrol/whathaveyou) is derived from, and then applying your XAML after the fact. …
Firoso
  • 6,647
  • 10
  • 45
  • 91
5
votes
1 answer

What code is executed as part of the XAML design time? In Visual Studio and Blend

As some background, I'm playing around with a Windows Store App and Windows Phone 8 application sharing a single ViewModel (PCL). I'm using MVVMLight and NInject / Common Service Locator to instantiate view models and services. Which is great and…
5
votes
2 answers

Design-Time drag and drop

I'm currently working of a project where my part is to design a Design Surface where the end user can add/remove/move controls at run-time. I followed this tutorial "Hosting Windows Forms Designers, by Tim Dawson", and almost have implemented all…
Clement Herreman
  • 10,274
  • 4
  • 35
  • 57
5
votes
1 answer

Design-time editor support for controls collection

I'd like to add a property which represents a collection of controls to a component and have a collection editor with which I can easily select the controls that belong to the collection. VS does almost what I want automatically with the following…
Tom Juergens
  • 4,492
  • 3
  • 35
  • 32
4
votes
2 answers

What is the correct way to limit the range of values a property will accept?

I have a user control with some public properties. A particular property is an integer, but must only accept positive values that are less than a const max value. At present I do the following: private int markerwidth = 2; [DefaultValue(2),…
Tom Wright
  • 11,278
  • 15
  • 74
  • 148
4
votes
2 answers

Why I got another size of a component in IDE?

Using Delphi 6 Prof. I created a bevel component for separation. Because I used spacers with 8 pixel (width x height) I thought that I create this component, and when I put it on a Form, I need only to set Align - and that's all. type TSSpacer =…
durumdara
  • 3,411
  • 4
  • 43
  • 71
4
votes
1 answer

Creating a custom design-time collection editor in WPF

I want to have a custom collection editor dialog in WPF (to edit a collection property on a custom control at design time) preferably by extending the exiting one , but I cannot find the existing one anywhere ... I am looking for advanced…
4
votes
1 answer

How do I debug a designtime package unloading crash involving a crash in ThreadProc in Classes.pas?

I am not sure how to track down the following crash: It happens when Unloading a Designtime Package that is used in-house at my company. It is our code, thus it is our bug to fix, not a third party component vendor problem. It apppears that a…
Warren P
  • 65,725
  • 40
  • 181
  • 316
4
votes
1 answer

Designing in MAUI - Design-time BindingContext

In WPF, I used the normal combination of: xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" d:DataContext="{d:DesignData...}" To allow a design-time DataContext to be…
AJ.
  • 1,621
  • 1
  • 10
  • 23
4
votes
3 answers

How can I add single-character items to a list in design-time?

I've got a VB6 form with a ComboBox on it, which I'm trying to add a few single-character items to (specifically, 'A' through 'D'.) I can enter them into the properties box (using Ctrl-Enter to add new lines) and I get a box that looks like…
dlras2
  • 8,416
  • 7
  • 51
  • 90
4
votes
1 answer

Using “tools” namespace to preview data on a WebView and ViewPager

In Android Studio, if you want to add some data in layout preview, you can simply use tools namespace. It was quite simple for TextView, ImageView and so on. What about a WebView? Is it possible to show an URL (local) in design time? And what about…