/// <summary>Sets the size strategy on host.</summary> /// <param name="view">The view.</param> /// <param name="viewContent">Content of the view.</param> private static void SetSizeStrategyOnHost(DependencyObject view, ViewContentControl viewContent) { if (view == null) { return; } if (viewContent == null) { return; } var host = viewContent.SizeStrategyHost; if (host == null) { return; } var gridHost = host as SizeStrategyAwareGrid; if (gridHost == null) { return; } gridHost.SizeStrategy = SimpleView.GetSizeStrategy(view); }
/// <summary>Sets the size strategy on host.</summary> /// <param name="view">The view.</param> /// <param name="viewContent">Content of the view.</param> private static void SetSizeStrategyOnHost(DependencyObject view, ViewContentControl viewContent) { if (view == null) return; if (viewContent == null) return; var host = viewContent.SizeStrategyHost; if (host == null) return; var gridHost = host as SizeStrategyAwareGrid; if (gridHost == null) return; gridHost.SizeStrategy = SimpleView.GetSizeStrategy(view); }