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. …
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…
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…
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:
My transactionProducts is a public ObservableCollection> transactionProducts { get; set; } = new ObservableCollection> { };
And My window xaml looks like this:
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…
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…
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…
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…
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…
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:
…
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…