Click here to Skip to main content
15,901,122 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: XAML with a browser Pin
Pete O'Hanlon4-Apr-11 23:18
mvePete O'Hanlon4-Apr-11 23:18 
GeneralRe: XAML with a browser Pin
CodingLover5-Apr-11 18:02
CodingLover5-Apr-11 18:02 
GeneralRe: XAML with a browser Pin
Pete O'Hanlon5-Apr-11 22:13
mvePete O'Hanlon5-Apr-11 22:13 
QuestionHow To Style This Button Pin
Kevin Marois4-Apr-11 5:48
professionalKevin Marois4-Apr-11 5:48 
AnswerRe: How To Style This Button Pin
SledgeHammer014-Apr-11 6:43
SledgeHammer014-Apr-11 6:43 
GeneralRe: How To Style This Button Pin
Kevin Marois4-Apr-11 6:58
professionalKevin Marois4-Apr-11 6:58 
GeneralRe: How To Style This Button [modified] Pin
SledgeHammer014-Apr-11 7:08
SledgeHammer014-Apr-11 7:08 
GeneralRe: How To Style This Button Pin
SledgeHammer014-Apr-11 7:15
SledgeHammer014-Apr-11 7:15 
I looked at the template a bit further and yeah, I'd get rid of the

<Microsoft_Windows_Themes:ButtonChrome ... > </Microsoft_Windows_Themes:ButtonChrome > tags and replace that with a Image and TextBlock.

The IsKeyboardFocused trigger needs to be modified. The ToggleButton.IsChecked event trigger can be removed. The IsEnabled trigger needs to be modified too (or removed if you don't need to support disabled buttons).

You need to also add the IsMouseOver and IsPressed triggers.

Its just a matter of having just the Image and TextBlock as the "default state" and then in the various triggers set the properties to give you the mouse over.

For example, you could do something like:

<Border Name="border" Background="Transparent" ... >
<TextBlock Name="textBlock" ...>


and then in the trigger, you would set "border".Background = "Orange"

Thats the basic concept of it, you have some stuff hidden or not visible in the default state and then make it visible or change colors, etc. in the triggers.
GeneralRe: How To Style This Button Pin
Kevin Marois4-Apr-11 7:18
professionalKevin Marois4-Apr-11 7:18 
GeneralRe: How To Style This Button [modified] Pin
Kevin Marois4-Apr-11 10:25
professionalKevin Marois4-Apr-11 10:25 
GeneralRe: How To Style This Button [modified] Pin
SledgeHammer014-Apr-11 11:08
SledgeHammer014-Apr-11 11:08 
GeneralRe: How To Style This Button Pin
SledgeHammer014-Apr-11 11:12
SledgeHammer014-Apr-11 11:12 
AnswerRe: How To Style This Button Pin
Abhinav S4-Apr-11 21:13
Abhinav S4-Apr-11 21:13 
QuestionWebBrowser Control not displaying Pin
Grimes3-Apr-11 12:03
Grimes3-Apr-11 12:03 
AnswerRe: WebBrowser Control not displaying Pin
Grimes4-Apr-11 13:25
Grimes4-Apr-11 13:25 
QuestionHow to use ListView.SelectedItems in MVVM? Pin
SledgeHammer012-Apr-11 9:58
SledgeHammer012-Apr-11 9:58 
AnswerRe: How to use ListView.SelectedItems in MVVM? Pin
Mycroft Holmes2-Apr-11 12:48
professionalMycroft Holmes2-Apr-11 12:48 
AnswerRe: How to use ListView.SelectedItems in MVVM? Pin
Abhinav S3-Apr-11 6:29
Abhinav S3-Apr-11 6:29 
GeneralRe: How to use ListView.SelectedItems in MVVM? Pin
Kevin Marois4-Apr-11 9:55
professionalKevin Marois4-Apr-11 9:55 
GeneralRe: How to use ListView.SelectedItems in MVVM? Pin
SledgeHammer014-Apr-11 10:09
SledgeHammer014-Apr-11 10:09 
GeneralRe: How to use ListView.SelectedItems in MVVM? Pin
Kevin Marois4-Apr-11 10:26
professionalKevin Marois4-Apr-11 10:26 
GeneralRe: How to use ListView.SelectedItems in MVVM? Pin
Abhinav S4-Apr-11 21:12
Abhinav S4-Apr-11 21:12 
QuestionBing map control in a WPF application Pin
Jack_Sparow1-Apr-11 8:01
Jack_Sparow1-Apr-11 8:01 
AnswerRe: Bing map control in a WPF application Pin
Abhinav S1-Apr-11 20:53
Abhinav S1-Apr-11 20:53 
Question[C#, ListView] Conditional Formating of ListView<T> Items Pin
Dirk.Bock1-Apr-11 4:11
Dirk.Bock1-Apr-11 4:11 

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.