colinkiama / betterContextMenuUWP

Gives you a more powerful and useful context menu for your UWP Windows 10 app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

betterContextMenuUWP

Gives you a more powerful and useful context menu for your UWP Windows 10 app.

alt-text

How to install

Available as Nuget Package. Search for: "betterContextMenu.ColinKiama" or enter this command into Nuget Package Manager: "Install-Package betterContextMenu.ColinKiama"

How to use this

First, create a TextBlock with the IsTextSelectionEnabled property set to 'true' then...

//Inside the SelectionChanged event of a TextBlock
private void myTextBlock_SelectionChanged(object sender, RoutedEventArgs e)
{
  var texBlockToUse = (TextBlock)sender;
  betterContextMenu.betterContextMenu.setContextMenu(textblockToUse);
}

Yup it's that easy! 😋

About

Gives you a more powerful and useful context menu for your UWP Windows 10 app.

License:The Unlicense


Languages

Language:C# 100.0%