开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 4283|回复: 0

wpf dxdo:LayoutPanel用C#语法增加Button

[复制链接]

0

精华

0

贡献

46

赞扬

帖子
23
软币
234
在线时间
16 小时
注册时间
2014-8-29
发表于 2014-8-29 13:33:42 | 显示全部楼层 |阅读模式
本帖最后由 xkq9752 于 2014-8-29 13:39 编辑

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking" xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" x:Class="learnstock.MainWindow"
        Title="MainWindow" Height="529.181" Width="717.321">
    <Grid>

        <dxdo:DockLayoutManager x:Name="dockmanger">
            <dxdo:LayoutGroup x:Name="layoutgroup">
                <dxdo:TabbedGroup>
                    <dxdo:LayoutPanel Caption="Solution Explorer" x:Name="panel1">
                        <Button Content="Button" x:Name="Button1" Click="Button1_Click"/>
                    </dxdo:LayoutPanel>
                </dxdo:TabbedGroup>
            </dxdo:LayoutGroup>
        </dxdo:DockLayoutManager>

    </Grid>
</Window>


请问增么动态增加Button1
<Button Content="Button" x:Name="Button1"/>
也就是这个怎么通过C#语法增加
panel1没有ChildAdd的方法


回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-4-29 07:33

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表