Exemple #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);
        }
Exemple #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);
        }