datatemplate
Templating ItemControl items without using ItemsSource
I am trying to build a custom Silverlight ItemsControl. I want the users of this control to add items using XAML. The items will be other UI elements. I would like to add a margin around all added ite[详细]
2023-04-08 00:32 分类:问答Overriding default template for specific nodes in a databound (XML/XPath) TreeView
TL;DR up front: I would like to use a \"default\" HierarchicalDataTemplate for all but a specific few nodes in a WPF TreeView. These nodes come from an XMLDocument and are not fully known until runtim[详细]
2023-04-07 23:09 分类:问答ContentControl two way binding within DataTemplate not working?
I\'ve setup a reusable datatemplate \"DataGridCheckBoxEdit\" for a datagrid column. Binding to it one way works like a charm through ContentControl. Binding directly works two way correctly. However,[详细]
2023-04-07 17:13 分类:问答Animation when changing ContentTemplate
I have a window where different controls had to be displayed over time. I searched for a solution with using the mvvm pattern and ended up with this[详细]
2023-04-07 05:04 分类:问答Implement DataTemplate DependencyProperty in UserControl
I\'m trying to make an intertia touch scrolling list in a UserControl in Silverlight 4 using Expression Blend 4. I\'ve already made the dependency properties in my UserControl which i want to work lik[详细]
2023-04-07 04:37 分类:问答How to define implicit data templates in Metro XAML?
I am trying to create a DataTemplate for mapping a simple data type with a corresponding view as follows:[详细]
2023-04-07 02:04 分类:问答Silverlight Binding To A User Control Within A DataTemplate
In开发者_如何学JAVA Silverlight, I have a DataTemplate which is bound to an object which contains a property which holds a UserControl.[详细]
2023-04-06 11:26 分类:问答Data bindings in Data Template not working
I have UserControl to do filtering for several presentations, which in turn has a ContentControl. The content are the individual filtering controls that vary among the presentations.[详细]
2023-04-06 04:49 分类:问答Combobox ItemTemplate and foreground
I have a comboBox that is bound to a list of strings from my viewModel.What I am trying to do is have the foreground of a comboBox item be set to a different color if a property in my viewModel is tru[详细]
2023-04-05 15:56 分类:问答Using a resource and DataTemplateSelector from a different assembly
I have a control in a base assembly with Content that I would like to set based on the current DataContext.[详细]
2023-04-05 11:48 分类:问答