private void ComposeOnIsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { OnRenderSizeChanged(new SizeChangedInfo(this, new Size(Width, Height), true, true)); if (Compose.IsVisible) { Compose.Focus(); } }