Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Creating Text Boxes inside PDF Viewer Presenter

$
0
0

Thanks for your reply Petya,

 

For the most part you are right. It is theoretically possible using that code. However there is a problem: The text box that is inserted in the page using this method, never receives the keyboard focus and therefore user cannot enter anything in it.  

 

This is how I did it: In the code that you mentioned, I added the following code snippet inside HighlightUILayer.cs in the Initialize function so that a text box appears on the top left side of each page:

this.container.Children.Add(newTextBox
{
    Margin= newSystem.Windows.Thickness(50),
    Width = 200,
    Height = 30,
    Text = "Test",
    IsEnabled = true,
    Background = newSolidColorBrush(Colors.Red)
});

 

Do you think this is solvable?

 

Regards,

Farshid 

 

 

 


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>