<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alex' Blog &#187; WPF</title>
	<atom:link href="http://bremora.wordpress.com/category/net/wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://bremora.wordpress.com</link>
	<description>Infotainment</description>
	<lastBuildDate>Wed, 07 Jan 2009 00:57:40 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='bremora.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/6303691707732a02daa43c442d55b350?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Alex' Blog &#187; WPF</title>
		<link>http://bremora.wordpress.com</link>
	</image>
			<item>
		<title>Map AttachedProperties</title>
		<link>http://bremora.wordpress.com/2008/06/23/map-attachedproperties/</link>
		<comments>http://bremora.wordpress.com/2008/06/23/map-attachedproperties/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 13:43:55 +0000</pubDate>
		<dc:creator>Alexander Bremora</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://bremora.wordpress.com/?p=20</guid>
		<description><![CDATA[Currently I&#8217;m trying to implement a reusable control for reflection in WPF. I come to the conclusion that XAML is a very easy way to achieve such an effect but it is not the &#8216;modern abstract&#8217; way. So after a while I found a very nice example which operates with AttachedProperties to display a reflection [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bremora.wordpress.com&blog=1001917&post=20&subd=bremora&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Currently I&#8217;m trying to implement a reusable control for reflection in WPF. I come to the conclusion that XAML is a very easy way to achieve such an effect but it is not the &#8216;modern abstract&#8217; way. So after a while I found a very nice example which operates with AttachedProperties to display a reflection (see <a href="http://wpfblog.info/2008/06/18/reflecting-on-reflections/">Reflecting on Reflections</a>).</p>
<p>But the author missed to copy all AttachedProperties for a Panel from the element that has reflection  to the new Panel (which is responsible for the reflection at last).</p>
<p>Here you can find a first and rapid implementation to gain all necessary AttachedProperties for Panels:<span id="more-20"></span><br />
<code><br />
public static class AttachedPropertiesManager<br />
{<br />
private static FlowDirection FlowDirection;<br />
private static int ZIndex;<br />
private static Dock Dock;<br />
private static readonly CanvasAttachedPropertiesManager CanvasAttachedProperties = new CanvasAttachedPropertiesManager();<br />
private static readonly GridAttachedPropertiesManager GridAttachedProperties = new GridAttachedPropertiesManager();</code></p>
<p>/// &lt;summary&gt;<br />
/// Saves all AttachedProperties of an element within a Panel<br />
/// &lt;/summary&gt;<br />
/// &lt;remarks&gt;Canvas, DockPanel and Grid are the only Panel derived classes which implement AttachedProperties.&lt;/remarks&gt;<br />
/// &lt;param name=&#8220;element&#8220;&gt;Element that holds AttachedProperties&lt;/param&gt;<br />
Element that holds AttachedProperties public static void SaveAttachedProperties(FrameworkElement element)<br />
{<br />
if (element == null) throw new ArgumentNullException(&#8222;element&#8220;);<br />
// General AttachedProperties<br />
FlowDirection = FrameworkElement.GetFlowDirection(element);<br />
ZIndex = Panel.GetZIndex(element);<br />
// Canvas AttachedProperties<br />
CanvasAttachedProperties.Top = Canvas.GetTop(element);<br />
CanvasAttachedProperties.Bottom = Canvas.GetBottom(element);<br />
CanvasAttachedProperties.Left = Canvas.GetLeft(element);<br />
CanvasAttachedProperties.Right = Canvas.GetRight(element);<br />
// DockPanel AttachedProperties<br />
Dock = DockPanel.GetDock(element);<br />
// Grid AttachedProperties<br />
GridAttachedProperties.Column = Grid.GetColumn(element);<br />
GridAttachedProperties.ColumnSpan = Grid.GetColumnSpan(element);<br />
GridAttachedProperties.Row = Grid.GetRow(element);<br />
GridAttachedProperties.RowSpan = Grid.GetRowSpan(element);<br />
GridAttachedProperties.IsSharedSizeScope = Grid.GetIsSharedSizeScope(element);<br />
}<br />
/// &lt;summary&gt;<br />
/// Restores all AttachedProperties of an element within a Panel<br />
/// &lt;/summary&gt;<br />
/// &lt;remarks&gt;Canvas, DockPanel and Grid are the only Panel derived classes which implement AttachedProperties.&lt;/remarks&gt;<br />
/// &lt;param name=&#8220;element&#8220;&gt;Element that will implement all current AttachedProperties.&lt;/param&gt;<br />
Element that will implement all current AttachedProperties. public static void RestoreAttachedProperties(UIElement element)<br />
{<br />
if (element == null) throw new ArgumentNullException(&#8222;element&#8220;);<br />
// General AttachedProperties<br />
FrameworkElement.SetFlowDirection(element, FlowDirection);<br />
Panel.SetZIndex(element, ZIndex);<br />
// Canvas AttachedProperties<br />
Canvas.SetTop(element, CanvasAttachedProperties.Top);<br />
Canvas.SetBottom(element, CanvasAttachedProperties.Bottom);<br />
Canvas.SetLeft(element, CanvasAttachedProperties.Left);<br />
Canvas.SetRight(element, CanvasAttachedProperties.Right);<br />
// DockPanel AttachedProperties<br />
DockPanel.SetDock(element, Dock);<br />
// Grid AttachedProperties<br />
Grid.SetColumn(element, GridAttachedProperties.Column);<br />
Grid.SetColumnSpan(element, GridAttachedProperties.ColumnSpan);<br />
Grid.SetRow(element, GridAttachedProperties.Row);<br />
Grid.SetRowSpan(element, GridAttachedProperties.RowSpan);<br />
Grid.SetIsSharedSizeScope(element, GridAttachedProperties.IsSharedSizeScope);<br />
}</p>
<p>public class GridAttachedPropertiesManager<br />
{<br />
public int Column;<br />
public int ColumnSpan;<br />
public int Row;<br />
public int RowSpan;<br />
public bool IsSharedSizeScope;<br />
}</p>
<p>public class CanvasAttachedPropertiesManager<br />
{<br />
public double Top;<br />
public double Bottom;<br />
public double Left;<br />
public double Right;<br />
}<br />
}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bremora.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bremora.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bremora.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bremora.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bremora.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bremora.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bremora.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bremora.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bremora.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bremora.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bremora.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bremora.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bremora.wordpress.com&blog=1001917&post=20&subd=bremora&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bremora.wordpress.com/2008/06/23/map-attachedproperties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/868ba763846c41acec6d2476cb2a7b62?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bremora</media:title>
		</media:content>
	</item>
		<item>
		<title>Deobfuscate fonts in an XPS document</title>
		<link>http://bremora.wordpress.com/2007/06/10/de-obfuscate-fonts-in-an-xps-document/</link>
		<comments>http://bremora.wordpress.com/2007/06/10/de-obfuscate-fonts-in-an-xps-document/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 17:47:16 +0000</pubDate>
		<dc:creator>Alexander Bremora</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XPS]]></category>

		<guid isPermaLink="false">http://bremora.wordpress.com/2007/06/10/de-obfuscate-fonts-in-an-xps-document/</guid>
		<description><![CDATA[XPS is the new portable format from Microsoft. The file structure consists of several parts, which includes the text (the so called &#8222;fixed documents&#8220;) and, of course, all resources. Images and fonts are embedded in a specific folder but as a general rule fonts are obfuscated to &#8222;protect&#8220; the copyrights of the author.
To extract the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bremora.wordpress.com&blog=1001917&post=12&subd=bremora&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>XPS is the new portable format from Microsoft. The file structure consists of several parts, which includes the text (the so called &#8222;fixed documents&#8220;) and, of course, all resources. Images and fonts are embedded in a specific folder but as a general rule fonts are obfuscated to &#8222;protect&#8220; the copyrights of the author.</p>
<p>To extract the text (which is by the way a subset of XAML) all resources have to be extracted, too. But obfuscated fonts cannot be read, therefore a decryption is required.<br />
The encryption is rather simple: The first 32 bytes are XOR with the GUID of the file (it is also documented in the <a href="http://msdn2.microsoft.com/en-us/library/ms771596.aspx" target="_blank">MSDN</a>). To reverse all font files repeat the exclusive disjunction with the GUID (the file name implies the GUID, thank you) and you will receive the original source (for a better understanding see: <a href="http://en.wikipedia.org/wiki/XOR" target="_blank">http://en.wikipedia.org/wiki/XOR</a>).</p>
<p>I attached a little example. Pass the obfuscated font path and streamOut will return the deobfuscated stream. To save the stream to disc, call streamOut.Position = 0 first.</p>
<p><span style="font-weight:bold;">Edit 2008-10-26:</span><br />
Here you can find my solution:<br />
<a class="moz-txt-link-freetext" href="http://www.bremora.com/index.php/xps-font-deobfuscator">http://www.bremora.com/index.php/xps-font-deobfuscator</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bremora.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bremora.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bremora.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bremora.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bremora.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bremora.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bremora.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bremora.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bremora.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bremora.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bremora.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bremora.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bremora.wordpress.com&blog=1001917&post=12&subd=bremora&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bremora.wordpress.com/2007/06/10/de-obfuscate-fonts-in-an-xps-document/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/868ba763846c41acec6d2476cb2a7b62?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bremora</media:title>
		</media:content>
	</item>
		<item>
		<title>Expression Blend Release Candidate 1</title>
		<link>http://bremora.wordpress.com/2007/04/24/expression-blend-release-candidate-1/</link>
		<comments>http://bremora.wordpress.com/2007/04/24/expression-blend-release-candidate-1/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 21:02:15 +0000</pubDate>
		<dc:creator>Alexander Bremora</dc:creator>
				<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://bremora.wordpress.com/2007/04/24/expression-blend-release-candidate-1/</guid>
		<description><![CDATA[Der erste RC des WPF-Designers Expression Blend ist nun auf den Seiten von Microsoft verfügbar.
Der Download und der Key für eine 180-Tage-Testversion befinden sich hier.
EDIT:  Expression Blend ist zur Zeit nicht mehr als RC verfügbar. Stattdessen kann nun die Releaseversion 60 Tage lang getestet werden.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bremora.wordpress.com&blog=1001917&post=9&subd=bremora&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Der erste RC des WPF-Designers Expression Blend ist nun auf den Seiten von Microsoft verfügbar.</p>
<p>Der Download und der Key für eine 180-Tage-Testversion befinden sich <a href="http://www.microsoft.com/products/expression/en/Expression-Blend/try.mspx" target="_blank">hier</a>.</p>
<p><em><strong>EDIT:</strong>  Expression Blend ist zur Zeit nicht mehr als RC verfügbar. Stattdessen kann nun die Releaseversion 60 Tage lang getestet werden.</em></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bremora.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bremora.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bremora.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bremora.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bremora.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bremora.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bremora.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bremora.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bremora.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bremora.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bremora.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bremora.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bremora.wordpress.com&blog=1001917&post=9&subd=bremora&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bremora.wordpress.com/2007/04/24/expression-blend-release-candidate-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/868ba763846c41acec6d2476cb2a7b62?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bremora</media:title>
		</media:content>
	</item>
		<item>
		<title>WPF Designer deaktivieren</title>
		<link>http://bremora.wordpress.com/2007/04/19/wpf-designer-deaktivieren/</link>
		<comments>http://bremora.wordpress.com/2007/04/19/wpf-designer-deaktivieren/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 22:51:10 +0000</pubDate>
		<dc:creator>Alexander Bremora</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://bremora.wordpress.com/2007/04/19/wpf-designer-deaktivieren/</guid>
		<description><![CDATA[Das der WPF-Designer zur Visualisierung von XAML-Dokumenten in Visual Studio 2005 sich wohl noch in einer frühen Betaphase befindet (ständige Abstürze, schlechte Performance), sollte bereits bekannt sein.
Die Frage, die sich nun aufstellt lautet: Wie kann ich diesen deaktivieren und standardmäßig lediglich den Editor laden?
Antwort:

Auf ein XAML-Dokument in dem Projekt klicken
Rechte Maustaste -&#62;  &#8222;Open with&#8230;&#8220;
&#8222;XML [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bremora.wordpress.com&blog=1001917&post=5&subd=bremora&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Das der WPF-Designer zur Visualisierung von XAML-Dokumenten in Visual Studio 2005 sich wohl noch in einer frühen Betaphase befindet (ständige Abstürze, schlechte Performance), sollte bereits bekannt sein.</p>
<p>Die Frage, die sich nun aufstellt lautet: Wie kann ich diesen deaktivieren und standardmäßig lediglich den Editor laden?</p>
<p><strong>Antwort:</strong></p>
<ul>
<li>Auf ein XAML-Dokument in dem Projekt klicken</li>
<li>Rechte Maustaste -&gt;  &#8222;Open with&#8230;&#8220;</li>
<li>&#8222;XML Editor&#8220; als <em>default </em>auswählen</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bremora.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bremora.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bremora.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bremora.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bremora.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bremora.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bremora.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bremora.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bremora.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bremora.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bremora.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bremora.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bremora.wordpress.com&blog=1001917&post=5&subd=bremora&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bremora.wordpress.com/2007/04/19/wpf-designer-deaktivieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/868ba763846c41acec6d2476cb2a7b62?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bremora</media:title>
		</media:content>
	</item>
	</channel>
</rss>