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

WPF

 
AnswerRe: taking the control Pin
Pete O'Hanlon31-May-09 22:47
mvePete O'Hanlon31-May-09 22:47 
GeneralRe: taking the control Pin
Hema Bairavan31-May-09 22:58
Hema Bairavan31-May-09 22:58 
GeneralRe: taking the control Pin
Pete O'Hanlon31-May-09 23:04
mvePete O'Hanlon31-May-09 23:04 
GeneralRe: taking the control Pin
Hema Bairavan31-May-09 23:14
Hema Bairavan31-May-09 23:14 
GeneralRe: taking the control Pin
Hema Bairavan31-May-09 23:27
Hema Bairavan31-May-09 23:27 
QuestionPlz help in couple of think in ListView Pin
wasimsharp31-May-09 19:13
wasimsharp31-May-09 19:13 
AnswerRe: Plz help in couple of think in ListView Pin
ABitSmart31-May-09 20:38
ABitSmart31-May-09 20:38 
Questionhow to animate the button in sequencial mode ? Pin
Feras Mazen Taleb31-May-09 1:53
Feras Mazen Taleb31-May-09 1:53 
hello this is my first animation practice in WPF
so I considered it a very big achievment !!

but I want to animate the item like carasoul panel (control of Infaragistics) :

- how can I animate the buttons that contain advertisement image and when the user
hover on button the all buttons stop not only the button

- how can I make the same animation for all buttons but not in the same time

this is my Powerfull user control code :
<UserControl x:Class="AdvertisementsPanel.UserControl1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <Style x:Key="AdvertisementItem" TargetType="{x:Type Button}">
            <Setter Property="MaxHeight" Value="75" />
            <Setter Property="MinHeight" Value="75" />
            <Setter Property="MaxWidth" Value="110" />
            <Setter Property="MinWidth" Value="110" />
            <Setter Property="Opacity" Value=".5" />
            <Style.Triggers>
                <EventTrigger RoutedEvent="Mouse.MouseEnter">
                    <EventTrigger.Actions>
                        <BeginStoryboard>
                            <Storyboard>
                                <DoubleAnimation 
									Duration="0:0:0.2" 
									Storyboard.TargetProperty="MaxHeight" 
									To="90" />
                                <DoubleAnimation 
									Duration="0:0:0.2" 
									Storyboard.TargetProperty="MaxWidth" 
									To="140" />
                                <DoubleAnimation 
									Duration="0:0:0.2" 
									Storyboard.TargetProperty="Opacity"
									To="1.0" />
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger.Actions>
                </EventTrigger>

                <EventTrigger RoutedEvent="Mouse.MouseLeave">
                    <EventTrigger.Actions>
                        <BeginStoryboard>
                            <Storyboard>
                                <DoubleAnimation 
									Duration="0:0:1" 
									Storyboard.TargetProperty="MaxHeight" />
                                <DoubleAnimation 
									Duration="0:0:1" 
									Storyboard.TargetProperty="MaxWidth" />
                                <DoubleAnimation 
									Duration="0:0:0.2" 
									Storyboard.TargetProperty="Opacity" />
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger.Actions>
                </EventTrigger>

                <EventTrigger RoutedEvent="Loaded" >
                    <BeginStoryboard Name="MyBeginStoryBoard" >
                        <Storyboard>
                            <DoubleAnimation 
                                Storyboard.TargetProperty="(Canvas.Top)"
                                To="250" Duration="0:0:7" RepeatBehavior="Forever"
                                />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>

                <EventTrigger RoutedEvent="MouseMove">
                    <PauseStoryboard BeginStoryboardName="MyBeginStoryBoard" />
                </EventTrigger>

                <EventTrigger RoutedEvent="MouseLeave">
                    <ResumeStoryboard BeginStoryboardName="MyBeginStoryBoard" />
                </EventTrigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    <Grid>
        <Canvas ClipToBounds="True" Name="maincanvas" >
            <Button Canvas.Left="10" Canvas.Top="10" Style="{StaticResource AdvertisementItem}" Height="110" Width="130" Name="button1" >Advertisement</Button>

        </Canvas>
    </Grid>
</UserControl>

thanks a lot

You have To Search About The Truth Of Your Life
Why Are you Here In Life ?

AnswerRe: how to animate the button in sequencial mode ? Pin
ABitSmart31-May-09 2:37
ABitSmart31-May-09 2:37 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb31-May-09 7:29
Feras Mazen Taleb31-May-09 7:29 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb1-Jun-09 23:59
Feras Mazen Taleb1-Jun-09 23:59 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb2-Jun-09 2:03
Feras Mazen Taleb2-Jun-09 2:03 
AnswerRe: how to animate the button in sequencial mode ? Pin
Pete O'Hanlon2-Jun-09 2:11
mvePete O'Hanlon2-Jun-09 2:11 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb2-Jun-09 2:28
Feras Mazen Taleb2-Jun-09 2:28 
AnswerRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb2-Jun-09 21:04
Feras Mazen Taleb2-Jun-09 21:04 
GeneralRe: how to animate the button in sequencial mode ? Pin
Feras Mazen Taleb7-Jun-09 3:54
Feras Mazen Taleb7-Jun-09 3:54 
QuestionImage on Button Pin
Member 232448330-May-09 9:11
Member 232448330-May-09 9:11 
AnswerRe: Image on Button Pin
ABitSmart30-May-09 16:51
ABitSmart30-May-09 16:51 
AnswerRe: Image on Button Pin
Mark Salsbery31-May-09 8:14
Mark Salsbery31-May-09 8:14 
QuestionProblem executing BitmapDecoder.Save() in worker thread [modified] Pin
fjparisIII30-May-09 8:50
fjparisIII30-May-09 8:50 
AnswerRe: Problem executing BitmapDecoder.Save() in worker thread (solved through egregious kludge) Pin
fjparisIII30-May-09 12:38
fjparisIII30-May-09 12:38 
AnswerRe: Problem executing BitmapDecoder.Save() in worker thread [modified] Pin
Mark Salsbery31-May-09 8:30
Mark Salsbery31-May-09 8:30 
GeneralRe: Problem executing BitmapDecoder.Save() in worker thread Pin
fjparisIII31-May-09 11:42
fjparisIII31-May-09 11:42 
GeneralRe: Problem executing BitmapDecoder.Save() in worker thread Pin
Mark Salsbery31-May-09 12:26
Mark Salsbery31-May-09 12:26 
GeneralRe: Problem executing BitmapDecoder.Save() in worker thread Pin
fjparisIII31-May-09 13:50
fjparisIII31-May-09 13:50 

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.