开发者

Silverlight - Is there any way to enable Text selection in Glyphs

开发者 https://www.devze.com 2023-01-20 03:31 出处:网络
We are using Glyphs inside the Canvas to display Unicode string. Is there any way to enable string selection in UI

We are using Glyphs inside the Canvas to display Unicode string.

Is there any way to enable string selection in UI

<Canvas Width="793.76" Height="1122.56" xmlns="http://schemas.microsoft.com/xps/2005/06">
<Glyphs Fill="#ff000000" FontRenderingEmSize="16" StyleSimulations="None" OriginX="75.68" 
 OriginY="90.56" FontUri="/Resources/be908a70-5ed5-43e4-9b83-f1开发者_运维技巧e248a92e83.ttf"
 UnicodeString="Hello XPS World!" />
</Canvas>


There is not an easy way to do this. Most people, when they need to have text that is selectable, use a non-editable TextBox or RichTextBox that has been re-templated to just show the text.

0

精彩评论

暂无评论...
验证码 换一张
取 消