Tuesday 2 March 2010

Removing the DocumentViewer search text box

Here is the complete code required to create a custom control hosting the document viewer without the search text box. This control is ready to be dropped onto any design surface (WPF or Winforms)

NOTE: You need to add a reference to the PresentationUI.dll assembly. For some reason I could not find this assembly in the .Net references dialog but I was able to find it on my computer at
the following locations

C:\WINDOWS\assembly\GAC_MSIL\PresentationUI\3.0.0.0__31bf3856ad364e35\PresentationUI.dll
C:\WINDOWS\Microsoft.NET\Framework\v3.0\WPF\PresentationUI.dll

No comments:

Post a Comment