Click here to Skip to main content
13,868,400 members

Silverlight / WPF

 
GeneralRe: Sending dll Pin
Pete O'Hanlon3-Dec-08 5:13
protectorPete O'Hanlon3-Dec-08 5:13 
GeneralRe: Sending dll Pin
Dushan1233-Dec-08 17:26
memberDushan1233-Dec-08 17:26 
GeneralRe: Sending dll Pin
Dushan1233-Dec-08 18:55
memberDushan1233-Dec-08 18:55 
GeneralRe: Sending dll Pin
Pete O'Hanlon3-Dec-08 23:19
protectorPete O'Hanlon3-Dec-08 23:19 
QuestionTimeSpan? Pin
Mohammad Dayyan2-Dec-08 2:35
memberMohammad Dayyan2-Dec-08 2:35 
AnswerRe: TimeSpan? Pin
Pete O'Hanlon2-Dec-08 4:36
protectorPete O'Hanlon2-Dec-08 4:36 
QuestionSilverlight and DeepZoom intergrate Pin
Vimalsoft(Pty) Ltd1-Dec-08 21:59
professionalVimalsoft(Pty) Ltd1-Dec-08 21:59 
QuestionWPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
christoph brändle1-Dec-08 13:55
memberchristoph brändle1-Dec-08 13:55 
Many people have seen the flipping panel by Ian Griffiths as shown by Sacha Barber on this MyFriends sample on CP.

http://www.interact-sw.co.uk/iangblog/2007/05/17/wpf-flippable-3D-list
http://www.codeproject.com/KB/WPF/MyFriends.aspx

I try now to figure out, how to invoke the trigger to flip the page by a RoutedEvent, but I cannot get it there.

public void ShowBack()
{
    DataTemplate _dt = (DataTemplate)this.FindResource("flipItemTemplate");
    RaiseEvent(new RoutedEventArgs(FlipToBackEvent, _dt.VisualTree));
}

should call this one:

<DataTemplate x:Key="flipItemTemplate">
    <Grid Width="270" Height="270">
        <Viewport3D Grid.Column="0" x:Name="vp3D" Visibility="Hidden">
        </Viewport3D>

        <Border x:Name="frontWrapper">
            <Border x:Name="frontHost" Background="Transparent">
                <Border.Triggers>
                    <EventTrigger RoutedEvent="local:UserControl1.FlipToBackEvent">
                        <BeginStoryboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </Border.Triggers>
                <ContentPresenter  Content="{Binding}" ContentTemplate="{StaticResource frontTemplate}" />
            </Border>
        </Border>}

Does anyone know how I can invoke from Codebehind the Storyboard inside the Trigger, inside the DataTemplate?

Tips on this are welcome Smile | :)

Christoph
AnswerRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
Sacha Barber1-Dec-08 23:00
mvaSacha Barber1-Dec-08 23:00 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
christoph brändle2-Dec-08 1:14
memberchristoph brändle2-Dec-08 1:14 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
Sacha Barber2-Dec-08 2:32
mvaSacha Barber2-Dec-08 2:32 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
christoph brändle2-Dec-08 15:35
memberchristoph brändle2-Dec-08 15:35 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
Sacha Barber2-Dec-08 22:50
mvaSacha Barber2-Dec-08 22:50 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
christoph brändle3-Dec-08 11:45
memberchristoph brändle3-Dec-08 11:45 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? [modified] Pin
jp chow9-Jan-09 9:28
memberjp chow9-Jan-09 9:28 
QuestionIs there a memoryleak in Brushes? Pin
ezazazel1-Dec-08 11:15
memberezazazel1-Dec-08 11:15 
AnswerRe: Is there a memoryleak in Brushes? Pin
Pete O'Hanlon1-Dec-08 11:28
protectorPete O'Hanlon1-Dec-08 11:28 
GeneralRe: Is there a memoryleak in Brushes? Pin
ezazazel1-Dec-08 11:32
memberezazazel1-Dec-08 11:32 
GeneralRe: Is there a memoryleak in Brushes? Pin
Pete O'Hanlon1-Dec-08 12:10
protectorPete O'Hanlon1-Dec-08 12:10 
QuestionImage Pin
VisualLive1-Dec-08 6:02
memberVisualLive1-Dec-08 6:02 
AnswerRe: Image Pin
Pete O'Hanlon1-Dec-08 9:37
protectorPete O'Hanlon1-Dec-08 9:37 
GeneralRe: Image Pin
VisualLive1-Dec-08 15:59
memberVisualLive1-Dec-08 15:59 
QuestionMicrosoft.Silverlight.CSharp.targets" was not found Error Pin
Vimalsoft(Pty) Ltd1-Dec-08 2:51
professionalVimalsoft(Pty) Ltd1-Dec-08 2:51 
AnswerRe: Microsoft.Silverlight.CSharp.targets" was not found Error Pin
Vimalsoft(Pty) Ltd1-Dec-08 3:13
professionalVimalsoft(Pty) Ltd1-Dec-08 3:13 
QuestionHow Win32 app calls WPF dll [modified] Pin
viashivan1-Dec-08 2:40
memberviashivan1-Dec-08 2:40 

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.


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190214.1 | Last Updated 14 Feb 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid