Click here to Skip to main content
15,881,380 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Event Handling Pin
Pete O'Hanlon9-May-09 0:37
mvePete O'Hanlon9-May-09 0:37 
QuestionCreate pixel dimensions of a text string Pin
califax2k8-May-09 5:02
califax2k8-May-09 5:02 
AnswerRe: Create pixel dimensions of a text string Pin
#realJSOP8-May-09 5:42
mve#realJSOP8-May-09 5:42 
GeneralRe: Create pixel dimensions of a text string Pin
califax2k10-May-09 21:24
califax2k10-May-09 21:24 
QuestionBasedOn Property Pin
#realJSOP8-May-09 2:52
mve#realJSOP8-May-09 2:52 
AnswerRe: BasedOn Property Pin
Pete O'Hanlon8-May-09 4:47
mvePete O'Hanlon8-May-09 4:47 
GeneralRe: BasedOn Property Pin
#realJSOP8-May-09 5:32
mve#realJSOP8-May-09 5:32 
AnswerRe: BasedOn Property Pin
Mark Salsbery8-May-09 7:45
Mark Salsbery8-May-09 7:45 
As I mentioned in your previous post on this, you don't have anything visible in your
button template, so you won't see anything.

For example, if I change your template to...
<Style x:Key="StyleButtonQuickLaunch" TargetType="{x:Type Button}"
             BasedOn="{StaticResource StyleUDPButton}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate>
                <Border CornerRadius="18" <code>BorderBrush="DarkGreen" BorderThickness="2" Background="LightGreen"</code>>
                </Border>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

...then use the style on a button something like this...
<StackPanel>
    <Button Name="button1" Style="{DynamicResource StyleButtonQuickLaunch}" Height="50" />
</StackPanel>

...then it works great.

That's why I asked you before if re-templating controls all the time is really what you want,
or do you just want to just modify certain properties of existing controls using style setters....

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionVideo Conferencing Application in wpf Pin
JS 20088-May-09 0:48
JS 20088-May-09 0:48 
AnswerRe: Video Conferencing Application in wpf Pin
Pete O'Hanlon8-May-09 1:02
mvePete O'Hanlon8-May-09 1:02 
AnswerRe: Video Conferencing Application in wpf Pin
Mark Salsbery8-May-09 7:37
Mark Salsbery8-May-09 7:37 
QuestionGenerate Dynamic XAML Pin
the_jat7-May-09 19:42
the_jat7-May-09 19:42 
AnswerRe: Generate Dynamic XAML Pin
Pete O'Hanlon7-May-09 22:32
mvePete O'Hanlon7-May-09 22:32 
QuestionCreate datetime, time and duration control? Pin
salon7-May-09 19:34
salon7-May-09 19:34 
Questiontype-ahead control in WPF Pin
GaneshSharma7-May-09 7:46
GaneshSharma7-May-09 7:46 
AnswerRe: type-ahead control in WPF Pin
sivaddrahcir18-May-09 13:58
sivaddrahcir18-May-09 13:58 
QuestionHow to set AutomationProperty to a WPF ListItem. Pin
tapas19797-May-09 7:00
tapas19797-May-09 7:00 
AnswerRe: How to set AutomationProperty to a WPF ListItem. Pin
tapas19797-May-09 7:02
tapas19797-May-09 7:02 
QuestionHelp needed regarding HeaderedContentControl Pin
Ravi Mori7-May-09 4:37
Ravi Mori7-May-09 4:37 
Question[Message Deleted] Pin
Cl@nd£$t|n07-May-09 0:42
Cl@nd£$t|n07-May-09 0:42 
AnswerRe: Widh & Height with percentage Pin
Pauwels Bart7-May-09 1:05
Pauwels Bart7-May-09 1:05 
QuestionSave the first page of a word as picture Pin
Prajeesh7-May-09 0:28
Prajeesh7-May-09 0:28 
AnswerRe: Save the first page of a word as picture Pin
Pete O'Hanlon7-May-09 0:29
mvePete O'Hanlon7-May-09 0:29 
QuestionHow to use staticresource in .cs Pin
daveyerwin6-May-09 10:42
daveyerwin6-May-09 10:42 
AnswerRe: How to use staticresource in .cs Pin
Mark Salsbery6-May-09 12:24
Mark Salsbery6-May-09 12:24 

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.