Exemplo n.º 1
0
 internal GlassWindowHelper(IntPtr windowHandle, DwmAPI.Margins margins, bool blurClientArea, bool nonClientAreaDrawingEnabled, Action notifyDwmCompositionChanged, Func <ushort, ushort, NonClientArea> nonClientHitTest)
 {
     this.windowHandle            = windowHandle;
     this.dwmIsCompositionEnabled = DwmAPI.IsCompositionEnabled();
     this.margins        = margins;
     this.blurClientArea = blurClientArea;
     this.notifyDwmCompositionChanged = notifyDwmCompositionChanged;
     this.UpdateGlassEffect();
     this.UpdateNonClientArea();
     this.nonClientAreaDrawingEnabled = nonClientAreaDrawingEnabled;
     this.nonClientHitTest            = nonClientHitTest;
     this.UpdateNonClientArea();
 }
Exemplo n.º 2
0
 protected void NotifyCompositionChanged()
 {
     this.dwmIsCompositionEnabled = DwmAPI.IsCompositionEnabled();
     this.UpdateGlassEffect();
     this.notifyDwmCompositionChanged();
 }