<GroupBox Height="100" Width="200">
<GroupBox.Header>
<Label Foreground="Red">My Red GroupBox Header</Label>
</GroupBox.Header>
</GroupBox>
<GroupBox ...>
<GroupBox.Header ...>
<Whatever ....>
</GroupBox.Header>
<Button ...></Button>
<Button ...></Button>
</GroupBox>
System Name | BY-2021 |
---|---|
Processor | AMD Ryzen 7 5800X (65w eco profile) |
Motherboard | MSI B550 Gaming Plus |
Cooling | Scythe Mugen (rev 5) |
Memory | 2 x Kingston HyperX DDR4-3200 32 GiB |
Video Card(s) | AMD Radeon RX 7900 XT |
Storage | Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM |
Display(s) | Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI) |
Case | Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay |
Audio Device(s) | Realtek ALC1150, Micca OriGen+ |
Power Supply | Enermax Platimax 850w |
Mouse | Nixeus REVEL-X |
Keyboard | Tesoro Excalibur |
Software | Windows 10 Home 64-bit |
Benchmark Scores | Faster than the tortoise; slower than the hare. |
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Header's color and font change" Height="150" Width="300" ResizeMode="NoResize">
<Grid>
<GroupBox Name="grouplang" BorderThickness="3" Margin="20,10,30,20">
<GroupBox.Header>
<TextBlock FontSize="14" Foreground="Green" FontWeight="Bold" FontFamily="Times New Roman">Language</TextBlock>
</GroupBox.Header>
</GroupBox>
<Button Content="Ελληνικά" Height="23" HorizontalAlignment="Left" Margin="50,50,0,0" Name="buttonGR" VerticalAlignment="Top" Width="75" Click="buttonGR_Click" />
<Button Content="English" Height="23" HorizontalAlignment="Left" Margin="150,50,0,0" Name="buttonEN" VerticalAlignment="Top" Width="75" Click="buttonEN_Click" />
</Grid>
</Window>
<Window x:Class="WpfApplication2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Here only the color changes" Height="150" Width="300" ResizeMode="NoResize">
<Grid>
<GroupBox Name="grouplang" BorderThickness="3" FontSize="14" Foreground="Green" FontWeight="Bold" FontFamily="Times New Roman" Margin="20,10,30,20">
<GroupBox.Header>
<TextBlock FontSize="14" Foreground="Green" FontWeight="Bold" FontFamily="Times New Roman">Language</TextBlock>
</GroupBox.Header>
</GroupBox>
<Button Content="Ελληνικά" Height="23" HorizontalAlignment="Left" Margin="50,50,0,0" Name="buttonGR" VerticalAlignment="Top" Width="75" Click="buttonGR_Click" />
<Button Content="English" Height="23" HorizontalAlignment="Left" Margin="150,50,0,0" Name="buttonEN" VerticalAlignment="Top" Width="75" Click="buttonEN_Click" />
</Grid>
</Window>