<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TextBlock on madd0's tech blog</title><link>/tags/textblock/</link><description>Recent content in TextBlock on madd0's tech blog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 03 Mar 2011 14:19:19 +0000</lastBuildDate><atom:link href="/tags/textblock/index.xml" rel="self" type="application/rss+xml"/><item><title>Partially Coloured TextBlock</title><link>/2011/03/03/partially-colored-textblock/</link><pubDate>Thu, 03 Mar 2011 14:19:19 +0000</pubDate><guid>/2011/03/03/partially-colored-textblock/</guid><description>I stumbled upon an interesting question on StackOverflow where someone is using a series of TextBlocks in a StackPanel to show them side by side and would like part of the displayed text to be coloured with one colour and the rest with another.
There has got to be a thousand ways to do this, but it got me thinking of how I would do it, and especially, how to do it quickly because I have a job besides StackOverflow Here’s my take on the problem.</description></item></channel></rss>