fix System.InvalidOperationException with AllowsTransparency

i forgot that issue from the old behavior

> System.InvalidOperationException Cannot change AllowsTransparency after a Window has been shown or WindowInteropHelper.EnsureHandle has been called.

Closes #1214