Questions tagged [objectdataprovider]

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

Important links

89 questions
0
votes
0 answers

WPF XAML x:Type is underlined and states "MyColor" does not exist in the namespace .... Why?

I'm trying to display on a DataGrid a ObservableCollection. For each item in the ObservableCollection, I have a ComboBox that displays the currently selected item (MyColor in my example) and lets the user choose a different color from the combobox. …
Dave
  • 8,095
  • 14
  • 56
  • 99
0
votes
1 answer

WPF binding to result of method with parameter for listview column

I am using C#, WPF, .NET Standard, Visual Studio. All the latest or almost latest versions. This is my datacontext model (which is created in seperated library called ProgrammingManagerAPI): public class MainModel { public List Projects…
ninidow359
  • 19
  • 6
0
votes
0 answers

Where to add ObjectDataProvider in Application.Resources with ResourceDictionary

I followed this Tutorial and got stuck on the Create Instance of Config Settings Class-part. Here they just add the ObjectDataProvider in the Application.Resources. In my case there is already a ResourceDictionary in this context and I think this…
Berger
  • 299
  • 3
  • 13
0
votes
1 answer

C# WPF binding to method with ObjectDataProvider

I have a strange behaviour using ObjectDataProvider. I need to bind a TextBlock with ToString method but, when I enter in method my properties are wrong. This is my simple ObjectDataProvider:
erikscandola
  • 2,854
  • 2
  • 17
  • 24
0
votes
1 answer

Pass Tuple to ObjectDataProvider parameters

My transactionProducts is a public ObservableCollection> transactionProducts { get; set; } = new ObservableCollection> { }; And My window xaml looks like this:
Rando Hinn
  • 1,255
  • 19
  • 41
0
votes
2 answers

Set ObjectDataProvider to be Property of the View

I am using the MVP pattern for my WPF application. I would like to set the ObjectDataProvider to be the Presenter object that I setting in the constructor of my View. I then would like to bind to my controls to properties of the Presenter. I have…
openshac
  • 4,966
  • 5
  • 46
  • 77
0
votes
1 answer

TreeView, ObjectDataProvider, HierarchicalDataTemplate, xsd2Code not showing anything

I have an object hierarchy created with xsd2code. The object hierarchy consist of a root object of type Project which contains an ObservableCollection of Folder named folder which is a recursive object containing ObservableCollection of Folder named…
0
votes
1 answer

How to refresh a DataGrid that has been populated by a DataProvider every 1min

I have the following xaml, as you can see the DataGrids are being populated via DataProviders.
Hank
  • 2,456
  • 3
  • 35
  • 83
0
votes
0 answers

The property was not found in ObjectdataProvider

This code works at runtime, and there are no errors when building the project. However, each time I modify the xaml code 'String46' is underlined with the…
luka
  • 605
  • 8
  • 15
0
votes
1 answer

ObjectDataProvider error finding prism classes and constructor parameters

Im trying to move the objects in my code-behind to my resources in XAML. I want to move these objects public partial class MainView : Window { public EventAggregator IEA; public OrderViewModel order { get; set; } public MenuViewModel…
Shawn Andrews
  • 1,432
  • 11
  • 24
0
votes
1 answer

WPF, calling method with parameters in XAML's class

I have an ObjectDataProvider in my XAML that references a method in my Window-deriving class. That is, I have NewForm.xaml.cs with class NewForm and the ObjectDataProvider in NewForm.xaml is referencing a method in NewForm. Currently, with the…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
0
votes
1 answer

Using ObjectDataProvider inside HierarchicalDataTemplate

I want to add items of my class treeviewitem to a TreeView. And I want to bind the ItemSource of this TreeViewItem to a method of itself ! I am trying to use the ObjectDataProvider for this.. See my XAML:
slaesh
  • 16,659
  • 6
  • 50
  • 52
0
votes
1 answer

How do I bind a Dataset to a Datagrid with an ObjectDataProvider?

i've got another binding problem. This time I wanted to rebuild the Master-Detail grid shown here: http://www.codeproject.com/Articles/30905/WPF-DataGrid-Practical-Examples#masterdetail But I got this Error: The name "AirplaneDataProvider" does not…
IronKalli
  • 51
  • 6
0
votes
1 answer

Bind the value of a parameter in an ObjectDataProvider in WPF

I would like to be able to be doing this :
Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
0
votes
1 answer

Is it possible to pass current DataContext as ContructorParameter of ObjectDataProvider?

It would be very useful to pass DataContext as parameter for DataTemplate:
keymusicman
  • 1,281
  • 1
  • 10
  • 20