将手风琴控件放置在画布中时无法将其放置在画布中,然后无法看到其中的内容?我们可以在画布中使用手风琴吗? [英] I cant place accordion control inside a canvas when placing inside a canvas then contentents inside it cant see?can we use accordion inside a canvas.?

查看:99
本文介绍了将手风琴控件放置在画布中时无法将其放置在画布中,然后无法看到其中的内容?我们可以在画布中使用手风琴吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在画布中放置手风琴控件时无法将其放置在画布中,然后看不到它的内容吗?我们可以在画布中使用手风琴吗??

I cant place accordion control inside a canvas when placing inside a canvas then contentents inside it cant see?can we use accordion inside a canvas.?

推荐答案

I在WPF中知道,如果您没有明确告诉Canvas一定大小,那么Canvas就不会发挥公平的作用,这可能是问题吗?
I know in WPF, the Canvas does not play fair if you don''t explicitly tell it to be a certain size, might that be the issue ?


就像Christian提到的那样...

Canvas不会布局其子级,因此您需要指定手风琴的Width/Height和位置.
Like Christian mentioned...

A Canvas doesn''t layout its children, so you need to give the accordion Width/Height and a position.


我不明白为什么要将手风琴放在画布中.

手风琴本身就是内容占位符,应按原样使用.
I dont see why you should be placing the accordion inside a canvas.

An accordion is itself a content placeholder and should be used as such.


这篇关于将手风琴控件放置在画布中时无法将其放置在画布中,然后无法看到其中的内容?我们可以在画布中使用手风琴吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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