Click here to Skip to main content
12,074,995 members (60,332 online)

Silverlight / WPF

 
GeneralRe: WPF controls refresh Pin
caradri3-Feb-13 21:16
membercaradri3-Feb-13 21:16 
QuestionRoutedEvent vs AttachedEvent Pin
devvvy29-Jan-13 23:30
memberdevvvy29-Jan-13 23:30 
AnswerRe: RoutedEvent vs AttachedEvent Pin
Pete O'Hanlon29-Jan-13 23:51
protectorPete O'Hanlon29-Jan-13 23:51 
GeneralRe: RoutedEvent vs AttachedEvent Pin
devvvy30-Jan-13 0:02
memberdevvvy30-Jan-13 0:02 
GeneralRe: RoutedEvent vs AttachedEvent Pin
Pete O'Hanlon30-Jan-13 1:45
protectorPete O'Hanlon30-Jan-13 1:45 
GeneralRe: RoutedEvent vs AttachedEvent Pin
devvvy30-Jan-13 3:40
memberdevvvy30-Jan-13 3:40 
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 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
Steve Holdorf27-Jan-13 14:16
memberSteve Holdorf27-Jan-13 14:16 
QuestionSilverlight OOB access in Online Pin
Sugumaran s24-Jan-13 0:09
memberSugumaran s24-Jan-13 0:09 
AnswerRe: Silverlight OOB access in Online Pin
Richard MacCutchan24-Jan-13 2:50
mvpRichard MacCutchan24-Jan-13 2:50 
GeneralRe: Silverlight OOB access in Online Pin
Sugumaran s24-Jan-13 18:31
memberSugumaran s24-Jan-13 18:31 
GeneralRe: Silverlight OOB access in Online Pin
Richard MacCutchan24-Jan-13 23:41
mvpRichard MacCutchan24-Jan-13 23:41 
GeneralRe: Silverlight OOB access in Online Pin
Sugumaran s25-Jan-13 1:36
memberSugumaran s25-Jan-13 1:36 
GeneralRe: Silverlight OOB access in Online Pin
Richard MacCutchan25-Jan-13 2:36
mvpRichard MacCutchan25-Jan-13 2:36 
QuestionHow to set the border template a red wavy line , when the control have validation error? Pin
Salam633123-Jan-13 18:01
memberSalam633123-Jan-13 18:01 
AnswerRe: How to set the border template a red wavy line , when the control have validation error? Pin
Richard MacCutchan24-Jan-13 0:07
mvpRichard MacCutchan24-Jan-13 0:07 
GeneralRe: How to set the border template a red wavy line , when the control have validation error? Pin
Salam633124-Jan-13 2:36
memberSalam633124-Jan-13 2:36 
GeneralRe: How to set the border template a red wavy line , when the control have validation error? Pin
Richard MacCutchan24-Jan-13 2:43
mvpRichard MacCutchan24-Jan-13 2:43 
QuestionText box default text Pin
columbos1492722-Jan-13 3:06
membercolumbos1492722-Jan-13 3:06 
AnswerRe: Text box default text Pin
Abhinav S22-Jan-13 4:06
mvpAbhinav S22-Jan-13 4:06 
QuestionConverting WPF windows application to Web Application. Pin
Hema Bairavan21-Jan-13 20:20
memberHema Bairavan21-Jan-13 20:20 
AnswerRe: Converting WPF windows application to Web Application. Pin
HariPrasad katakam21-Jan-13 23:31
memberHariPrasad katakam21-Jan-13 23:31 
GeneralRe: Converting WPF windows application to Web Application. Pin
Pete O'Hanlon22-Jan-13 0:22
protectorPete O'Hanlon22-Jan-13 0:22 
GeneralRe: Converting WPF windows application to Web Application. Pin
Hema Bairavan22-Jan-13 1:19
memberHema Bairavan22-Jan-13 1:19 
AnswerRe: Converting WPF windows application to Web Application. Pin
Abhinav S21-Jan-13 23:49
mvpAbhinav S21-Jan-13 23:49 
GeneralRe: Converting WPF windows application to Web Application. Pin
Hema Bairavan22-Jan-13 1:12
memberHema Bairavan22-Jan-13 1:12 

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 | Mobile
Web04 | 2.8.160208.1 | Last Updated 9 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid