首页 > 代码库 > XAML 工具栏的添加

XAML 工具栏的添加

添加工具栏
Grid>
        <DockPanel>
            <ToolBar DockPanel.Dock ="Top">
                <Button Name ="btsave" Click="btsave_Click">
                    <Button.Content>
                        <Image Source ="1.png" Width="20" ></ Image>
                    </Button.Content>
                </Button>
                <Button >
                    <Button.Content>
                        <Image Source ="2.png" Width="20"></ Image>
                    </Button.Content>
                </Button>
                <Button >
                    <Button.Content>
                        <Image Source ="3.png" Width="20"></ Image>
                    </Button.Content>
                </Button>
            </ToolBar>
            <TextBox DockPanel.Dock ="Bottom" Name="txtName"></ TextBox>
        </DockPanel>
    </Grid>

XAML 工具栏的添加