void MakeTransparent() { try { _overlayHolder.GetType()?.GetProperty("RenderOperation", BindingFlags.Public | BindingFlags.Instance)?.SetValue(_overlayHolder, 2); } catch (Exception e) { Log.Error(UIControls.Tag, $"Error MakeTransparent : {e.Message}"); } }
internal static T As <T>(this EvasObject view) where T : EvasObject { var convertedView = view as T; if (convertedView == null) { throw new ArgumentOutOfRangeException(Invariant($"Child of type '{view.GetType()}' is not assignable to '{typeof(T)}'.")); } return(convertedView); }