Ejemplo n.º 1
0
        protected void CreateImageWithPlaceholderAddToChildren(Canvas parent, Thickness margin, double width, double height, string uri, object tag = null)
        {
            Rectangle imagePlaceholder = RectangePlaceholder.CreateImagePlaceholder(width, height);

            imagePlaceholder.Margin = margin;
            parent.Children.Add((UIElement)imagePlaceholder);
            this.CreateImageAddToChildren(parent, margin, width, height, uri, tag);
        }
Ejemplo n.º 2
0
        protected void CreateImageWithPlaceholderAddToChildren(Canvas parent, Thickness margin, double width, double height, string uri, object tag = null)
        {
            Rectangle imagePlaceholder = RectangePlaceholder.CreateImagePlaceholder(width, height);

            ((FrameworkElement)imagePlaceholder).Margin = margin;
            ((PresentationFrameworkCollection <UIElement>)((Panel)parent).Children).Add((UIElement)imagePlaceholder);
            this.CreateImageAddToChildren(parent, margin, width, height, uri, tag);
        }