Questions tagged [design-data]

15 questions
10
votes
2 answers

Using WPF design data with the MVVM pattern

I'm using the MVVM pattern in our WPF application to allow for comprehensive unit testing. The MVVM pattern itself is working great, however I'm struggling to adapt the pattern in a way that means I can use the design-time data support of WPF. As…
Justin
  • 84,773
  • 49
  • 224
  • 367
6
votes
1 answer

Binding to design data in WPF

I have a WPF window containing a ListBox. The ItemsSource is bound to a property of a view model.
user1190707
4
votes
0 answers

How to generate DesignData for a CollectionView?

I have a DataGrid in xaml that takes its data from a ListCollectionView coming from the ViewModel. How can I create a DesignData file that fills the ListCollectionView? As the ListCollectionView constructor has one parameter (the list) I don't know…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
2
votes
0 answers

Using DesignData in WPF without including it into build

I have some Design time view models bound to d:DataContext like this:
Adassko
  • 5,201
  • 20
  • 37
1
vote
1 answer

Will removing unused columns make postgres queries faster?

I have a table that contains both metadata about the row as well as some numeric information. The metadata is much bigger (URLs and free text versus just a few numbers for the other part). Most of my queries ignore the metadata, e.g. they are just…
Xodarap
  • 11,581
  • 11
  • 56
  • 94
1
vote
1 answer

Design Mode Error "Object does not match target type" for Loaded Page Resource

I am currently attempting to mock up data for my view by utilizing Design Data for my ViewModel. Specifically, I have a View front end, and a ViewModel backend for my silverlight application. When I have mocked up other views, things have worked…
Aerophilic
  • 885
  • 2
  • 9
  • 22
0
votes
1 answer

Issue with getting designdata to show up in designer preview

I'm trying to get design data to show up in my designer preview. The UserControl works fine when I run the program; however I can't get the designer to populate with values. First off, my UserControl named SignalStrengthControl
user2619824
  • 478
  • 1
  • 5
  • 20
0
votes
0 answers

Dependency Property design data

I have a UserControl that has an ObservableCollection dependency property with a property changed callback. The callback rebuilds the nodes in a TreeView control. This all works fine but I would like to be able to have design data. Unfortunately,…
Geoff Scott
  • 897
  • 1
  • 10
  • 17
0
votes
1 answer

Xcode design data

Can I add to my interface builder design data that appears only in design mode? For example - add text to labels, items to a list view, pictures inside imageviews, etc., all in design mode while using Xcode. However, in runtime, none of it will…
Rom Shiri
  • 1,390
  • 4
  • 16
  • 29
0
votes
1 answer

Using DesignData in Windows Universal Collection

I'm struggling with DesignData in what should be a very simple case. I've defined the following trivial control in a Windows Universal Project
jbhelicon
  • 93
  • 9
0
votes
1 answer

How to specify the SelectedItem element in a combobox using DesignData?

I'm doing an application in WPF and I'm using DesignData to speed up the UI creation process as starting the application is a slow process. I cannot find a way to set the SelectedItem of a combobox with the designdata. Check the following…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
0
votes
1 answer

How to bind DesignData to Single Property

I am trying to bind my design data to a single property (Margin) in a Grid. I do not want to overwrite the data context for the grid as a whole (which is also using design data.
Goose
  • 1,307
  • 2
  • 14
  • 28
0
votes
1 answer

XAML Design Data and StaticResources / CollectionViews

I've been using design time XAML data for a few weeks now and it seems to work fine except for some cases such as the current one where I want a listbox to display items based on a collection view declared as a resource. Basically I want to display…
nrjohnstone
  • 778
  • 10
  • 17
0
votes
1 answer

d:DesignData FileNotFoundException

I try to use DesignData to populate a ItemsControl in Design Time. The content of the file /DesignData/SampleAlerts.xaml is:
-1
votes
2 answers

ReadOnlyObservableCollection in WPF Design time data

I have a ViewModel that has a property which is a ReadOnlyObservableCollection. Defined something like this: public class MyViewModel { private ObservableCollection myProtectedCollection; public ReadOnlyObservableCollection
Martin Brown
  • 24,692
  • 14
  • 77
  • 122