Questions tagged [design-time-data]

41 questions
16
votes
4 answers

DesignInstance not working in VS2012

I just spent several hours on an issue when using VS2012, WPF 4.5 and design-time data, specifically the DesignInstance attribute. Goal: I wanted to have design-time data support in my WPF project (MVVM-based), both in VS2012 and Blend, and I could…
Thomas
  • 558
  • 4
  • 14
10
votes
1 answer

UWP X:Bind and Design Time Data

is it possible to use x:bind and design time data in uwp apps? e.g if I had a textbox that used x:bind to bind to a property on viewmodel in the code behind, should that property's value appear in the textbox in the designer? is there a way of…
Johnny Spittle
  • 297
  • 1
  • 9
6
votes
0 answers

How to have design time support for nested view models in Caliburn Micro?

Using VS2013 and Caliburn.Micro 2.0.2 Given this example of: a shell view model that has a nested view model property, and both the shell and nested view models having a Name property: It seems that during design time the nested view model…
5
votes
1 answer

Design Time Data From External XML Files

Does Visual Studio 2010 Visual Designer allow loading of data via external XML files during design time? It appears that I can add it via d:DataContext, but I have a lot of data and it is easier to load it via XML. So is this possible?
kevindaub
  • 3,293
  • 6
  • 35
  • 46
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
0 answers

Visual Studio 2013 design-time xml data isn't displayed

This exact same code displays correctly in the Visual Studio 2010 WPF designer but it doesn't work in the VS 2013 designer.
3
votes
0 answers

UserControl with Design Time Data, but data not rendered when control used

Hi I have a simple user control with some Blend generated design time data:
Paul
  • 815
  • 1
  • 13
  • 23
3
votes
0 answers

Using an F# ViewModel as designinstance in blend

I have some viewmodels that I've created in F# and would like to use them for designtime data within Blend but I can't figure out how to get this to work. I have a simple xaml file with some bindings setup as follows:
Andy B
  • 541
  • 2
  • 13
3
votes
1 answer

Passing an object to a collection editor

I'm trying to build a check list for a ToolStripMenuItem that automatically handles the checking and unchecking of an item and then I provide an event to the programmer allowing them to handle what happens next. If something like this already…
2
votes
1 answer

DesignInstance working in VS2010, but not in Blend5

I cannot get Blend(v5) to work correctly with my DesignInstance. I have a simple project with.. MainPage.xaml
Sam
  • 535
  • 5
  • 14
2
votes
2 answers

Problem with design time data in WPF

Hi I try use my first design time data in wpf. I use tutorial from:…
user572844
2
votes
2 answers

Catel PersonApplication example

Currently studying Catel. In the PersonApplication of the Catel.Examples - specifically, the PersonWindow.xaml: the design time data is not being shown within the Visual Studio Designer. In the code of the PersonViewModel, the public properties are…
2
votes
0 answers

Asynchronous MVVM and design-time data

Today, I tried to implement View-Model asynchronously. I found this article. In that moment I thought that it is not so easy I imagined... I understand why it works. But unfortunately, it is impossible to use this code when I want to mock my…
pt12lol
  • 2,332
  • 1
  • 22
  • 48
2
votes
1 answer

Dispose for objects created by d:DesignInstance

Is there any way to dispose of objects that were created by the following markup...
NtscCobalt
  • 1,639
  • 2
  • 15
  • 31
1
vote
1 answer

Custom Winforms ComboBox, hardcoded items also get added via Design tool

Greetings Overflow users, I created a series of custom ComboBox controls, that should have hardcoded items at all times. The custom controls also have a GetEnum property, to return an Enum equivalent of the selected item. The simple example of…
1
2 3