<?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>spatial nodes &#187; error</title>
	<atom:link href="http://blog.minst.net/tag/error/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minst.net</link>
	<description>Thoughts of a lost soul</description>
	<lastBuildDate>Mon, 23 Jan 2012 16:33:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Surface glitches</title>
		<link>http://blog.minst.net/2009/02/18/surface-glitches</link>
		<comments>http://blog.minst.net/2009/02/18/surface-glitches#comments</comments>
		<pubDate>Wed, 18 Feb 2009 11:26:43 +0000</pubDate>
		<dc:creator>stvn</dc:creator>
				<category><![CDATA[TableTop]]></category>
		<category><![CDATA[bastet]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Surface]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://blog.minst.net/?p=169</guid>
		<description><![CDATA[We&#8217;ve got the surface for a while now and have written our first real application. It is based on BruTile and allows you to show various maps, zoom and pan. We created a short movie to show it: Once we got the basics running I tried to edit the XAML to make it look better. [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve got the surface for a while now and have written our first real application. It is based on <a href="http://www.codeplex.com/brutile">BruTile </a>and allows you to show various maps, zoom and pan. We created a short movie to show it:</p>
<p><a href="http://blog.minst.net/2009/02/18/surface-glitches"><em>Click here to view the embedded video.</em></a></p>
<p><span id="more-169"></span>Once we got the basics running I tried to edit the XAML to make it look better. This turned out to be harder than expected. The surface has once again its own default designs, which in my opinion are worse than the WPF standard designs. The default look is grey and square. So I wanted to change it to something more akin to our other touchtable applications: white and round. However <a href="http://pauldendulk.com/">Paul </a>used a ScatterView component to display the layerlist and the geodan logo. He had read that one can just drop components in a ScatterView, without the need to embed them in ScatterViewItems. This is true, but it is a nightmare for the (non-initiated) designer. What happens is that the grey-square design of the ScatterViewItem is drawn beneath any layout you come up with for your own item. This is a very puzzling behaviour, although not entirely unexpected once you know that the ScatterViewItem exists.</p>
<p>Once I solved this issue I could seriously try to change the layout of the ScatterViewItems. Here however real glitches appeared. We use rounded borders and dropshadows for our items. As you can see below there are (at least) two issues:</p>
<div id="attachment_171" class="wp-caption alignnone" style="width: 603px"><a href="http://blog.minst.net/wp-content/uploads/2009/02/surface-artefact1.png" rel="lightbox[169]"><img class="size-full wp-image-171" title="surface-artefact1" src="http://blog.minst.net/wp-content/uploads/2009/02/surface-artefact1.png" alt="Rounded border on the Surface don't work" width="593" height="491" /></a><p class="wp-caption-text">Rounded border on the Surface don&#39;t work</p></div>
<p>The dark rectangle in the top of the image is actually a shadow of  a ScatterViewItem which for some reason doesn&#8217;t start below it. However this makes it easy to see the first glitch in the rendering. As you can see there is a thin dark line near the edge, which makes a weird square corner at the corner. This shouldn&#8217;t be there and when you resize the ScatterViewItem down, the shadow becomes darker (as it should have been in the first place) and the line is not visible anymore. If you don&#8217;t use rounded corners on the shadow the line is still there, but harder to notice because it is exactly following the edge of the shadow.</p>
<p>The second annoying glitch I&#8217;ve found is the gap between the border and the content. If we zoom in a bit on the layercontrol you can see there is a pixel space between the border and the content:</p>
<div id="attachment_170" class="wp-caption alignnone" style="width: 603px"><a href="http://blog.minst.net/wp-content/uploads/2009/02/surface-artefact2.png" rel="lightbox[169]"><img class="size-full wp-image-170" title="surface-artefact2" src="http://blog.minst.net/wp-content/uploads/2009/02/surface-artefact2.png" alt="A gap between border and content" width="593" height="225" /></a><p class="wp-caption-text">A gap between border and content</p></div>
<p>So far I haven&#8217;t been able to eliminate the pixel wide gap. It doesn&#8217;t look bad in our application right now, but in general it is bad that there is such an uncontrollable gap. So I have the feeling that the Surface people are not a big fan of borders in general and rounded border specifically. <img src='http://blog.minst.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.minst.net/2009/02/18/surface-glitches/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

