Questions tagged [objectdataprovider]

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

Important links

89 questions
0
votes
1 answer

WPF - Adding a ObjectDataProvider breaks my designer

Perhaps i'm not using the ObjectDataProvider correctly, but im following the MSDN examples so im not sure whats going wrong. Goal: When i click a button, it will close the window by calling a method "exitButtonMethod" which simple does…
shawn a
  • 799
  • 3
  • 13
  • 21
0
votes
1 answer

Modify ObjectDataProvider

I have an application where I am using a ObjectDataProvider (App.xaml):
Juan Alberto
  • 165
  • 3
  • 18
0
votes
1 answer

WPF Pass MenuItem selected as MethodParameter to ObjectDataProvider

I am trying to pass Selected MenuItem's Text/Header string as the MethodParameter to my ObjectDataProvider. I have seen examples like these on the internet but haven't been able to adapt it to the Menu Control specifically. I am new to WPF and need…
Shravan
  • 1
  • 1
0
votes
1 answer

WPF time dropdown box with objectdataprovider

I'm trying to implement a user control for choosing time with 3 comboboxes - one for hours, second for minutes and third for seconds. Hours' combobox has numbers from 0 to 23 to choose from Minutes' and seconds' combobox has numbers 0 to 59 to…
Mirek
  • 4,013
  • 2
  • 32
  • 47
0
votes
0 answers

How to call a method from main window class that doesn't determined in it?

I've got a method in MainWindow class. I need to call a method that is situating in it. The other class is using for datagrid binding so I dont know its name. I've got http://www.codeproject.com/KB/WPF/WPFDataGridExamples/classdiagram_small.png…
NDGO
  • 51
  • 1
  • 1
  • 8
0
votes
1 answer

How to make datagrid display not all columns of returned dataset using objectdataprovider?

What code can I add to make datagrid display not all columns(e.g. 2 of all) of returned dataset DefaultView using objectdataprovider? I used this tutorial to write this working code. Here are woking XAML code:
NDGO
  • 51
  • 1
  • 1
  • 8
0
votes
1 answer

Problem with DataTemplate and ObjectDataProvider refresh

I have a problem with a edit templete of cell in a WPF datagrid (WPF Toolkit). The template is builded with a ComboBox and the ItemsSource of ComboBox are loaded at runtime. This is the mean code...
Luca Petrini
  • 1,695
  • 2
  • 28
  • 53
0
votes
1 answer

WPF ObjectDataProvider that supports linq filtering?

Is there an WPF ObjectDataProvider that supports "Where" I mean like in asp.net there is an option to have a dataprovider that supports defining the results? What I actually need is two ComboBoxes that when I choose a value in the first it limits…
0
votes
2 answers

WPF: Binding with nonstatic parameter? (newbie question)

This will probably be obvious but I can't find the best way. I want to show the user's ToDo's in a listbox. These ToDo's are in the database and consist of an Id, UserId and Description. The user logged in to the app. How can I retrieve the ToDo's…
Thomas Stock
  • 10,927
  • 14
  • 62
  • 79
0
votes
2 answers

WPF Binding to method of a collection element

Im searching for the best practice (or any working solution) for the following scenario: I have an Employee class: public class Employee { public string DisplayName { get; set; } // It is important that this method has a parameter …
user162614
0
votes
0 answers

visual studio data provider error

whenever I click on my database .dbml file in visual studio2010 ultimate, I get the error - visual studio has encountered an unexpected error - does anyone know what could be causing this. the same project works well on a different machine. I…
Andris Mudiayi
  • 459
  • 2
  • 6
  • 21
0
votes
1 answer

WPF -- How to bubble up event from Collection class to main Window

I'm using an ObjectDataProvider to call a class of with IObservableCollection:
LorenT
0
votes
1 answer

WPF ObjectDataProvider and ComboBox

I've been online for days trying to figure this one out and, while I've gotten a lot of insight into what and how ObjectDataProviders work, I am still unable to solve this one... I am trying to us an ObjectDataProvider to access a method in my…
dastokesh
  • 3
  • 3
0
votes
1 answer

Get Data from ObjectDataProvider when combo box opens

How do I go about getting an ObjectDataProvider to get triggered each time a combo box is expanded instead of just one time?
Jake Pearson
  • 27,069
  • 12
  • 75
  • 95
1 2 3 4 5
6