Skip to content

DHancock/WinUI3Controls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinUI3Controls

A control library for WinUI 3

It contains two controls, a WinUI implementation of the WPF GroupBox control and a simple palette based color picker. The library is available as a NuGet package.

xwz2

Source...
<Page
    x:Class="TestSolution.ExamplePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:w3c="using:AssyntSoftware.WinUI3Controls"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid Grid.ColumnDefinitions="200" RowDefinitions="Auto,Auto" RowSpacing="40" Margin="60">

        <w3c:GroupBox Heading="Options" CornerRadius="6" HeadingMargin="12">
            <Grid ColumnDefinitions="*,*,*" >
                <Button Grid.Column="0" Content="A" Margin="10"/>
                <Button Grid.Column="1" Content="B" Margin="10"/>
                <Button Grid.Column="2" Content="C" Margin="10"/>
            </Grid>
        </w3c:GroupBox>

        <w3c:SimpleColorPicker Grid.Row="1" IsMiniPalette="True" Color="{x:Bind ChosenColor, Mode=TwoWay}"/>

    </Grid>
</Page>

Further examples can be found in the TestSolution

Release Notes

Version Changes
2.2.1 Improve the GroupBox layout code.
2.2.0 Unseal the GroupBox and SimpleColorPicker classes.
2.1.1 Fixes to the simple color picker control.
2.1.0 Add simple color picker control.
2.0.3 Draw border when the group box is the target of a TeachingTip. #21.
2.0.2 Fix adding size changed event handlers #18.
2.0.1 Fix the high contrast theme brush.
2.0.0 Change from ProjectReunion to WindowsAppSDK.
Added theme resources for light, dark and high contrast themes.
1.0.1 Added the GitHub project URL. No code changes.
1.0.0 Initial release.