Example #1
0
        static void OnBusyStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            BusyDecorator bd   = (BusyDecorator)d;
            Style         nVal = (Style)e.NewValue;

            bd._busyHost.CreateContent = () => new Control {
                Style = nVal
            };
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\reports\BangDiem_Report.xaml"
                ((QuanLyHS_THPT.reports.BangDiem_Report)(target)).Activated += new System.EventHandler(this.Window_Activated);

            #line default
            #line hidden
                return;

            case 2:
                this.busyDecorator = ((CodeReason.Reports.Controls.BusyDecorator)(target));
                return;

            case 3:
                this.documentViewer = ((System.Windows.Controls.DocumentViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }