Click here to Skip to main content
13,350,289 members (50,283 online)

Silverlight / WPF

 
GeneralRe: RoutedEvent vs AttachedEvent Pin
Pete O'Hanlon30-Jan-13 3:44
protectorPete O'Hanlon30-Jan-13 3:44 
GeneralRe: RoutedEvent vs AttachedEvent Pin
devvvy30-Jan-13 4:08
memberdevvvy30-Jan-13 4:08 
QuestionWPF Tab Item Close Button Pin
Kevin Marois29-Jan-13 19:03
memberKevin Marois29-Jan-13 19:03 
AnswerRe: WPF Tab Item Close Button Pin
SledgeHammer0129-Jan-13 20:02
memberSledgeHammer0129-Jan-13 20:02 
GeneralRe: WPF Tab Item Close Button Pin
Kevin Marois2-Feb-13 16:33
memberKevin Marois2-Feb-13 16:33 
GeneralRe: WPF Tab Item Close Button Pin
SledgeHammer012-Feb-13 19:25
memberSledgeHammer012-Feb-13 19:25 
QuestionCustom Control Template for beginners Pin
jeffdavis870329-Jan-13 10:12
memberjeffdavis870329-Jan-13 10:12 
AnswerRe: Custom Control Template for beginners Pin
SledgeHammer0129-Jan-13 12:32
memberSledgeHammer0129-Jan-13 12:32 
For starters, you should only use images when its actually an image. For other cases, you should draw the part using XAML primitives. In the example you mentioned, the slider thumb and gutter and tick marks, etc. should all be drawn in XAML primitives. You'll find out why down the road Smile | :) .

When you are inheriting from a system control, you should generally NOT write your own template from scratch, but rather dump out the Microsoft template and either inherit from it, or paste it into your assembly and modify it. Reason being is that while Microsoft pushes "lookless" controls (the XAML has no knowledge of the code and the code has no knowledge of the XAML), you'll find out they are not. Controls often rely on primitives being in certain layouts and having certain names.

Dumping out the Microsoft templates is also a GREAT way to teach you how real world controls are put together.

I typically use Expression Blend for dumping out templates.

NOTE: unless you are going to have a control that is themeless, you need to do a lot of tricks to have say an XP theme, an Aero theme, Green theme, Blue Theme,etc. so you respect the users settings. If you are just going to have one look & feel across all themes / OS'es, etc. then you don't need to worry about that as much.

Just follow the Microsoft template lead to be honest with you... they are doing it "the right way".
GeneralRe: Custom Control Template for beginners Pin
jeffdavis870329-Jan-13 13:10
memberjeffdavis870329-Jan-13 13:10 
GeneralRe: Custom Control Template for beginners Pin
SledgeHammer0129-Jan-13 13:46
memberSledgeHammer0129-Jan-13 13:46 
GeneralTreeview Selection Pin
vijilvs11629-Jan-13 0:03
membervijilvs11629-Jan-13 0:03 
QuestionProblem With TreeViewItem Tooltip Pin
Kevin Marois26-Jan-13 16:39
memberKevin Marois26-Jan-13 16:39 
GeneralRe: Problem With TreeViewItem Tooltip Pin
Thomas Duwe29-Jan-13 2:46
memberThomas Duwe29-Jan-13 2:46 
QuestionHow to get a value from treeview. Pin
boryborawski26-Jan-13 13:06
memberboryborawski26-Jan-13 13:06 
QuestionConstant header and footer Pin
columbos1492726-Jan-13 0:11
membercolumbos1492726-Jan-13 0:11 
AnswerRe: Constant header and footer Pin
Richard MacCutchan26-Jan-13 1:05
mvpRichard MacCutchan26-Jan-13 1:05 
QuestionWPF.MDI Pin
columbos1492725-Jan-13 9:37
membercolumbos1492725-Jan-13 9:37 
AnswerRe: WPF.MDI Pin
Abhishek Pant25-Jan-13 10:29
memberAbhishek Pant25-Jan-13 10:29 
GeneralRe: WPF.MDI Pin
columbos1492725-Jan-13 23:11
membercolumbos1492725-Jan-13 23:11 
GeneralRe: WPF.MDI Pin
Abhishek Pant25-Jan-13 23:33
memberAbhishek Pant25-Jan-13 23:33 
AnswerRe: WPF.MDI Pin
tram730-Nov-13 6:54
membertram730-Nov-13 6:54 
QuestionSilverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
Steve Holdorf24-Jan-13 13:13
memberSteve Holdorf24-Jan-13 13:13 
AnswerRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
db7uk26-Jan-13 14:11
memberdb7uk26-Jan-13 14:11 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
Steve Holdorf27-Jan-13 4:19
memberSteve Holdorf27-Jan-13 4:19 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
db7uk27-Jan-13 13:44
memberdb7uk27-Jan-13 13: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.


Advertise | Privacy |
Web03 | 2.8.180111.1 | Last Updated 18 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid