Beispiel #1
0
        public static IFluentTemplateItem Size(this IFluentTemplateItem templateItem, double width, double height)
        {
            templateItem.Set(FrameworkElement.WidthProperty, width);
            templateItem.Set(FrameworkElement.HeightProperty, height);

            return(templateItem);
        }
Beispiel #2
0
        public static IFluentTemplateItem Center(this IFluentTemplateItem templateItem)
        {
            templateItem.Set(FrameworkElement.HorizontalAlignmentProperty, HorizontalAlignment.Center);
            templateItem.Set(FrameworkElement.VerticalAlignmentProperty, VerticalAlignment.Center);

            return(templateItem);
        }