<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.vsto-taskforce.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Thomas's Blog</title><link>http://www.vsto-taskforce.de/blogs/thomasfelber/default.aspx</link><description>Office Business Applications (OBAs), VSTO, openXML</description><dc:language /><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Content Controls: DataBinding for DateTime Picker Content Control doesn’t synchronize content removal to CustomXMLPart</title><link>http://www.vsto-taskforce.de/blogs/thomasfelber/archive/2009/06/03/content-controls-databinding-for-datetime-picker-content-control-does-not-synchronize-content-removal-to-customxmlpart.aspx</link><pubDate>Wed, 03 Jun 2009 21:54:00 GMT</pubDate><guid isPermaLink="false">639fdad0-478c-4c09-962f-2d4ded99d67b:153</guid><dc:creator>Thomas Felber</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;[German version below]&lt;/p&gt;  &lt;p&gt;Using a DataBinding for a DateTime Picker Content Control synchronizes every change, performed through the word GUI to the mapped XmlElement of the corresponding CustomXmlPart, as long as the content is not removed. Removal is only applied to the markup itself, but not to the CustomXmlPart. The following steps describe how to reproduce this issue:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open an empty Word document and insert a DateTime Picker Content Control &lt;/li&gt;    &lt;li&gt;Use your preferred tool (in my case Word Content Control Kit) to create a CustomXmlpart and map one XmlElement to the DateTime Picker Content Control &lt;/li&gt;    &lt;li&gt;Open the document and select a date &lt;/li&gt;    &lt;li&gt;Save the document &lt;/li&gt;    &lt;li&gt;Delete content of the control and save the document again &lt;/li&gt;    &lt;li&gt;Close the document and re-open it &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;The former date is displayed again!&lt;/p&gt;  &lt;p&gt;I’ve pending a ticket concerning this issue and will post any progress on that issue. An sample for that issue can be downloaded from my SkyDrive.&lt;/p&gt;  &lt;p&gt;Update 29.06.2009: Microsoft confirmed this issue as product bug and forwarded that issue to the product group.&lt;/p&gt;  &lt;p&gt;Link: &lt;a href="http://cid-5c18def04c9f44c4.skydrive.live.com/self.aspx/.Documents/BlogSamples/Bug%7C_DTP%7C_CC%7C_NotSynchronizedRemoval.docx"&gt;Bug_DTP_CC_NotSynchronizedRemoval.docx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h3&gt;Content Controls: DataBinding wird bei Löschoperationen im DateTime Picker Content Control nicht angewendet&lt;/h3&gt;  &lt;p&gt;Bindet man ein DateTime Picker Content Control an ein XmlElement in einem CustomXmlPart, wird jede Änderung ohne Probleme synchronisiert – so lange man den Inhalt nicht unter Verwendung der Word GUI löscht. Der Text wird zwar im Word Markup der document.xml-Datei (MainDocumentPart)entfernt, jedoch nicht aus dem CustomXMLPart. Die folgenden Schritte beschreiben die Vorgehensweise um das Verhalten zu reproduzieren:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Erstelle ein neues Word Dokument und füge ein DateTime Picker Content Control ein &lt;/li&gt;    &lt;li&gt;Benutze dein bevorzugtes Tool um ein CustomXmlPart zu erstellen und das Mapping herzustellen &lt;/li&gt;    &lt;li&gt;Öffne das Dokument und wählen ein Datum aus &lt;/li&gt;    &lt;li&gt;Speichere das Dokument &lt;/li&gt;    &lt;li&gt;Lösche den Inhalt des DateTime Picker Content Controls &lt;/li&gt;    &lt;li&gt;Schließe das Dokument und öffne es erneut &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Das zuvor ausgewählte Datum wird angezeigt.&lt;/p&gt;  &lt;p&gt;Ich habe bereits ein Ticket bei MS eröffnet und warte auf Feedback. Sobald es etwas Neues gibt, poste ich weitere Details. Ein Beispieldokument könnt ihr von meinem SkyDrive herunterladen.&lt;/p&gt;  &lt;p&gt;Update 29.06.2009: Microsoft hat hat diesen Sachverhalt als Bug Anwendungsfehler (Product Bug) bestätigt.&lt;/p&gt;  &lt;p&gt;Link: &lt;a href="http://cid-5c18def04c9f44c4.skydrive.live.com/self.aspx/.Documents/BlogSamples/Bug%7C_DTP%7C_CC%7C_NotSynchronizedRemoval.docx"&gt;Bug_DTP_CC_NotSynchronizedRemoval.docx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.vsto-taskforce.de/aggbug.aspx?PostID=153" width="1" height="1"&gt;</description></item></channel></rss>