2019-3-20-UWP-How-to-custom-RichTextBlock-right-click-menu
2024-09-08 09:53:37
原文:2019-3-20-UWP-How-to-custom-RichTextBlock-right-click-menu
title | author | date | CreateTime | categories |
---|---|---|---|---|
UWP How to custom RichTextBlock right click menu
|
lindexi
|
2019-03-20 09:54:54 +0800
|
2019-3-20 9:46:7 +0800
|
UWP
|
We can find the default RichTextBlock will show the copy
and the select all
menu when we right click it.
If you think the default menu is too boring, try customizing the RichTextBlock right click menu.
We can use ContextFlyout to custom RichTextBlock right click menu.
<RichTextBlock HorizontalAlignment="Center" VerticalAlignment="Center">
<RichTextBlock.ContextFlyout>
<MenuFlyout>
<MenuFlyoutItem Text="1" />
<MenuFlyoutItem Text="2" />
</MenuFlyout>
</RichTextBlock.ContextFlyout>
<Paragraph>Welcome to my blog http://blog.lindexi.com I write some UWP blogs</Paragraph>
</RichTextBlock>
Run the code and you can see this image.
All code is in github
c# - How can I change the right click menu of a RichTextBlock in UWP - Stack Overflow
最新文章
- zookeeper 应用
- ssl小结
- 【转】arcgis server site 快速恢复与重建
- IE10、IE11 无法写入Cookie
- 【HDU 3435】 A new Graph Game (KM|费用流)
- Dungeon Master(poj 2251)
- AbpZero--4.不使用谷歌字体,提升加载速度
- win8.1 64位+oracle11g R2 64位 +powerdesigner破解版 64位+PL/SQL
- Linux(3)用户和权限管理
- 前端框架Vue入门
- JavaSE语法基础(3)---函数、数组
- cross-env 兼容跨平台运行脚本
- [PHP] 工厂模式的日常使用
- Linux Shell 用法
- 用列表实现一个简单的图书管理系统 python
- Java Heap Dump On OutOfMemoryError
- Jfrog 与 jenkins Sonarqube的 测试样例 (From jfrog 培训)
- Delphi之Exception获得错误信息(简单好理解)
- HDU5399-多校-模拟
- pip 设置国内源