改变组合框的高度 [英] Changing height of combobox

查看:43
本文介绍了改变组合框的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计,

新手在这里,如果在其他地方得到回答,请道歉。  我做了很多搜索但没有找到任何东西,但我很容易错过它。

Newbie here, so apologies if this has been answered elsewhere.  I did quite a few searches and did not find anything, but I could easily have missed it.

首先进行原型制作,到目前为止我喜欢这个工具,它会节省几天的时间与客户合作。  然而,我仍然坚持如何降低草图样式组合框的高度。  我将字体设置得更小,并设置了height属性,但整体高度保持不变。  我假设这可能是我在代码文件中必须做的更改,与组合框项目有关。 

First prototyping effort, and so far I love the tool, it's gonna save days of work with clients.  I'm stuck on how to reduce the height of the sketch style combobox, however.   I set the font smaller, and the height property, but the overall height stays the same.  I'm assuming this might be a change I have to do in the code file itself, related to the combobox items. 

任何帮助都将受到赞赏......我迄今为止只花了几天追我的尾巴,这在我8岁时很痛苦 - )

Any help would be appreciated...I've spent a couple of days so far just chasing my tail, which is painful at my age 8-)

 

T

 

 

 

推荐答案

草图 - 组合框样式设置为2分钟,您需要更改。 更改仅在您当前正在处理的项目中生效。

The sketch-combobox style has 2 min heights set that you will need to change.  The changes take effect only in the project you are currently working on.

 

有两种方法可以执行此操作:

There are 2 ways to do it:


  1. 编辑模板

  2. 手绘编辑sketchstyles.xaml中的xaml

对于#1,右键单击草图组合框,然后选择编辑模板,编辑当前(或者如果愿意,可以在那里复制,但不会影响其他组合框)。 在对象和时间轴面板中选择模板中的顶级网格,然后在属性面板中搜索minheight或展开布局部分,并设置所需的最小高度。 现在退出模板编辑模式,方法是单击痕迹导航栏中最左侧的项目,或者重新打开您正在处理的上一个文档。 再次选择您的组合框,然后在对象菜单中选择编辑样式 - >编辑当前(或制作副本)。 现在在样式的属性面板中再次找到minheight,设置它。

For #1, right click a sketch combo box, and pick edit-template, edit current (or you can make a copy there if you like, but then it won't affect other combo boxes).  Select the top level grid in the template in the objects and timelines panel, then in the properties panel, either search for minheight or expand the layout section, and set the min height you want there.  Now exit template editing mode by either clicking on the leftmost item in the breadcrumb bar, or by reopening the previous document you were working on.  Select your combo box again and in the object menu, select edit style -> edit current (or make a copy).  Now find minheight again in the properties panel for the style, set it.

 

对于#2,在xaml视图中打开sketchstyles.xaml 。找到combobox-sketch的样式。您将在样式中找到2个最小高度实例,将它们设置为您想要的。

For #2, open sketchstyles.xaml in xaml view. Find the style for combobox-sketch. You will find 2 instances of min-height in the style, set them both to what you want.

 

这两种方法都可以完成完全相同的事情(假设你编辑了当前的,而不是复制)。

Both of these methods accomplish the exact same thing (assuming you did edit current, and not copy).


这篇关于改变组合框的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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