Catrobat.IDE.WindowsPhone.Views.Editor.Actions.AddNewScriptBrickView.AddNewScriptBrickView C# (CSharp) Method

AddNewScriptBrickView() public method

public AddNewScriptBrickView ( ) : Windows.UI.Xaml.Input
return Windows.UI.Xaml.Input
        public AddNewScriptBrickView()
        {
            InitializeComponent();

            var bounds = Window.Current.Bounds;

            double height = bounds.Height * 0.88;
            double width = bounds.Width * 0.95;

            CatrobatListView view = this.FindName("Top") as CatrobatListView;

            if (view != null)
            {
                view.ItemWidthLandscape = (int)height;
                view.ItemWidthPortrait = (int)width;
            }
        }