Hello @Eduardo Gomez ,
Following up on the problem you encountered in the comments, there is nothing wrong with your UserControl animation, it should be that the `folder button (ItemContainer) is covered when the FloatingPanel appears. You need to start the animation effect outside the ItemContainer. I used the following code to test that it works.
private void myButton_PointerEntered(object sender, PointerRoutedEventArgs e)
{
FloatingPanel.UpdateContent(1);
FloatingPanel.RenderTransform = new TranslateTransform
{
X = -100,
Y = 0
};
FloatingPanel.ShowPanel();
}
private void myButton_PointerExited(object sender, PointerRoutedEventArgs e)
{
FloatingPanel.HidePanel();
}
Since I lack the definition of FolderItem
and rootContainer
variables, I can only do simple tests. You need to make sure that the FloatingPanel does not cover the folder button below by calculating.Thank you