Click here to Skip to main content
15,891,423 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: checking processes Pin
Pete O'Hanlon3-Dec-10 4:37
mvePete O'Hanlon3-Dec-10 4:37 
GeneralRe: checking processes Pin
arkiboys3-Dec-10 5:43
arkiboys3-Dec-10 5:43 
GeneralRe: checking processes Pin
Pete O'Hanlon3-Dec-10 7:19
mvePete O'Hanlon3-Dec-10 7:19 
GeneralRe: checking processes Pin
arkiboys3-Dec-10 11:00
arkiboys3-Dec-10 11:00 
GeneralRe: checking processes Pin
Pete O'Hanlon3-Dec-10 11:01
mvePete O'Hanlon3-Dec-10 11:01 
GeneralRe: checking processes Pin
arkiboys3-Dec-10 11:02
arkiboys3-Dec-10 11:02 
AnswerRe: checking processes Pin
Abhinav S3-Dec-10 23:22
Abhinav S3-Dec-10 23:22 
QuestionStandard Button Layout Pin
PaulPrice3-Dec-10 0:20
PaulPrice3-Dec-10 0:20 
Again on with my quest to learn WPF controls and improve our standard controls library to make it easier to use within a MVVM environment.

In this case I am looking for sggestions for how to best implemnt a standard button.

I would like to create a standard button which has an image and caption.

I understand that this is easily achieved using xaml, but ideally we would like a standard implementation so the button could be used in the following manor.

<CustomControls:StandardButton ButtinImage="Logout.jpg" ButtonCaption="Button Text"/>


How would you achieve this?

1. Inherit from the button class and add dependancy properties
2. Use Attached Properties and a style
3. Inherit fron UserControl using dependancy properties fro the image and caption

Thanks for your time
Just racking up the postings

AnswerRe: Standard Button Layout Pin
Abhinav S3-Dec-10 1:07
Abhinav S3-Dec-10 1:07 
GeneralRe: Standard Button Layout Pin
PaulPrice3-Dec-10 2:04
PaulPrice3-Dec-10 2:04 
AnswerRe: Standard Button Layout Pin
Pete O'Hanlon3-Dec-10 1:16
mvePete O'Hanlon3-Dec-10 1:16 
JokeRe: Standard Button Layout Pin
PaulPrice3-Dec-10 2:02
PaulPrice3-Dec-10 2:02 
GeneralRe: Standard Button Layout Pin
Pete O'Hanlon3-Dec-10 4:35
mvePete O'Hanlon3-Dec-10 4:35 
QuestionDependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice2-Dec-10 3:13
PaulPrice2-Dec-10 3:13 
AnswerRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
Ian Shlasko2-Dec-10 3:55
Ian Shlasko2-Dec-10 3:55 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice2-Dec-10 4:36
PaulPrice2-Dec-10 4:36 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
Ian Shlasko2-Dec-10 6:18
Ian Shlasko2-Dec-10 6:18 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice2-Dec-10 6:34
PaulPrice2-Dec-10 6:34 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
Ian Shlasko2-Dec-10 9:56
Ian Shlasko2-Dec-10 9:56 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
SledgeHammer012-Dec-10 10:05
SledgeHammer012-Dec-10 10:05 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
Ian Shlasko2-Dec-10 10:59
Ian Shlasko2-Dec-10 10:59 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
SledgeHammer012-Dec-10 11:58
SledgeHammer012-Dec-10 11:58 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice3-Dec-10 0:11
PaulPrice3-Dec-10 0:11 
GeneralRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
PaulPrice3-Dec-10 0:05
PaulPrice3-Dec-10 0:05 
AnswerRe: DependancyProperty Confusion with Custom Controls and ModelView Pin
SledgeHammer012-Dec-10 6:35
SledgeHammer012-Dec-10 6:35 

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.