Click here to Skip to main content
15,919,479 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Custom Control with a Combo Box Pin
scarfinv14-Mar-09 5:03
scarfinv14-Mar-09 5:03 
I tried that, but I get this error:

'DataTrigger' object cannot be added to 'ComboBox'. Operation is not valid while ItemSource is in use. Access and modify elements with ItemsControl.ItemSource instead.

This is likely because my current Control Template combobox section looks as follows:

<ComboBox ItemsSource="{Binding Path=DistrictList,RelativeSource={RelativeSource TemplatedParent}}"></ComboBox>

So, I understand what you're suggesting, but I'm not quite sure how I should be coding the xaml to achieve that?

Also, for my own understanding, I'd appreciate an explanation from someone as to why setting the IsEditable property in my CodeBehind doesn't work.
GeneralRe: WPF Custom Control with a Combo Box Pin
scarfinv16-Mar-09 7:43
scarfinv16-Mar-09 7:43 
QuestionConnecting to SQL Server database in XBAP application [modified] Pin
Neeraj Kr13-Mar-09 5:10
Neeraj Kr13-Mar-09 5:10 
AnswerRe: Connecting to SQL Server database in XBAP application Pin
ABitSmart13-Mar-09 6:12
ABitSmart13-Mar-09 6:12 
GeneralRe: Connecting to SQL Server database in XBAP application Pin
Neeraj Kr13-Mar-09 7:14
Neeraj Kr13-Mar-09 7:14 
GeneralRe: Connecting to SQL Server database in XBAP application Pin
ABitSmart13-Mar-09 7:17
ABitSmart13-Mar-09 7:17 
GeneralRe: Connecting to SQL Server database in XBAP application Pin
Neeraj Kr13-Mar-09 7:34
Neeraj Kr13-Mar-09 7:34 
AnswerRe: Connecting to SQL Server database in XBAP application Pin
Eslam Afifi13-Mar-09 6:17
Eslam Afifi13-Mar-09 6:17 
GeneralRe: Connecting to SQL Server database in XBAP application Pin
Neeraj Kr13-Mar-09 7:12
Neeraj Kr13-Mar-09 7:12 
QuestionRe: Connecting to SQL Server database in XBAP application Pin
Eslam Afifi13-Mar-09 8:40
Eslam Afifi13-Mar-09 8:40 
AnswerRe: Connecting to SQL Server database in XBAP application Pin
Neeraj Kr13-Mar-09 8:44
Neeraj Kr13-Mar-09 8:44 
QuestionRe: Connecting to SQL Server database in XBAP application Pin
Eslam Afifi13-Mar-09 8:48
Eslam Afifi13-Mar-09 8:48 
QuestionDouble Animation Hell Pin
emptythetill13-Mar-09 2:55
emptythetill13-Mar-09 2:55 
AnswerRe: Double Animation Hell Pin
Insincere Dave13-Mar-09 8:06
Insincere Dave13-Mar-09 8:06 
GeneralRe: Double Animation Hell Pin
emptythetill14-Mar-09 5:21
emptythetill14-Mar-09 5:21 
QuestionHow to load only needed images? Pin
S.a.n.4.e.s12-Mar-09 7:35
S.a.n.4.e.s12-Mar-09 7:35 
AnswerRe: How to load only needed images? Pin
Eslam Afifi12-Mar-09 12:27
Eslam Afifi12-Mar-09 12:27 
GeneralRe: How to load only needed images? Pin
S.a.n.4.e.s12-Mar-09 19:18
S.a.n.4.e.s12-Mar-09 19:18 
GeneralRe: How to load only needed images? [modified] Pin
Eslam Afifi13-Mar-09 2:53
Eslam Afifi13-Mar-09 2:53 
AnswerRe: How to load only needed images? Pin
Luc Pattyn12-Mar-09 13:29
sitebuilderLuc Pattyn12-Mar-09 13:29 
GeneralRe: How to load only needed images? Pin
S.a.n.4.e.s12-Mar-09 20:30
S.a.n.4.e.s12-Mar-09 20:30 
GeneralRe: How to load only needed images? Pin
Luc Pattyn13-Mar-09 2:14
sitebuilderLuc Pattyn13-Mar-09 2:14 
GeneralRe: How to load only needed images? Pin
Luc Pattyn13-Mar-09 2:19
sitebuilderLuc Pattyn13-Mar-09 2:19 
GeneralRe: How to load only needed images? [modified] Pin
S.a.n.4.e.s14-Mar-09 0:10
S.a.n.4.e.s14-Mar-09 0:10 
QuestionStoring Signature in sql server database Pin
vsaratkar12-Mar-09 5:45
vsaratkar12-Mar-09 5:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.