// Use this for initialization void Start() { _currentWidth = Width = View.Width; _currentHeight = Height = View.Height; windowRect = new Rect(X, Y, Width + 8, Height + 8 + toolbarHeight); Center(); Valid = true; View.Show(true); }