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); } }
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); }
private void OpenIpListButtonBar() { IpList.BeginAnimation(Border.HeightProperty, OpenIpListButtonBarMove); }