Skip to content

edwinvandriel/UWP-UI-Extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UWP UI Extensions

This is a library with UWP UI extensions for Windows 10 Anniversary Edition (Build 14393 and higher) with Visual Studio 2017.

Start using the library with including the namespace on your page like

xmlns:extend="using:EvD.Uwp.UI.Extensions"


ItemsControl extensions

Extend with a controltemplate when your bound items are count zero

<ListView
	extend:ItemsControlExtensions.EmptyDataControlTemplate="{StaticResource EmptyTemplate}">
</ListView>

ListViewBase extensions

Extend with an alternate row color brush

<ListView
	extend:ListViewBaseExtensions.AlternateRowColor="LightGray">
</ListView>

Extend with a custom alternate itemtemplate

<ListView
	extend:ListViewBaseExtensions.AlternateRowItemTemplate="{StaticResource AlternateTemplate}">
</ListView>

UIElement extensions

Extend a UIElement with the accesskey hint. When you've set the AccessKey on a control you get a hint when pressing the ALT key. For more information on the AccessHint property you can go to Microsoft docs. Most of the sample code for the hint is used in this extension.

<Button
	AccessKey="AR"
	extend:UIElementExtensions.ShowAccessKeyHint="True">
</Button>