groupbox

Problem with the mouse click on toggleButton in WPF

左心房为你撑大大i 提交于 2019-12-12 12:05:07
问题 I made a custom control template that turns a groupbox into an expander (clicking on the header expands/collapses the content of the groupbox). It works fine except that mouse clicks don't always go through: sometimes it doesn't expand/collapse when you click on the header, esp. when you click inside the "o"s in the word "Colors". I organically thought it was caused by the text in the header trapping mouse clicks which prevent them from going through so I played around with the

WPF: GroupBox dynamic height

老子叫甜甜 提交于 2019-12-12 08:40:52
问题 I have a textbox and datagrid inside of a dockpanel that is in a WPF groupbox. <GroupBox Margin="8,142.04,1.783,230.4" Height="Auto" Header="Desired Meeting Outcomes (decisions or actions)?" MaxWidth="635" MinWidth="550" FontWeight="Bold" FontSize="13.333" BorderBrush="#FFD5DFE5" MinHeight="106" VerticalContentAlignment="Stretch"> <DockPanel Margin="0"> <local:TextboxControl Margin="0" d:LayoutOverrides="Height, HorizontalMargin" Width="538.217" VerticalAlignment="Top" HorizontalAlignment=

C# error provider not working on textboxes in groupbox and tabcontrols

夙愿已清 提交于 2019-12-11 16:59:09
问题 I am trying to implement using error provider to validate that my text boxes are not empty before proceeding with execution. Error provider works on textboxes on the main form but refuses to work on any textbox or combo box that is in a groupbox or tabcontrol. It doesn't check the text boxes, it doesn't display error or waits until the user enter text/select item for the controls that are being checked. Sure if I loose the groupbox or tabcontrol I would get the error check working as normal

WPF - Groupbox header alignment

时光总嘲笑我的痴心妄想 提交于 2019-12-11 02:08:08
问题 in a WPF app, I want to achieve something like this for my groupbox: The goal is creating a template for the header, just to display something in the left (checkbox + text), and something in the right side (button). Unfortunately, the only I get is: what I get http://imageshack.com/a/img513/706/fiaq.png I would like not to do it programmatically, but everything in the XAML (as cleaner as possible). I mean, using grids, columndefinitions, etc... not dealing with margins that will crash

Can I un-check a group of RadioBottoms inside a group box?

别说谁变了你拦得住时间么 提交于 2019-12-10 20:19:03
问题 radio bottoms inside a group Box will be treated as a group of bottoms. They are mutual exclusive. How can I clean up their check states?? I have several radio bottoms, one of them are checked. How can I "clean" (uncheck) all radio bottoms?? "setChecked" doesn't work within a group, I tried to do following things but failed. My code is as following, radioButtom is inside a groupBox, and I want to unchecked it. The first setChecked does works, but the second one doesn't, the radioBottom doesn

XAML: How do I make part of a GroupBox Header bold?

风流意气都作罢 提交于 2019-12-10 19:39:18
问题 I need to make the first part of a GroupBox Header bold, and the other part non-bold. Here is the goal I'm trying to achieve: Students (Max: 32) <GroupBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" Margin="40, 80, 40, 80"> <GroupBox.Header> <Span FontWeight="Bold">Students</Span> (Max: 32) </GroupBox.Header> <StackPanel> ... This gives me the error: The property "Header" is set more than once. I know that it works for TextBlocks, but I can't make it happen for GroupBox Headers:

Disable groupBox including the groupBox name in WPF

拜拜、爱过 提交于 2019-12-10 16:15:58
问题 I have a groupBox name "groupBox".I want to disable whole groupbox includind the name of the group box. I am attaching the image.I hope it would clear the situation <GroupBox Name="groupBox" Grid.Column="0" Grid.Row="1" Margin="2,0,0,0" Header="GroupBox" IsEnabled="False"> <Grid Margin="10,0,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height=".250*"/> <RowDefinition Height=".250*"/> </Grid.RowDefinitions>

delphi group box caption color change

时光怂恿深爱的人放手 提交于 2019-12-10 15:33:33
问题 I m using BDS 2006 and would like to know if u can change the color of Group-box and radio group captions with XPmanifest present in the Project(because it is Always blue in color). 回答1: The only way to this is overriding the Paint method of the TGroupBox. Check this sample which uses a Interposer class type TGroupBox = class(StdCtrls.TGroupBox) //declare this before of your form definition public procedure Paint; override; end; uses Themes; { TGroupBox } procedure TGroupBox.Paint; var H:

FlowLayoutPanel Height bug when using AutoSize

大城市里の小女人 提交于 2019-12-10 14:58:49
问题 I have a form holding a TableLayout with 1 column and 3 rows that holds 2 FlowLayoutPanels and a Text box. All Rows are AutoSize, and the column is set to Percentage=100%. Each FlowLayoutPanel holds several TextBoxes. The FlowLayoutPanels are set: LeftToRight, AutoSize=true, GrowAndShrink, Docking=Fill. The outline is: Form TableLayout (Dock=Fill) FlowLayoutPanel(Dock=Fill, AutoSize=True, GrowShrink) More controls FlowLayoutPanel(Dock=Fill, AutoSize=True, GrowShrink) More controls TextBox

Groupbox with a flowlayout panel inside and autosize = true shrinks like it is empty

时光毁灭记忆、已成空白 提交于 2019-12-10 02:19:13
问题 I have a groupbox that holds a flowlayout panel and the flowlayout panel holds a bunch of controls. I set the flowlayout panel to dock with the parent. Since I don't know how many controls will be in the panel, I set the group box autosize to true and autosizemode to grow and shrink. When I do this the groupbox shrinks as if it is empty. I need the caption so I can't remove the groupbox. Anyone know why this is happening? 回答1: There's nothing that stops the FlowLayoutPanel from shrinking to