private void Grid_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { if (felement != null) { getSlideAnimation(felement, sx, 0).Begin(); sx = 0; felement = null; e.Handled = true; } if (!isGetW) { FrameworkElement el = sender as FrameworkElement; DependencyObject p = el.Parent; Grid q = p as Grid; UIElementCollection ql = q.Children; var sp = ql.First() as FrameworkElement; buttonListW = sp.ActualWidth; } }
public static BlockCaret GetCaretFromTop(UIElementCollection collection, CaretMovementMode movementMode) => ((IBlockView)collection.First()).GetCaretFromTop(movementMode);