Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static IFluentTemplateItem Center(this IFluentTemplateItem templateItem)
        {
            templateItem.Set(FrameworkElement.HorizontalAlignmentProperty, HorizontalAlignment.Center);
            templateItem.Set(FrameworkElement.VerticalAlignmentProperty, VerticalAlignment.Center);

            return(templateItem);
        }