Click here to Skip to main content
15,894,291 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF TabControl Events Pin
Tom Delany10-Jan-12 10:37
Tom Delany10-Jan-12 10:37 
GeneralRe: WPF TabControl Events Pin
Pete O'Hanlon10-Jan-12 10:38
mvePete O'Hanlon10-Jan-12 10:38 
GeneralRe: WPF TabControl Events [Edited] Pin
Tom Delany10-Jan-12 11:34
Tom Delany10-Jan-12 11:34 
GeneralRe: WPF TabControl Events [Edited] Pin
Mycroft Holmes10-Jan-12 13:11
professionalMycroft Holmes10-Jan-12 13:11 
GeneralRe: WPF TabControl Events Pin
Tom Delany10-Jan-12 14:08
Tom Delany10-Jan-12 14:08 
GeneralRe: WPF TabControl Events Pin
Tom Delany11-Jan-12 3:40
Tom Delany11-Jan-12 3:40 
GeneralRe: WPF TabControl Events Pin
Tom Delany12-Jan-12 7:53
Tom Delany12-Jan-12 7:53 
GeneralRe: WPF TabControl Events [Edited] Pin
Tom Delany11-Jan-12 8:32
Tom Delany11-Jan-12 8:32 
Collin Jasnoch wrote:
Place this DataTemplate in a resource dictionary and reference the dictionary in the UserControl that has the TabControl. It will then render the "OneOfYourViewModel" object as a "TheCorrespondingView" user control.

Create a ResourceDictionary under Application.Resources or in the MainWindows under Window.Resources, or does it really matter as long as it's closer to the root than where it is used?

Collin Jasnoch wrote:
reference the dictionary in the UserControl that has the TabControl.

Will you show me a XAML example of what you mean?

Collin Jasnoch wrote:
Another way is to define the DataTemplate with a key and then reference it for your "ItemTemplate".

I thought I had figured this way out, but then I stumbled because I have multiple DataTemplates and I was not sure if I still created a ResourceDictionary and gave it a key, and then bound that to the "ItemTemplate" of the TabControl, or if I had to assign a key to each template and somehow bind each one to ... something Confused | :confused: ?

Sorry. I'm a moron... Sigh | :sigh:
WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated.

There are 10 kinds of people in the world: People who know binary and people who don't.

GeneralRe: WPF TabControl Events [Edited] Pin
Pete O'Hanlon11-Jan-12 8:46
mvePete O'Hanlon11-Jan-12 8:46 
GeneralRe: WPF TabControl Events [Edited] Pin
Tom Delany11-Jan-12 9:28
Tom Delany11-Jan-12 9:28 
GeneralRe: WPF TabControl Events [Edited] Pin
Pete O'Hanlon11-Jan-12 9:56
mvePete O'Hanlon11-Jan-12 9:56 
GeneralRe: WPF TabControl Events [Edited] Pin
Tom Delany11-Jan-12 10:26
Tom Delany11-Jan-12 10:26 
GeneralRe: WPF TabControl Events [Edited] Pin
Pete O'Hanlon11-Jan-12 10:30
mvePete O'Hanlon11-Jan-12 10:30 
GeneralRe: WPF TabControl Events [Edited] Pin
Tom Delany11-Jan-12 10:37
Tom Delany11-Jan-12 10:37 
Questionnotificate that usb flash is connected Pin
mi_n9-Jan-12 19:26
mi_n9-Jan-12 19:26 
AnswerRe: notificate that usb flash is connected Pin
Abhinav S9-Jan-12 19:43
Abhinav S9-Jan-12 19:43 
QuestionHow to pass combobox value to chaild page in silverlight ? Pin
swap_ssj9-Jan-12 18:16
swap_ssj9-Jan-12 18:16 
AnswerRe: How to pass combobox value to chaild page in silverlight ? Pin
Abhinav S9-Jan-12 18:30
Abhinav S9-Jan-12 18:30 
QuestionOdd App Shutdown Problem (XP SP3) from .NET4.0 WPF/Prism app Pin
Jammer9-Jan-12 4:12
Jammer9-Jan-12 4:12 
AnswerRe: Odd App Shutdown Problem (XP SP3) from .NET4.0 WPF/Prism app Pin
Jammer9-Jan-12 7:36
Jammer9-Jan-12 7:36 
QuestionSearch text in richtextbox wpf c# Pin
moi4118-Jan-12 23:09
moi4118-Jan-12 23:09 
QuestionWPF Bind Hyperlink To ViewModel Pin
Kevin Marois6-Jan-12 10:37
professionalKevin Marois6-Jan-12 10:37 
AnswerRe: WPF Bind Hyperlink To ViewModel Pin
SledgeHammer016-Jan-12 13:28
SledgeHammer016-Jan-12 13:28 
GeneralRe: WPF Bind Hyperlink To ViewModel Pin
Kevin Marois6-Jan-12 13:35
professionalKevin Marois6-Jan-12 13:35 
GeneralRe: WPF Bind Hyperlink To ViewModel Pin
SledgeHammer016-Jan-12 13:57
SledgeHammer016-Jan-12 13:57 

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.