Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Latest commit

 

History

History
21 lines (16 loc) · 721 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 721 Bytes

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! 😋