Click here to Skip to main content
15,867,308 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? Pin
Pete O'Hanlon11-Oct-09 11:58
subeditorPete O'Hanlon11-Oct-09 11:58 
GeneralRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? [modified] Pin
fjparisIII11-Oct-09 12:49
fjparisIII11-Oct-09 12:49 
QuestionHelp with ProgressBar Pin
Etienne_12310-Oct-09 3:19
Etienne_12310-Oct-09 3:19 
AnswerRe: Help with ProgressBar Pin
Sperneder Patrick10-Oct-09 4:32
professionalSperneder Patrick10-Oct-09 4:32 
GeneralRe: Help with ProgressBar Pin
Etienne_12310-Oct-09 7:21
Etienne_12310-Oct-09 7:21 
AnswerRe: Help with ProgressBar Pin
Nigel Ferrissey11-Oct-09 9:27
Nigel Ferrissey11-Oct-09 9:27 
AnswerRe: Help with ProgressBar Pin
Pete O'Hanlon11-Oct-09 11:11
subeditorPete O'Hanlon11-Oct-09 11:11 
QuestionTextBox trigger question Pin
QzRz10-Oct-09 0:55
QzRz10-Oct-09 0:55 
Hello

I have a textBox which I want to add some "ghost" text on, which is visible whenever the textbox does not have focus.
I could do it with codebehind, but since I am new to WPF and XAML I would like to do it all from XAML code, to get some practice.

Currently my XAML code looks like this:
<TextBox x:Name="textBoxUsername" Margin="5,5">
<TextBox.Style>
    <Style TargetType="TextBox">
        <Style.Triggers>
            <Trigger Property="IsFocused" Value="false">
                <Setter Property="Text" Value="Username"/>
                <Setter Property="Foreground" Value="LightGray"/>
                <Setter Property="FontStyle" Value="Italic"/>
            </Trigger>
        </Style.Triggers>
    </Style>
</TextBox.Style>
</TextBox>

What I would like to do, is add another statement to the trigger so
it checks if the text is set by the user.
This is where I need help, I cannot figure out what to write, so
it checks if the text is set by the user or not.

If this is not the right way to solve this, I would be happy to get
an Article/blog/something which describes how to do it Smile | :)

//QzRz
AnswerRe: TextBox trigger question Pin
Daniel Vaughan11-Oct-09 8:10
Daniel Vaughan11-Oct-09 8:10 
QuestionReplacing the desktop instead of running in a window? [SOLVED] Pin
seguso9-Oct-09 20:31
seguso9-Oct-09 20:31 
QuestionUser Control with collection for property Pin
Adam R Harris9-Oct-09 11:24
Adam R Harris9-Oct-09 11:24 
QuestionChange color of ribbon control..... Pin
yogeshdew9-Oct-09 6:31
yogeshdew9-Oct-09 6:31 
QuestionGetting mouse up event on WPF Figure [modified] Pin
fjparisIII9-Oct-09 5:40
fjparisIII9-Oct-09 5:40 
AnswerRe: Getting mouse up event on WPF Figure Pin
Pete O'Hanlon11-Oct-09 11:55
subeditorPete O'Hanlon11-Oct-09 11:55 
GeneralRe: Getting mouse up event on WPF Figure Pin
fjparisIII11-Oct-09 14:42
fjparisIII11-Oct-09 14:42 
QuestionCan we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 1:57
Anuj Banka9-Oct-09 1:57 
AnswerRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Pete O'Hanlon9-Oct-09 2:21
subeditorPete O'Hanlon9-Oct-09 2:21 
GeneralRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 2:23
Anuj Banka9-Oct-09 2:23 
QuestionStarting to hate silverlight Pin
gantww8-Oct-09 16:59
gantww8-Oct-09 16:59 
AnswerRe: Starting to hate silverlight Pin
lepipele8-Oct-09 18:01
lepipele8-Oct-09 18:01 
QuestionHow to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 13:48
Soulforged8-Oct-09 13:48 
AnswerRe: How to show SSL WCF Service Padlock Pin
Nigel Ferrissey8-Oct-09 14:22
Nigel Ferrissey8-Oct-09 14:22 
GeneralRe: How to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 15:31
Soulforged8-Oct-09 15:31 
GeneralRe: How to show SSL WCF Service Padlock Pin
Nigel Ferrissey8-Oct-09 16:15
Nigel Ferrissey8-Oct-09 16:15 
GeneralRe: How to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 16:49
Soulforged8-Oct-09 16:49 

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.