WPF UserControl Embedded Animation
- by Matt B
Hi all,
I have a UserControl called Beetle.xaml which has animation makeing the legs move. So far so good. I added this to my Background.xaml page by decaring the xmlns and xaml as:
xmlns:my="clr-namespace:Intellident.Liber8.GUI.Theme.Jungle"
and
<my:Beetle VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="180,0,0,175">
<UserControl.RenderTransform>
<MatrixTransform x:Name="trnBeetle" />
</UserControl.RenderTransform>
</my:Beetle>
However I get errors telling me that I can't declare my:Name as I'm in the wrong scope. I can't declare my:Name as this doesn't exist. How do I do this, I want to create a path animation on the beetle to make him walk around...
Ta,
Matt.
EDIT: THought I'd point out that both Beetle.xaml and Background.xaml live in Intellident.Liber8.GUI.Theme.Jungle namescope.