Open.Core.Common.ViewTemplate.CreateStretchedContentStyle C# (CSharp) Méthode

CreateStretchedContentStyle() private static méthode

private static CreateStretchedContentStyle ( ) : System.Windows.Style
Résultat System.Windows.Style
        private static Style CreateStretchedContentStyle( )
        {
            var style = new Style(typeof(ContentControl));
            style.Setters.Add(new Setter(Control.HorizontalContentAlignmentProperty, HorizontalAlignment.Stretch));
            style.Setters.Add(new Setter(Control.VerticalContentAlignmentProperty, HorizontalAlignment.Stretch));
            return style;
        }
        #endregion