コード例 #1
0
ファイル: DrawableSection.cs プロジェクト: modulexcite/Eto-1
        public DrawableSection()
        {
            var layout = new DynamicLayout(this);

            layout.BeginVertical();
            layout.BeginHorizontal();
            layout.Add(new Label {
                Text = "Default"
            });
            layout.Add(this.Default(), true);
            layout.Add(new Label {
                Text = "With Background"
            });
            layout.Add(this.WithBackground(), true);
            layout.EndHorizontal();
            layout.EndVertical();
            layout.BeginVertical();
            layout.AddRow(new Label {
                Text = "Large Canvas"
            }, DockLayout.CreatePanel(this.LargeCanvas()));
            layout.EndVertical();

            layout.Add(null);
        }