作法:将UserControl当作容器 [英] how to: UserControl as a container

查看:81
本文介绍了作法:将UserControl当作容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在WPF中创建了一个由多个控件组成的UserControl,但是其中一个(网格)必须是容器.
Im creating a UserControl in WPF, which formed of several controls, but one of them (a Grid) has to be the container.

推荐答案

这是什么?你是说吗?

Is this what you mean?

<UserControl ...>
  <Grid>
    <!-- more controls here -->
  </Grid>
</UserControl>


这篇关于作法:将UserControl当作容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆