WPF UserControl Embedded Animation
Posted
by Matt B
on Stack Overflow
See other posts from Stack Overflow
or by Matt B
Published on 2010-06-18T10:40:35Z
Indexed on
2010/06/18
10:43 UTC
Read the original article
Hit count: 283
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.
© Stack Overflow or respective owner