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

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

License

Notifications You must be signed in to change notification settings

colinkiama/betterContextMenuUWP

Repository files navigation

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