No announcements
Found 44612 threads
-
0 Votes
DataTemplateSelector criterion versus DataTemplate DataContext
to. So whatever I bind Content to should be the criterion that I use to choose my DataTemplate in the SelectTemplate method. But... it also ...Answered | 3 Replies | 7144 Views | Created by buzzweetman - Friday, June 15, 2007 3:50 PM | Last reply by EternalCoder - Monday, April 26, 2010 11:32 PM -
0 Votes
WPF Bind DependencyProperty on DataTemplateSelector DataTemplate
}" means binding to the dataContext of itselft. And this dataContext is dependent on where this DataTemplate used to. For example, if you use thisAnswered | 1 Replies | 4902 Views | Created by Brian Us - Thursday, January 24, 2013 5:06 PM | Last reply by Lisa Zhu - Sunday, January 27, 2013 11:55 AM -
1 Votes
Change DataTemplate at runtime without using DataTemplateSelector?
Hi, I having been searching all over for information on how to change my DataTemplate from c# without using a ...Answered | 9 Replies | 10627 Views | Created by clintsinger - Friday, April 6, 2007 4:21 PM | Last reply by Jeristotle - Friday, February 15, 2008 2:18 AM -
0 Votes
How do you access a DataTemplate from within a DataTemplateSelector
Hi Bitrotor, You can expose properties of type DataTemplate for your DataTemplateSelector class. So you can assign the corresponding data templates to the ...Answered | 1 Replies | 2019 Views | Created by Bitrotor - Wednesday, April 11, 2012 2:58 AM | Last reply by Min Zhu - Wednesday, April 11, 2012 3:20 AM -
0 Votes
DataTemplate should not inherit DataContext
In WinRT XAML, DataTemplate inherits DataContext of templated control if Content is not specified. That's is quite opposite than what both WPF and Silverlight ...Answered | 5 Replies | 3356 Views | Created by ngmO11 - Monday, March 26, 2012 9:54 PM | Last reply by ngmO11 - Wednesday, April 4, 2012 10:24 PM -
0 Votes
RC0 problem - Binding to DataContext in DataTemplate
The problem occurs when binding to DataContext inside a DataTemplate. The template is set as ContentTemplate on a ContentControl. When trying to bind to a property on the ...Answered | 4 Replies | 15629 Views | Created by Infviz AB - Tuesday, October 7, 2008 8:33 AM | Last reply by MSDN_Forums_User - Tuesday, October 21, 2008 1:13 PM -
0 Votes
Using mvvm datatemplate to instantiate vs datacontext?
Is there a huge advantage to creating views using the datatemplate in mvvm? I.e. <DataTemplate DataType="{x:Type platevm:PlateViewModel}" ...Answered | 2 Replies | 4320 Views | Created by BryanCC - Monday, January 18, 2010 10:56 PM | Last reply by BryanCC - Monday, January 18, 2010 11:49 PM -
0 Votes
Binding DataTemplate from two Datacontext
Hi, I need help please, I have a DataGrid wiht a check box datatemplate, The DataGrid ItemSource is type of list<Medico> and ...Answered | 2 Replies | 1113 Views | Created by hballesteros - Thursday, June 7, 2012 2:56 PM | Last reply by Shi Ding - Monday, June 11, 2012 3:26 AM -
1 Votes
Hierarchical Datatemplate Binding To DataType Not DataContext
Hello, I recently had this problem as well in my code. The problem is the ContextMenu within a DataTemplate (or HierarchicalDataTemplate) will not bind ...Answered | 2 Replies | 5270 Views | Created by rreeves84 - Thursday, February 9, 2012 8:41 PM | Last reply by rreeves84 - Thursday, February 9, 2012 11:01 PM -
0 Votes
Dynamically select ListBox DataTemplate at bind, like DataTemplateSelector
Prism provides a DataTemplateSelector for Silverlight too. Check it out:Answered | 9 Replies | 15493 Views | Created by Gary Frank - Wednesday, December 15, 2010 11:51 AM | Last reply by sukku.shetty - Saturday, July 28, 2012 12:17 PM -
0 Votes
DataTemplateSelector issue
Hi, You have to override SelectTemplateCore method. Here is a sample httpAnswered | 2 Replies | 2625 Views | Created by rawk1989 - Saturday, March 3, 2012 4:39 AM | Last reply by rawk1989 - Monday, March 5, 2012 6:28 PM -
0 Votes
How to binding from datatemplate to datacontext.
I have something similar to this: <Window.Resources> <DataTemplate DataType="{x:Type local:MyItem}"> ...Answered | 1 Replies | 3827 Views | Created by seaor - Tuesday, March 16, 2010 4:22 PM | Last reply by seaor - Tuesday, March 16, 2010 6:26 PM -
1 Votes
DataTemplateSelector MVVM
The problem is SelectionParameter not inherit the DataContext of ItemsControl. You can work aroundAnswered | 2 Replies | 1620 Views | Created by Nadavi - Thursday, November 3, 2016 6:34 AM | Last reply by Nadavi - Thursday, November 3, 2016 2:52 PM -
0 Votes
DataTemplate DataContext Binding in MVVM Silverlight Project
</DataTemplate> The both UserControl and DataTemplate are having exactly the same DataContext ...Answered | 3 Replies | 15544 Views | Created by anttivaris1 - Monday, July 12, 2010 11:39 AM | Last reply by anttivaris1 - Tuesday, July 13, 2010 12:31 AM -
0 Votes
DataTemplateSelector not working!
Abstract Class public class naqivenenen : DataTemplateSelector { public DataTemplate BigCardsItem { get; ...Answered | 7 Replies | 1074 Views | Created by as__ - Tuesday, May 12, 2015 11:42 PM | Last reply by as__ - Saturday, May 23, 2015 10:16 PM -
1 Votes
criterion Id documentation
Trying to use UpdateAdGroupCriterions and currently it errors out saying "Criterion Id need be set when updating". I've tried toAnswered | 2 Replies | 239 Views | Created by Psidom - Friday, March 2, 2018 9:17 PM | Last reply by Psidom - Monday, March 5, 2018 6:10 PM -
1 Votes
DataTemplateSelector not being called
DataTemplate But the function I was supposed to override was: Protected Overrides Function SelectTemplateCore(item As Object, container As DependencyObject) AsAnswered | 3 Replies | 1269 Views | Created by Nathan Sokalski - Wednesday, February 25, 2015 8:24 PM | Last reply by Nathan Sokalski - Saturday, February 28, 2015 12:39 AM -
0 Votes
Get DataTemplate element from bound DataContext object
<DataTemplate>Answered | 1 Replies | 1982 Views | Created by Myndale - Thursday, July 5, 2012 3:07 AM | Last reply by Srithar - Thursday, July 5, 2012 4:46 AM -
0 Votes
Changing datacontext inside datatemplate not working
Not sure I've followed the explanation totally. UC1 is the container for that RadGridView? I think I might go with:Answered | 4 Replies | 2139 Views | Created by Amit Major - Monday, August 25, 2014 6:19 AM | Last reply by Franklin Chen - Monday, September 1, 2014 9:17 AM -
0 Votes
DataTemplateSelector in Custom Control
DataContext or such as Tag property of the control, you could check them from the container instance and return the corresponding DataTemplate. One solution: specify ...Answered | 3 Replies | 6724 Views | Created by Byrialsen - Thursday, October 14, 2010 2:15 PM | Last reply by Jie Bao - Tuesday, October 19, 2010 12:01 PM - Items 1 to 20 of 44612 Next ›
No announcements