protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); // This can't be done any earlier than the SourceInitialized event: ExtendGlassFrame(this, new Thickness(-1)); }