public MultiThreadingBusyAdorner(UIElement adornedElement, Object userContent)
            : base(adornedElement)
        {
            this.userContentPresenter = BusyStatusManager.WrapUserContent(userContent);

            this._busyHost = new BackgroundVisualHost(() =>
            {
                var s = ( ContentPresenter )XamlReader.Load(ms);

                this.ms.Dispose();
                this.ms = null;

                return(s);
            });

            this.AddLogicalChild(this._busyHost);
            this.AddVisualChild(this._busyHost);
        }
Ejemplo n.º 2
0
 public BusyAdorner(UIElement adornedElement, Object userContent)
     : base(adornedElement)
 {
     this.userContentPresenter = BusyStatusManager.WrapUserContent(userContent);
     this.AddVisualChild(this.userContentPresenter);
 }