<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jimability &#187; WPF</title>
	<atom:link href="http://www.jimability.com/nl/wat-zeggen-we/category/wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jimability.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 13 Jan 2012 20:32:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to install Surface SDK 1.0 SP1 on Windows 7 64 bit and Visual Studio 2010</title>
		<link>http://www.jimability.com/nl/wat-zeggen-we/2011/08/22/how-to-install-surface-sdk-1-0-sp1-on-windows-7-64-bit-and-visual-studio-2010/</link>
		<comments>http://www.jimability.com/nl/wat-zeggen-we/2011/08/22/how-to-install-surface-sdk-1-0-sp1-on-windows-7-64-bit-and-visual-studio-2010/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 16:46:17 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Multitouch]]></category>
		<category><![CDATA[Surface]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[64 bit]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Microsoft Surface]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.jimability.com/nl/wat-zeggen-we/2011/08/22/how-to-install-surface-sdk-1-0-sp1-on-windows-7-64-bit-and-visual-studio-2010/</guid>
		<description><![CDATA[<p>Install the Microsoft Surface SDK 1.0 on a Windows 7 64 bit machine running Visual Studio 2010 and you can manage your (old) Surface v1 projects.</p>
<p>It's a mouth ful and the article combines information from different sites on the internet in one easy to follow guide.</p>]]></description>
			<content:encoded><![CDATA[<p>Suppose a customer asks you to update that wonderful Surface v1 application you wrote ages ago, but you don’t have the SDK installed on your new development machine running <em>Windows 7 64 bit </em>and <em>Visual Studio 2010</em>, you might have a problem, since the SDK cannot be installed. Bummer. But the change has to be deployed tomorrow! <em>Don’t panic</em>, read on.  Let me guide you through 15 steps. Let me remind you that this procedure is not at all supported by Microsoft, but it works. And that’s the most important part.</p>
<p><strong>UPDATE</strong>: 15/12/2011: Thanks to Florian Haag for the corrections and suggestions. However he&#8217;s still struggling with a very annoying bug. Perhaps you can <a href="http://www.jimability.com/nl/wat-zeggen-we/2011/08/22/how-to-install-surface-sdk-1-0-sp1-on-windows-7-64-bit-and-visual-studio-2010/comment-page-1/#comment-63">help him</a> out.</p>
<h3>1. Relax</h3>
<p>The steps are not at all difficult, but you have to remain focussed. Have a coffee, a tea, a fresh pint of beer.</p>
<h3>2. Prerequisites</h3>
<p>Make sure these are installed:</p>
<ul>
<li>Visual Studio 2010</li>
<li><a href="http://www.microsoft.com/download/en/details.aspx?id=15537">XNA Framework distributable 2.0</a></li>
</ul>
<p>and you have the Surface SDK 1.0 SP1 file (SurfaceSDKWE.msi) somewhere on your computer.</p>
<p>Create a temporary directory where you will put all the edited files, let’s say c:\Surface.</p>
<h3>3. Extract Surface SDK Files</h3>
<p>Start the Visual Studio Command prompt <em>with admin privileges </em>and go to the directory where SurfaceSDKWE.msi file is located.</p>
<p>Execute following command in the command window:</p>
<div style="text-align: left; font-family: 'Courier New';">msiexec /a SurfaceSDKWE.msi /qb TARGETDIR=c:\surface</div>
<p>Make sure you replace c:\surface with the directory name you created in the previous step. This directory will now contain all installation files.</p>
<h3>4. Download Windows 7.0 SDK</h3>
<p>Download the <a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=3138">Windows 7.0 SDK Web installer</a>. We need to use orca (to patch the surface installer) and corflags (to patch the surface executables).</p>
<p><strong>Important:</strong> You need to download Windows 7.0 SDK since this one is working with .Net 3.5. Do not use Windows 7.1 SDK since that one is using .Net 4.0.</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/04_01-download-Orca.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/04_01-download-Orca.png" alt="04_01 - download Orca" /></a></p>
<p>Make sure you check the option <em>.Net development tools</em>.</p>
<h3>5. Install Orca</h3>
<p>Install Orca. The installer file is located in C:\Program Files\Microsoft SDKs\Windows\V7.0\bin</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/05_01-Install-Orca.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/05_01-Install-Orca.png" alt="05_01 - Install Orca" /></a></p>
<h3>6. Patch msi file</h3>
<p>Start Orca and open the SurfaceSDKWE.msi file from the c:\surface directory.</p>
<p>Go to Launch conditions in the left navigation.</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/06_01-Remove-settings.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/06_01-Remove-settings.png" alt="06_01 - Remove settings" /></a></p>
<p>Make sure you select all highlighted entries, then choose Tables-&gt;Drop Row(s) from the menu.</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/06_02-Remove-settings.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/06_02-Remove-settings.png" alt="06_02 - Remove settings" /></a></p>
<p>Close Orca and save the changes.</p>
<h3>7. Patch setupcustomaction.exe</h3>
<p>Open the Windows 7 x64 DEBUG Build Environment command prompt (with admin privileges) that has been installed as part of the Windows 7 SDK. It is labeld <strong>CMD Shell</strong> in the SDK&#8217;s start menu folder.<br />
Change the current directory to c:\surface\Microsoft Surface\v1.0 and execute the corflags command:</p>
<div style="text-align: left; font-family: 'Courier New';">corflags setupcustomaction.exe /32bit+ /force /nologo</div>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/07_01-corflags.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/07_01-corflags.png" alt="07_01 - corflags" /></a></p>
<p>You will receive a warning that you can ignore.</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/07_02-corflags.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/07_02-corflags.png" alt="07_02 - corflags" /></a></p>
<h3>8. Install the Surface SDK</h3>
<p>Now, it is time to install the SDK like you would on the original machine configuration.</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/08_01-install-surface-sdk-1.0.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/08_01-install-surface-sdk-1.0.png" alt="08_01 - install surface sdk 1.0" /></a></p>
<h3>9. Patch the executables</h3>
<p>In order to run the Surface executables on your 64bit system, you need to patch them with corflags. Execute these commands in the Windows 7 x64 DEBUG Build Environment command prompt with admin privileges <strong>(CMD Shell</strong> in the SDK&#8217;s start menu folder<strong>):</strong></p>
<div style="text-align: left; font-family: 'Courier New';">
<p>cd &#8220;C:\Program Files (x86)\Microsoft SDKs\Surface\v1.0\Tools\GenTag&#8221;</p>
<p>for %i in (*.exe) do CorFlags %i /32BIT+ /Force /nologo /UpgradeCLRHeader</p>
<p>cd &#8220;C:\Program Files (x86)\Microsoft SDKs\Surface\v1.0\Tools\Simulator&#8221;</p>
<p>for %i in (*.exe) do CorFlags %i /32BIT+ /Force /nologo /UpgradeCLRHeader</p>
<p>cd &#8220;C:\Program Files (x86)\Microsoft SDKs\Surface\v1.0\Tools\SurfaceStress&#8221;</p>
<p>for %i in (*.exe) do CorFlags %i /32BIT+ /Force /nologo</p>
<p>cd &#8220;C:\Program Files (x86)\Microsoft Surface\v1.0&#8243;</p>
<p>for %i in (*.exe) do CorFlags %i /32BIT+ /Force /nologo</p>
</div>
<h3>10. Verify: Surface Simulator</h3>
<p>If all went well, you will now be able to start the Surface Simulator.</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/10_01-test-simulator.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/10_01-test-simulator.png" alt="10_01 - test simulator" /></a></p>
<h3>11. Copy the VS 2010 templates</h3>
<p>The Surface project and item templates are only installed for Visual Studio 2008, so you have to copy them to the appropriate directory.</p>
<p>You will find the original templates in the directory c:\Program Files (x86)\Microsoft SDKs\Surface\v1.0</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/11-01-kopieer-templates.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/11-01-kopieer-templates.png" alt="11-01 - kopieer templates" /></a></p>
<p>Copy the contents of the <em>Item Templates </em>directory to <span style="font-family: 'Courier New';">c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Surface\1033</span></p>
<p>Copy the contents of the <em>Project Templates </em>directory to <span style="font-family: 'Courier New';">c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Surface\1033</span></p>
<h3>12. Register the templates</h3>
<p>Execute the following command in the command prompt (with admin privileges):</p>
<div style="text-align: left; font-family: 'Courier New';">“c:\program files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe” /setup</div>
<h3>13. Create a new Surface project in VS 2010</h3>
<p>Open Visual Studio 2010, create a new project, but make sure you select “Surface” from the left navigation panel (and not the subdirectory v2.0) and .Net Framework 3.5</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/13_01-visual-studio.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/13_01-visual-studio.png" alt="13_01 - visual studio" /></a></p>
<h3>14. Alter the platform target</h3>
<p>Make sure you alter the platform target of the project to x86. Believe me, you will forget!</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2011/08/14_01-output-x86.png"><img class="illustratie" src="http://www.jimability.com/wp-content/uploads/2011/08/14_01-output-x86.png" border="0" alt="14_01 - output x86" /></a></p>
<p>As Florian Haag mentioned in his comment, you could alter this in the project template. This way, you only have to change this once.</p>
<h3>15. Build and enjoy the work</h3>
<p>That’s it. You have performed all necessary steps. Step 13 &amp; 14 must be repeated for every project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimability.com/nl/wat-zeggen-we/2011/08/22/how-to-install-surface-sdk-1-0-sp1-on-windows-7-64-bit-and-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Surface controls beschikbaar voor Windows 7 Touch (beta)</title>
		<link>http://www.jimability.com/nl/wat-zeggen-we/2010/04/22/surface-controls-beschikbaar-voor-windows-7-touch-beta/</link>
		<comments>http://www.jimability.com/nl/wat-zeggen-we/2010/04/22/surface-controls-beschikbaar-voor-windows-7-touch-beta/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 14:58:51 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[Surface]]></category>
		<category><![CDATA[Surface Toolkit]]></category>
		<category><![CDATA[Touch Pack]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Touch]]></category>

		<guid isPermaLink="false">http://www.jimability.com/?p=399</guid>
		<description><![CDATA[<p>Het werd aangekondigd op PDC09 dat de inspanningen van het <em>Microsoft Surface</em> team niet beperkt zouden blijven tot de Surface hardware.  Meer nog in de toekomst zullen de Surface API en Windows Touch API versmelten. Het is ook logisch, want waarom twee verschillende systemen aanbieden en onderhouden voor iets wat gestoeld is op dezelfde principes: NUI of <em>natural user interface</em>.</p>
<p>Een eerste publiek aanbod is de <strong>Microsoft Surface Toolkit voor Windows Touch</strong>. Het is een reeks controls ontleend aan Microsoft Surface, die nu beschikbaar zijn voor Windows 7 Touch apparaten.  De API is nog in bèta en een officiële releasedatum is nog niet vastgesteld, maar je hoeft nu geen dure Surface tafel meer te kopen om van de voordelen van multitouch (ontwikkeling) te kunnen genieten.</p>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-401 illustratie" title="Screenshot: Surface Collage" src="http://www.jimability.com/wp-content/uploads/2010/04/microsoft-touch-pack.jpg" alt="" width="448" height="296" />Het werd aangekondigd op <strong>PDC09</strong> dat de inspanningen van het <em>Microsoft Surface</em> team niet beperkt zouden blijven tot de Surface hardware.  Meer nog, in de toekomst zullen de Surface API en Windows Touch API versmelten. Het is ook logisch, want waarom twee verschillende systemen aanbieden en onderhouden voor iets wat gestoeld is op dezelfde principes: NUI of <em>natural user interface.</em></p>
<p>Een eerste publiek aanbod is de <strong>Microsoft Surface Toolkit voor Windows Touch</strong>. Het is een reeks controls ontleend aan Microsoft Surface, die nu beschikbaar zijn voor Windows 7 Touch apparaten.  De API is nog in bèta en een officiële releasedatum is nog niet vastgesteld, maar je hoeft nu geen dure Surface tafel meer te kopen om van de voordelen van multitouch (ontwikkeling) te kunnen genieten.</p>
<p>Wat heb je er voor nodig: Visual Studio 2010 en .Net 4.0 (incl. WPF) en natuurlijk een touch screen.</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=801907a7-b2dd-4e63-9ff3-8a2e63932a74">Download de Microsoft Surface Toolkit voor Windows Touch</a><br />
Bekijk de <a href="http://channel9.msdn.com/posts/LarryLarsen/Surface-Toolkit-for-Windows-Touch/">video</a>.</p>
<h3>Microsoft Touch Pack voor Windows 7</h3>
<p>Tegelijk is nu ook het Microsoft Touch Pack voor Windows 7 beschikbaar, een reeks touch applicaties ontwikkeld door het Surface team.</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b152fadd-82e4-4ddb-a46a-aebe49944428&amp;displaylang=en">Download MS Touch Pack voor Windows 7</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimability.com/nl/wat-zeggen-we/2010/04/22/surface-controls-beschikbaar-voor-windows-7-touch-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grando met MultiTouch op Batibouw 2010</title>
		<link>http://www.jimability.com/nl/wat-zeggen-we/2010/03/01/grando-met-multitouch-op-batibouw-2010/</link>
		<comments>http://www.jimability.com/nl/wat-zeggen-we/2010/03/01/grando-met-multitouch-op-batibouw-2010/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 16:45:46 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Multitouch]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Batibouw]]></category>
		<category><![CDATA[Grando Keukens]]></category>

		<guid isPermaLink="false">http://www.jimability.com/?p=385</guid>
		<description><![CDATA[<p>Grando Keukens pakt uit op <em>Batibouw 2010</em> met een heel interactieve stand: maar liefst 6 interactieve schermen werden geplaatst waar je de Grando-catalogus kan doorzoeken, je keuzes naast elkaar plaatsen en samen op zoek kan gaan naar je favoriete keuken.<br />Wil je thuis nog eens alles rustig bekijken, dan kan je ook het digitale Inspiratieboek bestellen door je gegevens achter te laten op één van de multi-touch schermen.</p> <p>Jimability schreef de multi-touch software die op deze schermen draait.</p><p>Ga het zelf eens uitproberen op Batibouw (nog tot 7 maart) in Hall 11 van de Brussels Expo.</p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.grandokeukens.be/site/default.asp">Grando Keukens</a> pakt uit op Batibouw 2010 met een heel interactieve stand: maar liefst 6 interactieve schermen werden geplaatst waar je de Grando-catalogus kan doorzoeken, je keuzes naast elkaar plaatsen en samen op zoek kan gaan naar je favoriete keuken. Wil je thuis nog eens alles rustig bekijken, dan kan je ook het digitale Inspiratieboek bestellen door je gegevens achter te laten op één van de multi-touch schermen.</p>
<p style="text-align: center;"><img class="illustratie size-full wp-image-387  aligncenter" title="Grando en Jimability op Batibouw 2010" src="http://www.jimability.com/wp-content/uploads/2010/02/GrandoBatibouw2010.jpg" alt="" width="618" height="464" /><em>Stilte voor de storm: laat het grote publiek nu maar komen</em></p>
<p><a href="http://www.displax.be/">Ocular</a> zorgde voor de high-tech hardware (de multitouch schermen).<br />
<strong>Jimability </strong>schreef de multi-touch software die op deze schermen draait, op basis van Windows 7 en Microsoft .Net.</p>
<p><em>Ga het zelf eens uitproberen op Batibouw (nog tot 7 maart) in Hall 11 van de Brussels Expo.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimability.com/nl/wat-zeggen-we/2010/03/01/grando-met-multitouch-op-batibouw-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manipulation, MatrixTransformation en Canvas.Top, Canvas.Left</title>
		<link>http://www.jimability.com/nl/wat-zeggen-we/2010/01/31/manipulation-matrixtransformation-en-canvas-top-canvas-left/</link>
		<comments>http://www.jimability.com/nl/wat-zeggen-we/2010/01/31/manipulation-matrixtransformation-en-canvas-top-canvas-left/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 16:17:37 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Multitouch]]></category>
		<category><![CDATA[Technisch]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Manipulation]]></category>
		<category><![CDATA[Matrix]]></category>
		<category><![CDATA[Positioning]]></category>
		<category><![CDATA[WPF 4]]></category>

		<guid isPermaLink="false">http://www.jimability.com/nl/wat-zeggen-we/2010/01/31/manipulation-matrixtransformation-en-canvas-top-canvas-left-2/</guid>
		<description><![CDATA[<p>Een van de meest voor de hand liggende multitouch-toepassingen is het manipuleren van beelden: scale, rotate and translate. Met de <strong>Manipulation events</strong> van WPF4 (op Windows 7) is dit eenvoudig. Het komt erop neer de matrix van de transformatie aan te passen.</p><p>In een eenvoudig voorbeeld, bleek dit te werken. Maar in een echt project-voorbeeld kreeg ik het verkleinen/vergroten en roteren niet goed. Het leek alsof deze gebeurden tegenover een center-punt dat ver buiten het gemanipuleerd object lagen. Na lang zoeken en een paar suggesties van Anson Tsao kwam ik eruit.</p>]]></description>
			<content:encoded><![CDATA[<p>Een van de meest voor de hand liggende multitouch-toepassingen is het manipuleren van beelden: <em>scale, rotate and translate.</em> Met de<em> </em><strong>Manipulation events</strong> van WPF4 (op Windows 7) is dit eenvoudig. Het komt erop neer de matrix van de transformatie aan te passen.</p>
<p>In een eenvoudig voorbeeld, bleek dit te werken. Maar in een echt project-voorbeeld kreeg ik het verkleinen/vergroten en roteren niet goed. Het leek alsof deze gebeurden tegenover een center-punt dat ver buiten het gemanipuleerd object lagen. Na lang zoeken en een paar suggesties van Anson Tsao kwam ik eruit.</p>
<p><img class="illustratie aligncenter" title="Screenshot: Touch Manipulation Issue" src="http://www.jimability.com/wp-content/uploads/2010/01/TouchTransformIssue2.png" alt="Screenshot: Touch Manipulation Issue" width="472" height="395" /> Het exact positioneren van een image door middel van <strong>Canvas.Top</strong> en <strong>Canvas.Left </strong>conflicteert met het gebruik van <strong>RenderTransformations</strong>.  Je kan beter je positionering in de MatrixTransformation zetten:</p>
<p class="code">&lt;Image Source=&#8221;/TouchTransformIssue;component/images/Koala.jpg&#8221; Width=&#8221;200&#8243; x:Name=&#8221;imageKoala&#8221; IsManipulationEnabled=&#8221;True&#8221;&gt;<br />
&lt;Image.RenderTransform&gt;<br />
<strong> &lt;MatrixTransform Matrix=&#8221;1,0,0,1,200,100&#8243;/&gt;</strong><br />
&lt;/Image.RenderTransform&gt;<br />
&lt;/Image&gt;</p>
<p>In bijgaande code kan je het effect zien door Canvas.Top/Canvas.Left te gebruiken.</p>
<p>(<a href="http://www.jimability.com/wp-content/uploads/2010/01/TouchTransformIssue.zip">download code</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimability.com/nl/wat-zeggen-we/2010/01/31/manipulation-matrixtransformation-en-canvas-top-canvas-left/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPF4 Beta 2 (Preview)TouchDown bug</title>
		<link>http://www.jimability.com/nl/wat-zeggen-we/2010/01/25/wpf4-beta-2-previewtouchdown-bug/</link>
		<comments>http://www.jimability.com/nl/wat-zeggen-we/2010/01/25/wpf4-beta-2-previewtouchdown-bug/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 11:42:27 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Getest]]></category>
		<category><![CDATA[Multitouch]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[PreviewTouchDown]]></category>
		<category><![CDATA[WPF 4]]></category>

		<guid isPermaLink="false">http://www.jimability.com/?p=350</guid>
		<description><![CDATA[Werkend met de Touch Events van WPF4 Beta 2, kwam ik op een vervelend bugje. Blijkbaar worden de Touch<strong>Down</strong> en PreviewTouch<strong>Down</strong> events pas afgevuurd net vóór TouchUp en PreviewTouchUp. Dit is niet alleen zo bij je eigen EventHandlers, maar ook het default gedrag van bv. Buttons.<p>En toch, toch had ik het al zien werken.</p><p>Via Szymon Kobalczyk's Blog kwam ik op de IsManipulationEnabled property. Het komt er hier op neer: als je IsManipulationEnabled op true zet, dan komen de TouchDown en PreviewTouchDown events wél goed door.</p><p>Maar ik vond nog meer...</p>]]></description>
			<content:encoded><![CDATA[<p>Werkend met de Touch Events van WPF4 Beta 2, kwam ik op een vervelend bugje. Blijkbaar worden de TouchDown en PreviewTouchDown events pas afgevuurd net vóór Touch<strong>Up</strong> en PreviewTouch<strong>Up</strong>. Dit is niet alleen zo bij je eigen EventHandlers, maar ook het default gedrag van bv. Buttons.</p>
<p>En toch, toch had ik het al zien werken.</p>
<p>Via <a href="http://geekswithblogs.net/kobush/archive/2009/10/28/135767.aspx">Szymon Kobalczyk&#8217;s Blog</a> kwam ik op de <strong>IsManipulationEnabled</strong> property.  Normaal gezien gebruik ik deze alleen in combinatie met de Manipulation events (Delta, Starting, &#8230;).</p>
<p>Het komt er hier op neer: als je IsManipulationEnabled op true zet, dan komen de TouchDown en PreviewTouchDown events wél goed door.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-351" title="Screenshot: test applicatie voor (Preview)TouchDown events" src="http://www.jimability.com/wp-content/uploads/2010/01/WPF4PreviewTouchDownIssue.png" alt="" width="550" height="298" /></p>
<p>Maar ik vond nog meer. Het volstaat om de property <em>aan en vervolgens weer af te zetten</em> opdat de events zouden doorkomen.</p>
<p>Je kan het zelf uitproberen. Bij (Preview)TouchDown van de Border controls, wordt de rand dikker getekend.</p>
<p><a href="http://www.jimability.com/wp-content/uploads/2010/01/TouchDownIssue.zip">Download Source code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimability.com/nl/wat-zeggen-we/2010/01/25/wpf4-beta-2-previewtouchdown-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

