private void xScrollViewer_LayoutUpdated(object sender, EventArgs e) { xStack.Width = xScrollViewer.ActualWidth; }