XBAP Select Page Text

Took an XBAP browser application. XBAP was selected over HTML for some actions on the clipboard, and the application was well received.

Recently, a user asked why he could not select the screen text (and copy to the clipboard), like a regular HTML page. Wow, I didn’t see this, but I completely understood where they came from.

An XBAP application has many forms containing labels and text blocks of information. The user must select and copy this text.

Do I have any options? I do not want to move data to text fields.

+3
source share
1 answer

AFAIK, / . Windows UI. , :

<Style x:Key="FauxLabel" TargetType="{x:Type TextBox}"> 
    <Setter Property="Background" Value="Transparent"/> 
    <Setter Property="BorderBrush" Value="{x:Null}"/> 
    <Setter Property="BorderThickness" Value="4"/> 
    <Setter Property="IsTabStop" Value="False"/> 
</Style>

WebBrowser HTML. , , . , , "" /, HTML...

. = (

+1

Source: https://habr.com/ru/post/1727611/


All Articles