一个UserControl WPF的不同模板
有人知道如何处理这种情况吗?
我有USERCONTROL,可以将文本放入一列中,并将照片放入第二列中。但是我需要能够改变这两个的顺序。实际上,我需要三个状态:
- 右图上的左 /图像上的文本框,右图右图
- 的右图上的右
- 宽度文本框
上的左图框我希望能够从ComboBox中选择一个选项。这是一个设计示例:
此userControl也是另一个UserControl中的ItemTemplate,因此当我添加此UserControl类型的对象时,它也会添加以查看。最好的方法是什么?
Does someone have an idea how I could handle this case?
I have UserControl where I am able to put text in one column and photo in second column. But I need to be able to change the order of those two. Actually I need three states:
- Textbox on the left / Image on the right
- Image on the left / Textbox on the right
- Full width textbox
I would like to be able to choose one option from combobox. Here is a design example:
This UserControl is also a ItemTemplate in another UserControl so when I add object of type of this usercontrol it will be added to view also. What is the best way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为无论如何它都在数据台板中
或作为usercontrol
since it is in a datatemplate anyway
Or as UserControl