Skip to content

Instantly share code, notes, and snippets.

@joe-oli
Created January 18, 2024 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joe-oli/567aa1ab5f3944af3a19b0324157eba0 to your computer and use it in GitHub Desktop.
Save joe-oli/567aa1ab5f3944af3a19b0324157eba0 to your computer and use it in GitHub Desktop.
Basic WPF Xaml
<Window x:Class="WpfApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<StackPanel>
<Expander Header="Expander 1">
<UniformGrid Rows="2" Columns="2">
<Button Content="Button 1"/>
<Button Content="Button 2"/>
<Button Content="Button 3"/>
<Button Content="Button 4"/>
</UniformGrid>
</Expander>
<Expander Header="Expander 2">
<UniformGrid Rows="2" Columns="2">
<Button Content="Button 5"/>
<Button Content="Button 6"/>
<Button Content="Button 7"/>
<Button Content="Button 8"/>
</UniformGrid>
</Expander>
</StackPanel>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment