A DataContext is used in WPF, Silverlight and various other .NET technologies.
I just started learning MVVM and here is what seems to be basic question but I spent whole day trying …
c# wpf mvvm data-binding datacontextThere seem to be two main ways to define DataContext in WPF: either in code like this: App.xaml.cs (…
wpf xaml data-binding expression-blend datacontextThe context objects generated by Entity Framework are not thread-safe. What if I use two separate entity contexts, one for …
c# concurrency entity-framework-4 thread-safety datacontextCan I update my employee record as given in the function below or do I have to make a query …
c# asp.net linq linq-to-sql datacontextI'm trying to create an application using the MVVM pattern with nested viewmodels. The master viewmodel is ShellView which contains …
wpf xaml data-binding datacontextI need to access the container's DataContext from a UserControl (a grid containing textboxes and a listbox: I need to …
wpf user-controls datacontextI'm learning WPF and the MVVM Pattern and I'm trying to build a calendar-like view. So I currently have a …
wpf xaml datacontext contentpresenterI want to reuse my UserControls in other UserControls like page or window as DataTemplates, in this example inside a …
binding mvvm user-controls listbox datacontextI have the following property Temp2: (my UserControl implements INotifyPropertyChanged) ObservableCollection<Person> _Temp2; public ObservableCollection<Person> …
c# datacontext inotifypropertychanged itemssourceI am often comparing data in tables in different databases. These databases do not have the same schema. In TSQL, …
c# linq linq-to-sql datacontext linqpad