locked
Erro No Overload for RRS feed

  • Pergunta

  • Ola, estou implementando um código que tinha no windows phone 8, no entanto, o mesmo código no windows phone 8.1 não consigo compilar dá o erro: Error 1 No overload for 'liveTileAnim1_Completed_1' matches delegate 'System.EventHandler<object>'

    O código XAML (linha do erro em negrito) :

    <UserControl.Resources>
    
            <Storyboard x:Key="liveTileAnim1" x:Name="liveTileAnim1" Duration="0:0:4" Completed="liveTileAnim1_Completed_1">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetName="panel1" Storyboard.TargetProperty="Y">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.100" Value="0"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.150" Value="-80"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="-120"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.300" Value="-160"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.400" Value="-180"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.480" Value="-190"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.580" Value="-195"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.700" Value="-200"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetName="panel2" Storyboard.TargetProperty="Y">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.100" Value="0"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.150" Value="-80"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="-120"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.300" Value="-160"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.400" Value="-180"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.480" Value="-190"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.580" Value="-195"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.700" Value="-200"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
    
            <Storyboard x:Key="liveTileAnim1_Inverse" x:Name="liveTileAnim1_Inverse" Duration="0:0:4" Completed="liveTileAnim1_Inverse_Completed_1">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetName="panel1" Storyboard.TargetProperty="Y">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.100" Value="-200"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.150" Value="-120"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="-80"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.300" Value="-40"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.400" Value="-20"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.480" Value="-10"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.580" Value="-5"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.700" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetName="panel2" Storyboard.TargetProperty="Y">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.100" Value="-200"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.150" Value="-120"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="-80"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.300" Value="-40"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.400" Value="-15"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.430" Value="-10"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.450" Value="-5"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.470" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
    
        </UserControl.Resources>

    Código que C# que chama:

    public partial class LiveTileType2 : UserControl
        {
            public LiveTileType2()
            {
                InitializeComponent();
                Storyboard anim = (Storyboard)FindName("liveTileAnim1");
                anim.Begin();
            }
    
            public void liveTileAnim1_Completed_1(object sender, EventArgs e)
            {
                Storyboard anim = (Storyboard)FindName("liveTileAnim1_Inverse");
                anim.Begin();
            }
    
            public void liveTileAnim1_Inverse_Completed_1(object sender, EventArgs e)
            {
                Storyboard anim = (Storyboard)FindName("liveTileAnim1");
                anim.Begin();
            }

    Grato a todos,



    Programe o mundo para uma vida melhor!

    terça-feira, 29 de setembro de 2015 21:56

Respostas

  • Olá Sebastiao Freitas,

    tudo bem?

    Por gentileza, verifique as informações contidas nas respostas destas outras threads. Analise e faça os testes conforme a necessidade de seu projeto:

    Link 01

    Link 02

    Link 03

    Link 04

    Atenciosamente


    Marcos Roberto de Souza Junior

    Esse conteúdo e fornecido sem garantias de qualquer tipo, seja expressa ou implícita

    MSDN Community Support

    Por favor, lembre-se de Marcar como Resposta as respostas que resolveram o seu problema. Essa e uma maneira comum de reconhecer aqueles que o ajudaram e fazer com que seja mais fácil para os outros visitantes encontrarem a resolução mais tarde.

    • Marcado como Resposta Marcos SJ quarta-feira, 30 de setembro de 2015 18:01
    quarta-feira, 30 de setembro de 2015 18:01