【问题标题】:line color, line style, line weight combo box线条颜色、线条样式、线条粗细组合框
【发布时间】:2012-05-29 17:28:29
【问题描述】:

我应该使用什么样的控件来开发这样的屏幕 图片框?带有线条样式的组合框?

【问题讨论】:

  • 控件?像一个下拉框?你的问题不清楚。
  • 我在 C# 工具箱中没有看到任何颜色选择器、线条样式、线宽控件。如何在组合框中获得线条样式选择器。
  • 这在 WPF 中会轻而易举,在 WinForms 中会稍微复杂一些。你用的是哪个?
  • @Avner Shahar-Kashtan, @user1415038: C# winforms
  • 在这种情况下,请查看stackoverflow.com/questions/1286248/…,它提供了有关如何手动绘制您自己的组合框项目的答案。

标签: c# winforms user-interface


【解决方案1】:

        <Rectangle Stroke="Black" Margin="5" Width="80" Height="4" StrokeDashArray="4 1 1 3" StrokeThickness="2" StrokeDashOffset="2"></Rectangle>
        <Rectangle Stroke="Black" Margin="5" Width="80" Height="4" StrokeDashArray="4 3" StrokeThickness="2" StrokeDashOffset="2"></Rectangle>
        <Rectangle Stroke="Black" Margin="5" Width="80" Height="4" StrokeDashArray="4 6" StrokeThickness="2" StrokeDashOffset="2"></Rectangle>
        <Rectangle Stroke="Black" Margin="5" Width="80"  Height="4" StrokeDashArray="4 8" StrokeThickness="2" StrokeDashOffset="2"></Rectangle>


    </ComboBox>

【讨论】:

  • 您应该编辑您的答案以包含有关此代码如何回答问题的详细信息和解释。
  • Eres muy corto... que eres de la LOGSE?
猜你喜欢
  • 2015-09-07
  • 2011-01-17
  • 1970-01-01
  • 2014-05-11
  • 1970-01-01
  • 1970-01-01
  • 2022-12-16
  • 2017-05-16
  • 1970-01-01
相关资源
最近更新 更多