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…
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…
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…
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…
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:
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...
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…
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…
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
…
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…
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…