コード例 #1
0
 private void ButtonsOpacityTo0_Completed(object sender, EventArgs e)
 {
     if (State == MyStates.ResultsDisplaying)
     {
         ScanResults.BeginAnimation(Border.HeightProperty, CloseButtonBarMove);
     }
     else if (State == MyStates.IpListDisplaying)
     {
         IpList.BeginAnimation(Border.HeightProperty, CloseIpListButtonBarMove);
     }
 }
コード例 #2
0
        private void BeginBackSwapAnimation()
        {
            ScanResults.Visibility = Visibility.Visible;
            TranslateTransform t = new TranslateTransform();

            ScanResults.RenderTransform = t;

            TranslateTransform t2 = new TranslateTransform();

            IpList.RenderTransform = t2;

            IpList.BeginAnimation(Border.OpacityProperty, SwapOpacityTo0);
            ScanResults.BeginAnimation(Border.OpacityProperty, SwapOpacityTo1);

            t.BeginAnimation(TranslateTransform.XProperty, SwapResultXMove);
            t.BeginAnimation(TranslateTransform.YProperty, SwapResultYMove);

            t2.BeginAnimation(TranslateTransform.XProperty, SwapIpListXMove);
            t2.BeginAnimation(TranslateTransform.YProperty, SwapIpListYMove);
        }
コード例 #3
0
 private void OpenIpListButtonBar()
 {
     IpList.BeginAnimation(Border.HeightProperty, OpenIpListButtonBarMove);
 }