[Original] I have a ListBox which has its ItemsSource (this is done in the code behind on as the window is created) databound to an ObservableCollection. The ListBox then has the following DataTemplat
what is the difference, both works: DataGridTemplateColumn versus DataGridTextColumn both works means I can edit+display rich text in the cell.
I am using Silverlight 3 to develop an application. In my app, I have a layout Grid (named \"LayoutGrid\") in which I have a DataGrid (named \"PART_datagrid\") with DataGridTemplateColumns. The Layout
I have a DataTemplate defined as follows: I am accessing it at runtime using the code below: else { template = (DataTemplate)FindResource(\"GridViewTextBlockDataTemplate\");
<local:CustomDataGrid Grid.Row=\"0\"Height=\"200\" IsReadOnly=\"True\"x:Name=\"dgCaseHistory\" AutoGenerateColumns=\"False\">
I\'m trying to follow the MVVM pattern laid out here: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx#id0090097 I have this in my MainWindowResources.xaml file:
I have a ViewModel (AbstractContextMenu) that represents my context menu (IContextMenu), and I bind a real ContextMenu to it with a DataTemplate:
I have seen solutions to a very similar issue, yet it doesn\'t translate to mine.(Namely, this article: http://blogs.msdn.com/wpfsdk/archive/2007/04/16/how-do-i-programmatically-interact-with-template
I\'m currently creating a control that is mainly just an ItemsControl displaying some items. In addition I have some controls which allows the user to filter the items in that ItemsControl.
In my application using DataTemplate mechanism I insert into ListBox item another listbox. But is it possible that when selected one listboxitem in parent listbox, the focus may be on another parent l