Tagged Questions

A DataContext is used in WPF, Silverlight and various other .NET technologies. When used with WPF or Silverlight, a DataContext is an object holding the data that the form (or page in case of Silverlight) uses as a display source for its UI elements.

I am trying to dynamically create a Context Menu for a data grid that passes in the selected menu item (Mvvm). I want the DataContext to be the same for the for the context menu as the grid.
I have ...

I am developing ASP.Net web application with linq to sql DataContext.
The problem when the database dealing with big data. Query execution take long time. my problem similar to this thread.
LINQ to ...

Just starting with Meteor, and going through the Meteor Tutorial by Matthew Platts.
In this tutorial, as well as in the official Meteor Documentation, there are many references to the concept of data ...

I have never used Linq-to-Sql before in an application but I used LinqPad to develop a query and just wanted to paste it into into my code.
It's not so simple. I guessed that I need a DataContext to ...

I am trying to learn WPF and binding but don't seem to be able to understand what is going on. I have copied a code sample using a combobox and have been trying modifying it to see what happens. The ...

I an having connection pool issues (reaching maximium pool size). The application uses Linq2SQL in most cases with some legacy function still using SqlConnection
All my Link2SQL sections have these ...

This question is related to MVVM project structure.
For displaying data in a ListView I use a DataTemplate. The ItemsSource for the ListView is an ObservableCollection(of Person). Nothing special so ...

I'm creating a mobile web using Xamarin with Visual Studio.
I've created a database context file using sqlmetal.
Now when I try to instantiate a database context (to be able to use LINQ), I'm doing ...

I have been trying to find a way to have command buttons within my ListBoxItem's of a ListBox control. I use MVVM and Command Binding to the DataContext via ICommand interface. I am unable to find a ...

I'm developing a WPF application using the MVVM design pattern.
My plan is to bind the datacontext of a UserControl's main Grid a to a certain ViewModel, this way all the items inside that Grid should ...

i'm developing a WPF application with MVVM.
At the XAML code i have a Grid with its DataContext pointing to a ViewModel, and i need to know if it is possible to change the DataContext at runtime to ...

I've searched a lot for an answer for this question, but couldn't quite find an answer.
I have my main Window and 4 different UserControls. The Window is constructed from all 4 UserControls.
I have ...

In VB.net, I am looking to determine the underlying database table name from a RunTime type Linq query row. I am trying to create a generic routine for deleting rows in ListBoxes, whose object values ...

I have three methods in my datacontext class which all call slightly different stored procedures having different behaviours; APPEND, UPDATE, OVERWRITE. However all three methods have in essence the ...

I am populating an ItemsControl with various elements, including Buttons and ComboBox elements. Accessing and populating the elements is simple, but I'm stuck on how to detect and associate which Item ...

I have a ViewModel that is a Window, inside this Window there are many UserControls that I have made. These work fine and the bindings and DataContexts for each is set appropriately; all apart from ...

I started getting this error once we enabled MSDTC on our application and database server.This error is inconsistent and whenever it happens it may continue for few mins.
In one example this has been ...