Hello!
I have a problem running the SlideAnimation animation in the popup control. I get an exception.
System.Runtime.InteropServices.COMException: 'No installed components were detected.
Cannot resolve TargetProperty ClipStartXProperty on object.'
My code:
public sealed partial class Page
{
public MainPage()
{
this.InitializeComponent();
this.Loaded += MainPage_Loaded;
}
private void MainPage_Loaded(object sender, RoutedEventArgs e)
{
}
private void Button_Click(object sender, RoutedEventArgs e)
{
RadSlideAnimation animation = new RadSlideAnimation();
//animation.StartPoint = new Point(0, 0);
//animation.EndPoint = new Point(200, 200);
animation.Duration = new Duration(TimeSpan.Parse("0:0:0.500"));
animation.MoveDirection = MoveDirection.BottomIn;
animation.Ended += Animation_Ended;
RadAnimationManager.Play(this.animatedPopup, animation);
}
private void Animation_Ended(object sender, AnimationEndedEventArgs e)
{
}
}
And second problem with compiler error:
XamlCompiler error WMC0070: Invalid ContentPropertyAttribute on type 'RadAnimationSelector', property 'Animations' is not found
XamlCompiler error WMC0050: Cannot assign 'RadFadeAnimation' into the read only property 'Animations'
My code:
<Page
x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerikCore="using:Telerik.Core"
mc:Ignorable="d">
<Page.Resources>
<telerikCore:RadFadeAnimation x:Key="rectangleFadeAnimation" />
</Page.Resources>
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Rectangle x:Name="animatedRectangle" Width="100" Height="100" Fill="#FF00BDD2">
<telerikCore:RadAnimationManager.AnimationSelector>
<telerikCore:RadAnimationSelector>
<telerikCore:RadFadeAnimation AnimationName="FadeAnimation" />
</telerikCore:RadAnimationSelector>
</telerikCore:RadAnimationManager.AnimationSelector>
</Rectangle>
</Grid>
</Page>