Click here to Skip to main content
15,885,546 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 15:59
professionalMycroft Holmes31-Mar-13 15:59 
GeneralRe: Collection of User Controls Pin
SledgeHammer0131-Mar-13 16:20
SledgeHammer0131-Mar-13 16:20 
GeneralRe: Collection of User Controls Pin
Mycroft Holmes31-Mar-13 18:02
professionalMycroft Holmes31-Mar-13 18:02 
QuestionWPF ComboBox With User Control Pin
Kevin Marois30-Mar-13 10:24
professionalKevin Marois30-Mar-13 10:24 
AnswerRe: WPF ComboBox With User Control(This may not work.) Pin
David C# Hobbyist.30-Mar-13 10:52
professionalDavid C# Hobbyist.30-Mar-13 10:52 
GeneralRe: WPF ComboBox With User Control(This may not work.) Pin
Kevin Marois30-Mar-13 11:09
professionalKevin Marois30-Mar-13 11:09 
GeneralRe: WPF ComboBox With User Control(This may not work.) Pin
David C# Hobbyist.30-Mar-13 11:24
professionalDavid C# Hobbyist.30-Mar-13 11:24 
AnswerRe: WPF ComboBox With User Control Pin
SledgeHammer0130-Mar-13 13:19
SledgeHammer0130-Mar-13 13:19 
Why would it show anything? Think about what your XAML is doing. You set the ComboBox.ItemTemplate to show a views:JobListView. You just said "I want to render each item (in both the edit box and the drop down list) as a views:JobListView". So, if you have 10 items, you are going to get 10 views:JobListView plus another one in the edit box. Probably not what you meant Smile | :) .

As I have mentioned to you in the past, you really need to aquire a tool that will allow you to dump out control templates, so you understand how they are put together so you can do these types of mods as you get more advanced.

I would highly recommend you install Expression Blend Preview since its now free and allows you to dump out control templates easily as well as modify them visually.

Also, in your response to the other guy, you said you didn't set the combo box ItemsSource to anything and wanted the JobListView to retrieve everything. That won't work on a conceptual level. How is the edit box in the combo box going to display the selected item when it knows nothing about the collection?

You need to have the VM that owns the combo box own the collection and set the combo box ItemsSource to it. The edit box will show the selected item and the popup view will render as your JobListView.

I'm not going to post the ComboBox control template here since its quite large (200+ lines of XAML), but I did dump it out for discussion purposes.

There isn't an easy way to style the drop down list because its essentially an ItemsPresenter and doesn't have any built in templates for that.

You *might* be able to wait for the combo box template to be applied and then find the "DropDownScrollViewer" control by name and replace its content with your control. I haven't tried this, so its possible it won't work. If I was doing this task, I'd probably try it first though. Otherwise, it looks like you are going to have to dump out the control template and replace the ItemsPresenter with your joblistview.
GeneralWindows 8 WPF Theme? Pin
Member 982361928-Mar-13 17:20
Member 982361928-Mar-13 17:20 
GeneralRe: Windows 8 WPF Theme? Pin
Meshack Musundi4-Apr-13 7:48
professionalMeshack Musundi4-Apr-13 7:48 
QuestionC# WPF Accessing parameter of chosen data grid row Pin
johnyjj228-Mar-13 9:55
johnyjj228-Mar-13 9:55 
QuestionExtending WPF WebBrowser Control Pin
Coxianuk28-Mar-13 6:48
Coxianuk28-Mar-13 6:48 
AnswerRe: Extending WPF WebBrowser Control Pin
Richard Deeming28-Mar-13 9:19
mveRichard Deeming28-Mar-13 9:19 
GeneralRe: Extending WPF WebBrowser Control Pin
Coxianuk28-Mar-13 10:26
Coxianuk28-Mar-13 10:26 
GeneralRe: Extending WPF WebBrowser Control Pin
David C# Hobbyist.28-Mar-13 10:52
professionalDavid C# Hobbyist.28-Mar-13 10:52 
QuestionWindows Phone App Development using C# 2010 Pin
TwiztedFreek26-Mar-13 18:16
TwiztedFreek26-Mar-13 18:16 
QuestionRe: Windows Phone App Development using C# 2010 Pin
Richard MacCutchan26-Mar-13 23:00
mveRichard MacCutchan26-Mar-13 23:00 
AnswerRe: Windows Phone App Development using C# 2010 Pin
Abhinav S27-Mar-13 18:02
Abhinav S27-Mar-13 18:02 
QuestionLooking for a windows phone 7.1 XNA programmer Pin
Member 955005525-Mar-13 23:09
Member 955005525-Mar-13 23:09 
AnswerRe: Looking for a windows phone 7.1 XNA programmer Pin
Richard MacCutchan26-Mar-13 0:09
mveRichard MacCutchan26-Mar-13 0:09 
AnswerRe: Looking for a windows phone 7.1 XNA programmer Pin
Marco Bertschi26-Mar-13 1:15
protectorMarco Bertschi26-Mar-13 1:15 
QuestionCode-generated buttons in Stackpanel: how to handle events? Pin
Dirk.Bock22-Mar-13 12:24
Dirk.Bock22-Mar-13 12:24 
AnswerRe: Code-generated buttons in Stackpanel: how to handle events? Pin
Mycroft Holmes22-Mar-13 14:14
professionalMycroft Holmes22-Mar-13 14:14 
AnswerRe: Code-generated buttons in Stackpanel: how to handle events? Pin
Gerry Schmitz22-Mar-13 14:51
mveGerry Schmitz22-Mar-13 14:51 
QuestionMVVM Tasks and UI Updating Pin
cjb11022-Mar-13 1:44
cjb11022-Mar-13 1:44 

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.