似乎每個人都有自己的Silverlight GroupBox控件。你會推薦哪一個。Silverlight中推薦使用哪種GroupBox控件?
4
A
回答
4
你可以只堅持從Silverlight工具包和風格定期HeaderedContentControl它看起來像一個分組框:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
xmlns:t="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
<Style x:Key="GroupBox" TargetType="t:HeaderedContentControl">
<Setter Property="BorderBrush" Value="LightGray" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Background" Value="White" />
<Setter Property="Foreground" Value="Black" />
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="Padding" Value="4" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="t:HeaderedContentControl">
<Grid Background="{TemplateBinding Background}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4"
Margin="0,8,0,0"
Grid.RowSpan="2" />
<s:Label Background="{TemplateBinding Background}"
Content="{TemplateBinding Header}"
ContentTemplate="{TemplateBinding HeaderTemplate}"
HorizontalAlignment="Left"
Margin="8,0,0,0"
Grid.Row="0" />
<ContentPresenter Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Margin="{TemplateBinding Padding}"
Grid.Row="1" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
1
嗨,我使用的Contrib Silvelight ...的控制功能非常好,有免費的。
該網站是:http://silverlightcontrib.codeplex.com/
你只需要下載二進制庫Binaries - Silverlight Contrib 2010.1.0,並添加DLL的在您的Silverlight項目的參考。
相關問題
- 1. 請推薦WPF/Silverlight控件西裝
- 2. 您會推薦哪種報告工具?
- 3. 您推薦哪種狀態機插件用於Rails?
- 4. 您推薦使用哪種軟件包來解析Java中的XML和JSON?
- 5. 目前推薦使用哪種SQLite設計模式?
- 6. 您推薦使用哪種SOAP XML對象序列化庫?
- 7. 推薦使用哪種PyPy內存分析器?
- 8. Xamarin.Forms/Auth - Mobile Application,推薦使用哪種服務器API?
- 9. 對於JBoss 7.1,推薦使用哪種開源ESB?
- 10. 您推薦與MeteorJS一起使用哪種支付服務?
- 11. asp.net mvc控件集推薦
- 12. 哪些Silverlight版本推薦用於新開發ASP.NET + GIS?
- 13. 推薦odoo使用哪個python版本?
- 14. 哪個UI庫推薦使用Angular2?
- 15. 您推薦使用哪種寶石來實現這種自動化?
- 16. 對於2.4MB XML文件,您會推薦哪種Ruby XML庫?
- 17. 哪種方法是推薦的 - 郵件功能
- 18. PRISM應用推薦哪種程度的模塊化?
- 19. 您推薦哪種Java框架用於NLP和決策制定?
- 20. 您推薦哪種適用於Ruby的Twitter API庫?
- 21. 貸款申請方案中推薦哪種工作流技術?
- 22. Mahout - 推薦給某種人
- 23. GroupBox控件中的圓角
- 24. 你推薦哪個WPF佈局管理器或其他控件?
- 25. 推薦哪個URL結構?
- 26. 要使用哪種數據控件?
- 27. groupbox不充當groupbox與用戶控件中的單選按鈕
- 28. 要使用哪一種 - WPF或Silverlight?
- 29. 您推薦使用哪種語言/框架來實施CMS解決方案?
- 30. 推薦C#的WinForm控件包
這對我來說足夠接近。但爲什麼他們不使用正常的名稱來進行這種控制呢? – 2010-07-12 23:38:49
我猜他們很醜,Silverlight想要重新開始。 :)雖然WPF有一個GroupBox。 – Josh 2010-07-13 05:40:26
在設計風格之前,它就像醜陋一樣。 – 2010-07-13 07:54:31