Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to show the update of UI like an anime when InvalidateVisual not work

$
0
0

private void Label_MouseEnter(object sender, MouseEventArgs e)
        {
            //UserControl3.getInstance().SetValue(Canvas.LeftProperty, this.Width - 300);
            for (int i = 2; i < 100; i += 2)
            {
                UserControl3.getInstance().SetValue(Canvas.TopProperty, 300.0+i);
                Thread.Sleep(100);
                UserControl3.getInstance().InvalidateVisual();
            }
        }

would like to show an anime of usercontrol moving downward when hover over something


No need to worry as many books are not the core and true story


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>