How do you change the color of the border on a group box?
In C#.NET I am trying to programmatically change the color of the border in a group box. ...
In C#.NET I am trying to programmatically change the color of the border in a group box. ...
Hi guys, Have a look at this very simple example WPF program: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <GroupBox> <GroupBox.Header> <Che...
On my system, the caption of a groupbox is always a dark blue colour, how do I change this? The answer to How do you change the color of the border on a group box? shows how I can override the drawing of the caption and border, but I don't want to have to deal with Visual Styles and drawing rounded corners and the like. ...
How do you change the text color of a group box in C#? The "documentation" doesn't even mention this, and Googling hasn't turned up an answer. Thanks! Alan ...
I defined a DataTemplate for the header of my GroupBoxes: <Style x:Key="GroupBoxHeaderStyle" TargetType="{x:Type GroupBox}"> <Setter Property="Foreground" Value="White"></Setter> <Setter Property="HeaderTemplate"> <Setter.Value> <DataTemplate> <Tex...
Hi, I am using Visual Studio 6.0 (VC++ with MFC) in Windows XP platform. I am trying to create a group box with the title of the group box as a check box. My intention is this: If the check box is enabled, the controls inside the group box should be enabled; or else disabled. Is this possible to accomplish? If yes, please give me some ...
Aren't both doing the same thing? How is each different from the other in case of the windows forms application. ...
It seem that GroupBox can only contain one element, if I place more than one it's won't go inside(or get deleted in blend). Is this by design or am I doing something wrong? ...
I want to insert a group box in the form and put in 3 radio buttons in it. Are there any advantages in attaching the 3 radio buttons to the groupbox.? Cab we even do that? If I have to do it how do i attach the 3 radio buttons to the groupbox so that they become part of the group box and not separate components on the form? ...
The WinForms GroupBox control doesn't support MouseMove (or at least, not consistently), and I don't understand why. Since it descends from Control, it does have a MouseMove event, but GroupBox explicitly reintroduces it with Browsable(false), so it's not shown in the Property Grid. You can hook the MouseMove event at runtime, and somet...
I have a set of triggers in a XAML form, and for the life of me I can't figure out why one set works, and the other doesn't, despite being bound to the exact same variable. First, the triggers that do work: <StackPanel Orientation="Vertical" Margin="25,0,0,0"> <StackPanel.Style> <Style TargetType="{x:Type StackPanel}"> ...
Is it possible to set the position alignment for a groupbox header in WPF? the default is to place in the top left corner of the groupbox outline but I would like it to be centered at the top. I know that you can set the properties of the text using: <GroupBox Grid.Row="1" HorizontalAlignment="Center"> <GroupBox.Header> <TextB...
Hi, Easy one, I would like to have a GroupBox with no header space The closest thing is a border, but the border "by default" does not have the same Style as the group box. What's the easiest way (least xaml / code) to get the desired GroupBox ? Thanks ...
I have a groupbox (BS_GROUPBOX) like this: http://i50.tinypic.com/34osspd.png (Sorry, new users like me cannot insert images directly) The text of header is sets dynamicaly. I need to determine that current text fit width or not. I use GetTextExtentPoint() to determine string width (textWidth) and, of course, I know a size of control (...
Sorry, I'm more of a C# person but I'm having to update some legacy MFC code. I'm starting to realize why C# was a good upgrade. ...
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"> ...
I define a headertemplate into a wpf groupbox and the databinding doesn't work. I don't understand why. <GroupBox> <GroupBox.HeaderTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" > <Image Source="/PopuAssuNetApplication.UI.Control;component/Images/Members.png" Width="24" /> ...
I have a weird problem, and I don't know if this is the default behaviour of .Net DataGridView inside a GroupBox/TabControl. I've created a new WinForm project from scratch, and created a GroupBox(changed the text style). Like this: Then, I've created a simple DataGridView, no font style at all, like this: Then, in design mode, I ...
I have a windows form app that contains a number of groupbox controls. This app was first developped in VS2003 and am trying to convert to VS2008 (I have SP1 installed). Trouble is that when I open my app in VS2008 and run it, all groupbox controls are properly displayed with nice looking borders, but when I compile and run the app from...
Hi, I am working on a WinForms app in C#, VS2008. How do I setup Checkbox's in a Groupbox so that I can reference checkbox states at the group level? For example 7 checkboxes for each day of the week. Then I would like to be able get the state when checking via something like: "result = daysOfWeek.Monday;" I'm probably missing t...