Click here to Skip to main content
15,887,683 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Reading materials for WPF Pin
Abhinav S30-May-11 7:22
Abhinav S30-May-11 7:22 
GeneralRe: Reading materials for WPF Pin
CodingLover30-May-11 18:30
CodingLover30-May-11 18:30 
GeneralRe: Reading materials for WPF Pin
Abhinav S30-May-11 20:06
Abhinav S30-May-11 20:06 
QuestionRe: Reading materials for WPF Pin
CodingLover30-May-11 18:32
CodingLover30-May-11 18:32 
QuestionApplying MVVM (WPF) Pin
jgalak29-May-11 10:49
jgalak29-May-11 10:49 
AnswerRe: Applying MVVM (WPF) [long post] Pin
Keith Barrow29-May-11 12:11
professionalKeith Barrow29-May-11 12:11 
AnswerRe: Applying MVVM (WPF) Pin
_Maxxx_29-May-11 14:27
professional_Maxxx_29-May-11 14:27 
QuestionStorybook.RepeatBehavior not repeating [modified] Pin
Paul R Cotter28-May-11 11:06
Paul R Cotter28-May-11 11:06 
I have a misunderstanding about RepeatBehaviour. I'm experimenting and I have this XAML embedded in a Canvas inside a System.Windows.Window. I expected the colors to transition from Blue to Orange and back again, followed by Green to Purple and back again, and then for the process to repeat until the Storyboard duration ran out. However, it only performs one cycle and then stops - on green.

What am I doing wrong...
<Button Name="butPlay"
        Click="butPlay_Click"
        Width="96"  Canvas.Left="136" Canvas.Top="191" Content="Play" Height="40" >
    <Button.Triggers>
        <EventTrigger RoutedEvent="Button.Click">
            <BeginStoryboard >
                <Storyboard Duration="1: 0: 0"
                            RepeatBehavior="5">
                    <ColorAnimation Storyboard.TargetProperty="Color"
                                    Storyboard.TargetName="rctPlayBrush"
                                    From="Blue" To="Orange"
                                    Duration="0: 0: 1"
                                    AutoReverse="True" />

                    <ColorAnimation Storyboard.TargetProperty="Color"
                                    Storyboard.TargetName="rctPlayBrush"
                                    From="Green" To="Purple"
                                    Duration="0: 0: 1"
                                    AutoReverse="True"
                                    BeginTime="0: 0: 2"/>
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Button.Triggers>
</Button>



Whilst I realise the colour scheme leaves a little to be desired, can you help me the technical rather than esthetic aspect?

ps. How does one stop colon-zero (Blush | :O )being displayed as a smiley? (hence the spaces after the colons in the code)
Paulustrious
Email: codeproject who-is-at paulcotter.com
modified on Saturday, May 28, 2011 5:49 PM

AnswerRe: Storybook.RepeatBehavior not repeating [modified] Pin
Mark Salsbery28-May-11 12:37
Mark Salsbery28-May-11 12:37 
QuestionSilverlight / WPF Every page a content control Pin
DL00127-May-11 5:29
DL00127-May-11 5:29 
AnswerRe: Silverlight / WPF Every page a content control Pin
Mark Salsbery27-May-11 7:33
Mark Salsbery27-May-11 7:33 
AnswerRe: Silverlight / WPF Every page a content control Pin
Abhinav S27-May-11 8:15
Abhinav S27-May-11 8:15 
AnswerRe: Silverlight / WPF Every page a content control Pin
DL00131-May-11 2:58
DL00131-May-11 2:58 
GeneralRe: Silverlight / WPF Every page a content control Pin
Pete O'Hanlon31-May-11 3:26
mvePete O'Hanlon31-May-11 3:26 
QuestionSTYLUS POINT -ELLİPS Pin
mustafayilmaz5627-May-11 3:34
mustafayilmaz5627-May-11 3:34 
QuestionHow to pass a new instance of a viewmodel to an existing usercontrol? Pin
Duke Carey26-May-11 15:08
professionalDuke Carey26-May-11 15:08 
AnswerRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon26-May-11 22:08
mvePete O'Hanlon26-May-11 22:08 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Duke Carey27-May-11 0:42
professionalDuke Carey27-May-11 0:42 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon27-May-11 2:01
mvePete O'Hanlon27-May-11 2:01 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Mycroft Holmes27-May-11 13:54
professionalMycroft Holmes27-May-11 13:54 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Duke Carey31-May-11 0:37
professionalDuke Carey31-May-11 0:37 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Mycroft Holmes31-May-11 13:10
professionalMycroft Holmes31-May-11 13:10 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 13:32
professional_Maxxx_31-May-11 13:32 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon31-May-11 21:37
mvePete O'Hanlon31-May-11 21:37 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_29-May-11 15:35
professional_Maxxx_29-May-11 15: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.