コード例 #1
0
        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);
        }
コード例 #2
0
 public BusyAdorner(UIElement adornedElement, Object userContent)
     : base(adornedElement)
 {
     this.userContentPresenter = BusyStatusManager.WrapUserContent(userContent);
     this.AddVisualChild(this.userContentPresenter);
 }