Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

[VS Plugin] Unable to access WPF user control in Option Dialog

$
0
0
Hi guys,

I am working on a VS extensibility tool that would like to have a page in OptionDialog in VS.
And I am planning to use WPF for UI. I did a test to get myself familiar with the combination of WPF and OptionPage.
However, it is not working as I expect.

My current structure of the design is:
1. A text box textBox in WPF User Control OptionControl
2. OptionControl is created as as ElementHost in OptionControlHost which is inherited from DialogPage
3. Override method Window in OptionControlHost to return the ElementHost object.
4. OptionControlHost is declared in ProvideOptionPage of a OptionTestPackage which is inherited from Package

The test has only UI, no data binding being implemented in it.
However, I am in trouble that, when I try to run this project, the textBox is like it is in ReadOnly mode.
I can't input any text to the box, but I can do focus and delete.

Is there something that I missed?

Viewing all articles
Browse latest Browse all 4410

Trending Articles



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