private void SelectedFateCountTextBlock_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            double newWidth = ((Grid)FilterTextBox.Parent).ColumnDefinitions[0].ActualWidth - e.NewSize.Width - (e.NewSize.Width > 0 ? 12 : 5);

            FilterTextBox.BeginAnimation(WidthProperty, new DoubleAnimation {
                From = FilterTextBox.ActualWidth, To = newWidth, Duration = TimeSpan.FromMilliseconds(250)
            });
        }
 private void ResizeFilterBox()
 {
     FilterTextBox.BeginAnimation(WidthProperty, null);
     FilterTextBox.Width = ((Grid)FilterTextBox.Parent).ColumnDefinitions[0].ActualWidth - SelectedFateCountTextBlock.ActualWidth - (SelectedFateCountTextBlock.ActualWidth > 0 ? 12 : 5);
 }
Exemple #3
0
 private void ResizeFilterBox()
 {
     FilterTextBox.BeginAnimation(WidthProperty, null);
     FilterTextBox.Width = ActualWidth - SelectedFateCountTextBlock.ActualWidth - (SelectedFateCountTextBlock.ActualWidth > 0 ? 12 : 0);
 }