private EdgeInset GetPhoneEdgeInset() { EdgeInset _edgeInset = null; _phoneEdgeInsetDict.TryGetValue(_curPhoneState, out _edgeInset); return(_edgeInset); }
private float GetTextureAspectRatio() { float AspectRatio = 1280f / 720f; if (_curPhoneState != PhoneState.None && _phoneEdgeInsetDict.ContainsKey(_curPhoneState)) { EdgeInset curPhoton = _phoneEdgeInsetDict[_curPhoneState]; AspectRatio = (float)curPhoton.Width / (float)curPhoton.Height; } return(AspectRatio); }