コード例 #1
0
        /// <summary>
        /// Sets the default view.
        /// </summary>
        private void SetDefaultView()
        {
            var c = new DefaultEmptyController();

            controller.DetailViewController = c;
            controller.RefreshDetailView();
        }
コード例 #2
0
        /// <summary>
        /// Loads the split view.
        /// </summary>
        private void Initialize()
        {
            var c = new DefaultEmptyController();

            controller = new SplitCustomViewController()
            {
                TreeView             = new NSOutlineView(),
                DetailViewController = c
            };

            var cg = new CoreGraphics.CGSize();

            cg.Height = ContainerView.Frame.Height;
            cg.Width  = ContainerView.Frame.Width;
            controller.View.SetFrameSize(cg);

            this.ContainerView.AddSubview(controller.View);
        }