mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-11-24 16:43:24 +08:00
mdi
This commit is contained in:
@@ -25,24 +25,32 @@ namespace CPF.Toolkit.Demo
|
||||
this.Background = null;
|
||||
var frame = this.Children.Add(new WindowFrame(this, new MdiHost
|
||||
{
|
||||
Children =
|
||||
{
|
||||
new MdiWindow
|
||||
{
|
||||
Title = "test",
|
||||
Content = new WrapPanel
|
||||
{
|
||||
Children =
|
||||
{
|
||||
new Button{ Content = "test" ,Width = 100, Height = 35 },
|
||||
new Button{ Content = "test" ,Width = 100, Height = 35 },
|
||||
new Button{ Content = "test" ,Width = 100, Height = 35 },
|
||||
new Button{ Content = "test" ,Width = 100, Height = 35 },
|
||||
},
|
||||
},
|
||||
}
|
||||
//Children =
|
||||
//{
|
||||
// new MdiWindow
|
||||
// {
|
||||
// Title = "test",
|
||||
// Content = new WrapPanel
|
||||
// {
|
||||
// Children =
|
||||
// {
|
||||
// new Button{ Content = "test" ,Width = 100, Height = 35 },
|
||||
// new Button{ Content = "test" ,Width = 100, Height = 35 },
|
||||
// new Button{ Content = "test" ,Width = 100, Height = 35 },
|
||||
// new Button{ Content = "test" ,Width = 100, Height = 35 },
|
||||
// },
|
||||
// },
|
||||
// }
|
||||
//}
|
||||
}
|
||||
.LoopCreate(5,(i) => new MdiWindow
|
||||
{
|
||||
Title = $"test{i}",
|
||||
Content = new WrapPanel
|
||||
{
|
||||
}
|
||||
}));
|
||||
.LoopCreate(5,k => new Button { Content = $"test{k}",Width = 100, Height = 35 }),
|
||||
})));
|
||||
frame.CaptionBackgrund = "white";
|
||||
frame.CaptionForeground = "black";
|
||||
frame.ControlBoxStroke = "black";
|
||||
|
||||
Reference in New Issue
Block a user