Click here to Skip to main content
15,913,836 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Databinding? Pin
#realJSOP2-Jun-09 3:11
professional#realJSOP2-Jun-09 3:11 
GeneralRe: Databinding? Pin
Pete O'Hanlon2-Jun-09 3:16
mvePete O'Hanlon2-Jun-09 3:16 
GeneralRe: Databinding? Pin
#realJSOP2-Jun-09 3:28
professional#realJSOP2-Jun-09 3:28 
QuestionList Control in WPF Pin
krishnan.s1-Jun-09 21:45
krishnan.s1-Jun-09 21:45 
AnswerRe: List Control in WPF Pin
Pete O'Hanlon1-Jun-09 23:10
mvePete O'Hanlon1-Jun-09 23:10 
QuestionWord wrap in RichTextBox Pin
hain1-Jun-09 10:25
hain1-Jun-09 10:25 
Questionhow to close a window.. Pin
Hema Bairavan1-Jun-09 0:18
Hema Bairavan1-Jun-09 0:18 
AnswerRe: how to close a window.. Pin
ABitSmart1-Jun-09 6:00
ABitSmart1-Jun-09 6:00 
QuestionVisualChildrenCount.. Pin
Hema Bairavan1-Jun-09 0:10
Hema Bairavan1-Jun-09 0:10 
AnswerRe: VisualChildrenCount.. Pin
Pete O'Hanlon1-Jun-09 1:28
mvePete O'Hanlon1-Jun-09 1:28 
GeneralRe: VisualChildrenCount.. Pin
Hema Bairavan1-Jun-09 1:33
Hema Bairavan1-Jun-09 1:33 
GeneralRe: VisualChildrenCount.. Pin
Pete O'Hanlon1-Jun-09 1:46
mvePete O'Hanlon1-Jun-09 1:46 
Questiontaking the control Pin
Hema Bairavan31-May-09 22:29
Hema Bairavan31-May-09 22:29 
AnswerRe: taking the control Pin
ABitSmart31-May-09 22:46
ABitSmart31-May-09 22:46 
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 

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.