fix project seems hang on start up, declare window property so storyboard can use window property.
Merge pull request #6 from bolek1976/master

fix project seems hang on start up.