Hello
I am currently building an application in WPF since I am pretty new to WPF. I'm having some difficulties. I asked my question, but did not have much success. This is the current situation, the XAML of the main window is below:
<Grid Height="279" HorizontalAlignment="Left" Margin="166,0,0,0" Name="gridScoreboard" VerticalAlignment="Top" Width="808"> <Image Source="pack://application:,,,/Images/Style/Scoreboard.png" Width="517" Height="91" HorizontalAlignment="Left" Margin="138,1,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" /> <Canvas Name="canvasRacePlayer1" Width="14" Height="14" Canvas.Left="33" Canvas.Top="66" Background="Transparent" MouseLeftButtonDown="canvasRacePlayer1_MouseLeftButtonDown" Margin="171,70,623,195" /> <local:ucRaces HorizontalAlignment="Center" Margin="93,62,632,187" Width="78" Visibility="Hidden" x:Name="ucRacesP1" Height="33" /> </Grid>
The user control is hidden from the start (ucRaces), after clicking a small canvas (canvasRacePLayer1) the user control will be shown. However, I would like this user control to βslideβ from right to left from a specific point. As if it will become visible in small steps. I found animation information for rectangles and buttons, but failed for success for custom controls.
Thank you in advance
source share