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

Custom Editor with Multiple Views: Document Data and RDT

$
0
0

Hello,

I am trying to create a custom editor that has two views: Designer (WPF) and code (xml).

I found this article: http://msdn.microsoft.com/en-us/library/bb166414.aspx that talks about using a VsTextBuffer object in order to synchronize the views.

I tried to do it but this has raised 2 questions:

  1.  I supplied a VsTextBuffer as the document data in CreateEditorInstance. When I close my pane, it seems that the running document table(RDT) is releasing this buffer, is this the correct behavior?
  2.  Is it true that once an entry is created in the RDT for a certain document data and a file path, its document data cannot be replaced? What happens when opening an additional view with the “Open With Xml (Text) Editor” command after my designer is already opened? Will it use my document data or will it create a new buffer and replace mine in the RDT?

Regards


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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