Questions tagged [objectdataprovider]

provides data binding for XAML in Microsoft Windows Presentation Foundation (WPF) 4

Important links

89 questions
2
votes
4 answers

TreeView doesnt display Object Hierarchy

I am having some serious trouble creating a WPF TreeView with an Object databinding. The application is config file editor. I have defined an Object structure which can be serialized to the correct XML format. The problem I am having is formatting…
Karl
  • 659
  • 1
  • 10
  • 18
2
votes
0 answers

How to use ObjectDataProvider at design time?

I am using an ObjectDataProvider declared in the XAML as follows:
Teodor
  • 497
  • 1
  • 6
  • 20
2
votes
2 answers

Reference nested type in ObjectDataProvider markup

I'm trying to use a nested type in my ObjectDataSource a la this article. It doesn't seem to be working for me.
xanadont
  • 7,493
  • 6
  • 36
  • 49
2
votes
2 answers

Combobox ItemsSource through objectdataprovider by passing in a method parameter

I want to populate a combobox control items from an object data provider. The object data provider calls a method on my custom class to get the list of items. However the method on my custom class expects a parameter before it can return list of…
user1647697
  • 59
  • 1
  • 7
1
vote
2 answers

WPF ObjectDataProvider with static method GetPosition of Mouse

I am attempting to use an ObjectDataProvider to call the GetPositition method of Mouse, but am getting this error: System.Windows.Data Error: 34 : ObjectDataProvider: Failure trying to invoke method on type; Method='GetPosition'; Type='Mouse';…
Alex
  • 187
  • 1
  • 2
  • 7
1
vote
1 answer

Problems adding an ObjectDataProvider in resources

I'm setting up some things in XAML, but for some reason, I'm having an issue. I'm trying to add an ObjectDataProvider to my resources, but when I'm doing that, I get this warning on my resourcedictionnary saying i cannot have multiple items in a…
Terry
  • 5,132
  • 4
  • 33
  • 66
1
vote
4 answers

Text File DataProvider in .NET

I want to read/write my entities in flat text file, and due to huge amount of data, Serlization/Deserialization is not proper solution. Is there any data provider to work with text file data source (like csv,...)?
Amir Pournasserian
  • 1,600
  • 5
  • 22
  • 46
1
vote
1 answer

Different filtered dataProviders for the same data?

I have several lookup tables, some of which refer to or are relationships between others. For instance, I have membership type included inventory which has Membership ID and Inventory Type ID and is the amount of each Inventory Type that one gets…
1
vote
1 answer

wpf ObjectDataProvider method parameter bind to combobox selected value

I'm dealing with a problem in WPF binding. I'm creating a user control which present a datagrid, fiiltered by 2 possible values. The first value is set by a textbox, the second one by a combo box. I'm using an ObjectDataProvider to map a methos with…
themarcuz
  • 2,573
  • 6
  • 36
  • 53
1
vote
0 answers

Object as Constructor Parameter to DataContext in XAML

I have a XAML Windows class
ABC DEF
  • 189
  • 2
  • 14
1
vote
1 answer

WPF Data binding: CollectionViewSource and ObjectDataProvider issue

I have a MainWindow.xaml file:
Boris
  • 9,986
  • 34
  • 110
  • 147
1
vote
1 answer

ObjectDataProvider in MVVM not necessary?

I have created a simple MVVM, with only three classes CashFlowView, CashFlowViewModel, CashFlowModel. I use an infragistic's 9.1 XamDataPresenter (or xamDataGrid).
Houman
  • 64,245
  • 87
  • 278
  • 460
1
vote
0 answers

How to create a generic comboBox in WPF Property grid C#

I am using property grid in a WPF project to display UI items. So basically, for properties of collection type, a comboBox is required. For this purpose I am using Extended PropertyValueEditor. The problem is that for each collection [say Languages…
1
vote
2 answers

Syntax for adding static resources to an ObjectDataProvider

I'm creating several static resources that I want to add to an ObjectDataProvider, but I can't figure out the syntax.
Ed Beaty
  • 415
  • 1
  • 6
  • 14
1
vote
1 answer

ObjectDataProvider in XAML with ObjectInstance doesn't call ViewModel Contructor in debug

We used to do this at my previous job and it worked perfect there, but for some reason I cannot get it to work now. I just want to use an ObjectDataProvider to create an instance of the ViewModel class in XAML so I can reference it for binding, and…
Seth Eden
  • 1,142
  • 2
  • 20
  • 42