This is a migrated thread and some comments may be shown as answers.

"No Method" - new DLLs break code

4 Answers 52 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 27 Mar 2012, 11:12 PM
Hi..
I just upgraded to 2012.1.215.1050.

But the following no longer works  - get a No Method error
Any ideas how I can fix it?
thanks




   <UserControl.Resources>
        -<ControlTemplate x:Key="FrameTemplate" TargetType="navigation:Frame">
            <telerik:RadTransitionControl Content="{TemplateBinding Content}" Duration="00:00:01"
ContentTemplate="{TemplateBinding ContentTemplate}">
                <telerik:RadTransitionControl.Transition>
                      <telerikTransitions:SlideAndZoomTransition/>
                </telerik:RadTransitionControl.Transition>
            </telerik:RadTransitionControl>
        </ControlTemplate>
    </UserControl.Resources>



     <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Template="{StaticResource FrameTemplate}"
                              Source="/Dashboard" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
           




4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 30 Mar 2012, 08:53 AM
Hello Jon,

I tried your scenario and I couldn't reproduce the problem. Please refer to the attached sample project and let me know if I'm missing something.

Greetings,
Miroslav Nedyalkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jon
Top achievements
Rank 1
answered on 30 Mar 2012, 12:48 PM
Hi..
Your sample works... But I get the following in mine.

Line: 60
Error: Unhandled Error in Silverlight Application
Code: 1001   
Category: RuntimeError      
Message: AG_E_UNKNOWN_ERROR    
MethodName:    

Here's my XAML.. any ideas?  thanks!!

<

 

 

UserControl

 

x:Class="USMRT.MainPage"

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"

 

xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"

 

xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"

 

xmlns:login="clr-namespace:USMRT.LoginUI"

 

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

 

xmlns:telerikTransitions="clr-namespace:Telerik.Windows.Controls.TransitionEffects;assembly=Telerik.Windows.Controls"

 

xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

 

 

<UserControl.Resources>

 

 

<ControlTemplate x:Key="FrameTemplate" TargetType="navigation:Frame">

 

 

<telerik:RadTransitionControl Content="{TemplateBinding Content}" Duration="00:00:01"

 

ContentTemplate="{TemplateBinding ContentTemplate}">

 

 

<telerik:RadTransitionControl.Transition>

 

 

<telerikTransitions:SlideAndZoomTransition />

 

 

</telerik:RadTransitionControl.Transition>

 

 

</telerik:RadTransitionControl>

 

 

</ControlTemplate>

 

 

<Style TargetType="navigation:Frame" x:Key="ContentFrameStyle">

 

 

<Setter Property="Template" Value="{StaticResource FrameTemplate}" />

 

 

</Style>

 

 

</UserControl.Resources>

 

 

 

<Grid x:Name="LayoutRoot" >

 

 

<Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}">

 

 

<StackPanel Margin="5,-5,5,0">

 

 

<Rectangle x:Name="stripe" Height="4" Margin="-5,0" VerticalAlignment="Bottom" StrokeThickness="0" Grid.Row="1">

 

 

<Rectangle.Fill>

 

 

<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

 

 

<GradientStop Color="#FF137CB5" Offset="0"/>

 

 

<GradientStop Color="#FF2CB2FB" Offset="1"/>

 

 

</LinearGradientBrush>

 

 

</Rectangle.Fill>

 

 

</Rectangle>

 

 

<Path x:Name="stripe_left" Data="M0,0 L5,0 L5,5 z" HorizontalAlignment="Left" Height="4" Margin="-5,0,0,-4" Stretch="Fill" StrokeThickness="0" VerticalAlignment="Bottom" Width="5" UseLayoutRounding="False" Grid.Row="1">

 

 

<Path.Fill>

 

 

<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

 

 

<GradientStop Color="#FF004872"/>

 

 

<GradientStop Color="#FF197BAD" Offset="1"/>

 

 

</LinearGradientBrush>

 

 

</Path.Fill>

 

 

</Path>

 

 

<Rectangle x:Name="shadow_A" Height="10" VerticalAlignment="Bottom" StrokeThickness="0" Margin="0,0,0,-10" Grid.Row="1">

 

 

<Rectangle.OpacityMask>

 

 

<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">

 

 

<GradientStop Color="White"/>

 

 

<GradientStop Offset="0.9" Color="#4C000000"/>

 

 

</LinearGradientBrush>

 

 

</Rectangle.OpacityMask>

 

 

<Rectangle.Fill>

 

 

<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

 

 

<GradientStop Color="#4C000000" Offset="0"/>

 

 

<GradientStop Offset="0.6"/>

 

 

</LinearGradientBrush>

 

 

</Rectangle.Fill>

 

 

</Rectangle>

 

 

<Path x:Name="stripe_right" Data="M0,0 L5,0 L0,5 z" HorizontalAlignment="Right" Height="4" Margin="0,0,-5,-4" Stretch="Fill" StrokeThickness="0" VerticalAlignment="Bottom" Width="5" UseLayoutRounding="False" Grid.Row="1">

 

 

<Path.Fill>

 

 

<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">

 

 

<GradientStop Color="#FF004872"/>

 

 

<GradientStop Color="#FF197BAD" Offset="1"/>

 

 

</LinearGradientBrush>

 

 

</Path.Fill>

 

 

</Path>

 

 

<!--TRANSITIONS -->

 

 

<!-- -->

 

 

<navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Template="{StaticResource FrameTemplate}"

 

Source="/Dashboard" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">

 

 

<navigation:Frame.UriMapper>

 

 

<uriMapper:UriMapper>

 

 

<uriMapper:UriMapping Uri="" MappedUri="/Views/Dashboard.xaml"/>

 

 

<uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>

 

 

</uriMapper:UriMapper>

 

 

</navigation:Frame.UriMapper>

 

 

</navigation:Frame>

 

 

</StackPanel>

 

 

</Border>

 

 

<Grid Style="{StaticResource NavigationOuterGridStyle}">

 

 

<Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">

 

 

<!--<Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}" HorizontalAlignment="Left" Margin="25,0,0,0" Height="60">-->

 

 

<StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}" Height="60">

 

 

<!--<ContentControl Style="{StaticResource LogoIcon}"/>-->

 

 

<Image Margin="5,0,10,0" Width="61" Height="53" Source="/USMRT;component/Images/hud.png">

 

 

</Image>

 

 

<StackPanel>

 

 

<TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Margin="0,10,0,0"

 

Text="{Binding Strings.ApplicationName, Source={StaticResource ApplicationResources}}" Height="40" />

 

 

<TextBlock x:Name="ushud" Style="{StaticResource ApplicationNameStyle2}" Margin="0,-15,0,0"

 

Text="U.S. Department of " Height="20" />

 

 

</StackPanel>

 

 

<Image Margin="5,-10 ,10,0" Width="61" Height="53" HorizontalAlignment="Right" Source="/USMRT;component/Images/USFlag.jpg">

 

 

</Image>

 

 

 

</StackPanel>

 

 

<!--</Border>-->

 

 

<Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}" Margin="0,0,6,0" Width="354">

 

 

<StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">

 

 

<HyperlinkButton x:Name="lnkDashboard" Style="{StaticResource LinkStyle}"

 

NavigateUri="/Dashboard" TargetName="ContentFrame" Content="{Binding Path=Strings.DashboardTitle, Source={StaticResource ApplicationResources}}"/>

 

 

<Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>

 

 

<HyperlinkButton x:Name="lnkReports" Style="{StaticResource LinkStyle}"

 

NavigateUri="/Reports" TargetName="ContentFrame" Content="{Binding Path=Strings.ReportsPageTitle, Source={StaticResource ApplicationResources}}"/>

 

 

<Rectangle x:Name="Divider2" Style="{StaticResource DividerStyle}"/>

 

 

<HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}"

 

NavigateUri="/About" TargetName="ContentFrame" Content="{Binding Path=Strings.AboutPageTitle, Source={StaticResource ApplicationResources}}"/>

 

 

</StackPanel>

 

 

</Border>

 

 

<!--<Rectangle Fill="{StaticResource AccentBrush}" Height="1" HorizontalAlignment="Stretch" Grid.Row="1"/>-->

 

 

</Grid>

 

 

<!--<Border Style="{StaticResource LoginContainerStyle}">

<login:LoginStatus/>

</Border>-->

 

 

 

<Grid Style="{StaticResource FooterGridStyle}" VerticalAlignment="Bottom">

 

 

<StackPanel>

 

 

<TextBox Text="© 2012 U.S. Department of Housing &amp; Urban Development" HorizontalAlignment="Center" FontSize="10" Margin="0,0,0,0" BorderThickness="0" Foreground="Silver" Background="Transparent"/>

 

 

</StackPanel>

 

 

</Grid>

 

 

</Grid>

 

 

<!--<MediaElement x:Name="MediaAudio" Source="Audio/pulse.mp3" />-->

 

 

 

<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="700,20,0,0">

 

 

<!-- SEARCH -->

 

 

<TextBlock Text="Search" HorizontalAlignment="Center" Style="{StaticResource ApplicationNameStyle2}"

 

Margin="4,-3,0,0"/>

 

 

<TextBox x:Name="txtSearch" Width="130" BorderThickness="1" Background="White" SelectionBackground="White" SelectionForeground="Navy" TabIndex="-1" ToolTipService.ToolTip="Enter Search Term" Height="25" FontSize="12" Margin="4,-3,0,0">

 

 

<TextBox.Effect>

 

 

<DropShadowEffect ShadowDepth="2"/>

 

 

</TextBox.Effect>

 

 

</TextBox>

 

 

</StackPanel>

 

 

</Grid>

 

 

 

</

 

 

UserControl>


0
Miroslav Nedyalkov
Telerik team
answered on 02 Apr 2012, 07:57 AM
Hello Jon,

I was able to reproduce the problem. It seems that the exception is thrown only when the Frame is measured with infinite size, so a possible work-around is to either set width and height to the Frame control or to replace the StackPanel it is hosted in with a Grid panel. Hope this work-around works for you.

I logged this issue in PITS where you can track its progress.

Kind regards,
Miroslav Nedyalkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jon_BCV
Top achievements
Rank 1
answered on 02 Apr 2012, 01:46 PM
Thanks.. !
That worked
Tags
TransitionControl
Asked by
Jon
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Jon
Top achievements
Rank 1
Jon_BCV
Top achievements
Rank 1
Share this question
or