<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3194094875305798262</id><updated>2012-02-07T02:34:35.856-08:00</updated><category term='Silverlight 2'/><category term='WPF (Windows Presentation Foundation)'/><title type='text'>Big T Units WPF and Silverlights Code Rambles</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-8936542152994096520</id><published>2011-05-05T06:02:00.001-07:00</published><updated>2011-05-05T06:02:38.469-07:00</updated><title type='text'>C# Word Wrap</title><content type='html'>private StringBuilder WordWrap(string message, int length)&lt;br /&gt;        {&lt;br /&gt;            StringBuilder build = new StringBuilder();&lt;br /&gt;            length++;&lt;br /&gt;            while (!string.IsNullOrWhiteSpace(message))&lt;br /&gt;            {&lt;br /&gt;                var lineLength = message.Length &gt; length ? length : message.Length;&lt;br /&gt;&lt;br /&gt;                string line = message.Substring(0, lineLength);&lt;br /&gt;                if (!line.EndsWith(" "))&lt;br /&gt;                {&lt;br /&gt;                    var lastSpace = line.LastIndexOf(" ");&lt;br /&gt;                    if (lastSpace != -1)&lt;br /&gt;                        lineLength = lastSpace;&lt;br /&gt;&lt;br /&gt;                    line = message.Substring(0, lineLength);&lt;br /&gt;                   &lt;br /&gt;                }&lt;br /&gt;                build.AppendLine(line);&lt;br /&gt;                message = message.Remove(0, lineLength);&lt;br /&gt;                message = message.TrimStart();&lt;br /&gt;                &lt;br /&gt;            }&lt;br /&gt;            return build;&lt;br /&gt;        }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-8936542152994096520?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/8936542152994096520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=8936542152994096520' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/8936542152994096520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/8936542152994096520'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2011/05/c-word-wrap.html' title='C# Word Wrap'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-6903201751013098607</id><published>2010-07-27T07:03:00.001-07:00</published><updated>2010-07-27T07:04:19.314-07:00</updated><title type='text'>Distance between 2 Points</title><content type='html'>Search for this on the Internet and it gives you loads of technical details when all you want is a simple example you can use. So here it is&lt;br /&gt;&lt;br /&gt;        private static double GetlineLength(Point startPoint, Point endPoint)&lt;br /&gt;        {&lt;br /&gt;            var x = startPoint.X - endPoint.X;&lt;br /&gt;            var y = startPoint.Y - endPoint.Y;&lt;br /&gt;            return Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2));&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;I hope this ends your search :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-6903201751013098607?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/6903201751013098607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=6903201751013098607' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6903201751013098607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6903201751013098607'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2010/07/distance-between-2-points.html' title='Distance between 2 Points'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-7288946128224806096</id><published>2010-06-08T06:45:00.000-07:00</published><updated>2010-06-08T06:47:11.028-07:00</updated><title type='text'>Sample Extension Method</title><content type='html'>public static class StringExtentionMethods&lt;br /&gt;    {&lt;br /&gt;        public static int WordCount(this String str)&lt;br /&gt;        {&lt;br /&gt;            return str.Split(new char[] { ' ', '.', '?' }, StringSplitOptions.RemoveEmptyEntries).Length;&lt;br /&gt;        }&lt;br /&gt;    }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-7288946128224806096?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/7288946128224806096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=7288946128224806096' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/7288946128224806096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/7288946128224806096'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2010/06/sample-extension-method.html' title='Sample Extension Method'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-7688034580657014932</id><published>2010-04-22T07:34:00.000-07:00</published><updated>2010-04-22T07:37:05.977-07:00</updated><title type='text'></title><content type='html'>// C# to convert a string to a byte array.&lt;br /&gt;&lt;br /&gt;public static byte[] StrToByteArray(string str)&lt;br /&gt;{   &lt;br /&gt;        System.Text.ASCIIEncoding  encoding=new System.Text.ASCIIEncoding();   &lt;br /&gt;        return encoding.GetBytes(str);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// C# to convert a byte array to a string.&lt;br /&gt;&lt;br /&gt;System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();&lt;br /&gt;str = enc.GetString(dBytes);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-7688034580657014932?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/7688034580657014932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=7688034580657014932' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/7688034580657014932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/7688034580657014932'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2010/04/c-to-convert-string-to-byte-array.html' title=''/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-1135561313647676040</id><published>2009-09-23T07:16:00.001-07:00</published><updated>2009-09-23T07:18:52.590-07:00</updated><title type='text'>The Other Event Handler</title><content type='html'>Normally when I declare an Event  I do it like this. The Easy way.&lt;br /&gt;&lt;br /&gt;public event EventHandler&lt;canceleventargs&gt; Closing;&lt;br /&gt;&lt;br /&gt;But you can have more power if you do it like this.&lt;br /&gt;&lt;br /&gt;private EventHandler&lt;canceleventargs&gt; canClose;&lt;br /&gt;public event EventHandler&lt;canceleventargs&gt; Closing&lt;br /&gt;{&lt;br /&gt;add { this.canClose += value; }&lt;br /&gt;remove { this.canClose -= value; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;You can find out who is registering against your event.&lt;br /&gt;Very handy..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-1135561313647676040?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/1135561313647676040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=1135561313647676040' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/1135561313647676040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/1135561313647676040'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/09/other-event-handler.html' title='The Other Event Handler'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-7401312252918306035</id><published>2009-08-19T03:55:00.000-07:00</published><updated>2009-08-19T04:00:24.759-07:00</updated><title type='text'>C# Inline If Sample</title><content type='html'>&lt;p&gt;Sample using WPF&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Button newbutton = new Button();&lt;br /&gt;bool a = true;&lt;br /&gt;newbutton.Visibility = a ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed;&lt;/strong&gt;&lt;/p&gt;(a) being a bool or it could have been String.IsNullEmpty(newbutton.Text)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;newbutton.Visibility = !String.IsNullEmpty(newbutton.Text)  ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Anything that evaluates to bool. If True do the command after the ? else do the command after the :&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-7401312252918306035?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/7401312252918306035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=7401312252918306035' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/7401312252918306035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/7401312252918306035'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/08/c-inline-if-sample.html' title='C# Inline If Sample'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-8152984989548906099</id><published>2009-06-25T01:34:00.000-07:00</published><updated>2009-06-25T01:34:32.540-07:00</updated><title type='text'>DataTrigger Sample</title><content type='html'>&lt;strong&gt;Sample of Single Conditions&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;Window.Resources&amp;gt;&lt;br /&gt;&amp;lt;Style x:Key="Prosessing" TargetType="{x:Type ProgressBar}"&amp;gt;&lt;br /&gt;&amp;lt;Setter Property="Visibility" Value="Collapsed" /&amp;gt;&lt;br /&gt;&amp;lt;Style.Triggers&amp;gt;&lt;br /&gt;&amp;lt;DataTrigger Binding="{Binding Path=IsProcessing}" Value="true"&amp;gt;&lt;br /&gt;&amp;lt;Setter Property="Visibility" Value="Visible" /&amp;gt;&lt;br /&gt;&amp;lt;/DataTrigger&amp;gt;&lt;br /&gt;&amp;lt;/Style.Triggers&amp;gt;&lt;br /&gt;&amp;lt;/Style&amp;gt;&lt;br /&gt;&amp;lt;/Window.Resources&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Example used on a Control&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;ProgressBar Style="{StaticResource Prosessing}" Width="100" Height="15" Maximum="20" Value="0" x:Name="progressBar"/&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sample of Multi Conditions&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;Style TargetType="ListBoxItem"&amp;gt;&lt;br /&gt;&amp;lt;Setter Property="Background" Value="Black" /&amp;gt;&lt;br /&gt;&amp;lt;Style.Triggers&amp;gt;&lt;br /&gt;&amp;lt;MultiDataTrigger&amp;gt;&lt;br /&gt;&amp;lt;MultiDataTrigger.Conditions&amp;gt;&lt;br /&gt;&amp;lt;Condition Binding="{Binding Path=Name}" Value="Portland" /&amp;gt;&lt;br /&gt;&amp;lt;Condition Binding="{Binding Path=State}" Value="OR" /&amp;gt;&lt;br /&gt;&amp;lt;/MultiDataTrigger.Conditions&amp;gt;&lt;br /&gt;&amp;lt;Setter Property="Background" Value="Red" /&amp;gt;&lt;br /&gt;&amp;lt;/MultiDataTrigger&amp;gt;&lt;br /&gt;&amp;lt;/Style.Triggers&amp;gt;&lt;br /&gt;&amp;lt;/Style&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-8152984989548906099?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/8152984989548906099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=8152984989548906099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/8152984989548906099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/8152984989548906099'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/06/sample-of-single-conditions.html' title='DataTrigger Sample'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-5076623757167248585</id><published>2009-05-07T03:27:00.000-07:00</published><updated>2009-06-25T01:37:01.392-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF (Windows Presentation Foundation)'/><title type='text'>Gotcha Style Triggers</title><content type='html'>I was cought out by this. If you want to set a Property using a Style then dont set it in the Control its self.&lt;br /&gt;&lt;br /&gt;&amp;lt;Button Height="23" HorizontalAlignment="Left" Name="button1" Width="75" &lt;strong&gt;Foreground="Red"&lt;/strong&gt; Content="Blue Button"&amp;gt;&lt;br /&gt;         &amp;lt;Button.Style&amp;gt;&lt;br /&gt;         &amp;lt;Style TargetType="Button"&amp;gt;&lt;br /&gt;                 &lt;strong&gt;&amp;lt;Setter Property="Foreground" Value="Blue"&amp;gt;&amp;lt;/Setter&amp;gt;&lt;/strong&gt;&lt;br /&gt;         &amp;lt;/Style&amp;gt;&lt;br /&gt;         &amp;lt;/Button.Style&amp;gt;&lt;br /&gt;&amp;lt;/Button&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-5076623757167248585?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/5076623757167248585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=5076623757167248585' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5076623757167248585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5076623757167248585'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/05/gotcha-style-triggers.html' title='Gotcha Style Triggers'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-5403260044313357823</id><published>2009-05-05T08:29:00.001-07:00</published><updated>2009-05-05T08:29:39.092-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF (Windows Presentation Foundation)'/><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight 2'/><title type='text'>Differnces between Label and TextBlock in WPF and Silverlight</title><content type='html'>Differnces between Label and TextBlock in WPF and Silverlight&lt;br /&gt;&lt;br /&gt;&lt;a href="http://joshsmithonwpf.wordpress.com/2007/07/04/differences-between-label-and-textblock/"&gt;http://joshsmithonwpf.wordpress.com/2007/07/04/differences-between-label-and-textblock/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-5403260044313357823?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/5403260044313357823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=5403260044313357823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5403260044313357823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5403260044313357823'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/05/differnces-between-label-and-textblock.html' title='Differnces between Label and TextBlock in WPF and Silverlight'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-6917675608613196954</id><published>2009-04-28T11:04:00.001-07:00</published><updated>2009-05-05T06:53:07.890-07:00</updated><title type='text'>Prism Step by Step</title><content type='html'>&lt;a href="http://ira.me.uk/2009/03/17/building-a-composite-wpf-and-silverlight-application-with-prism-part-4/"&gt;http://ira.me.uk/2009/03/17/building-a-composite-wpf-and-silverlight-application-with-prism-part-4/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-6917675608613196954?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/6917675608613196954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=6917675608613196954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6917675608613196954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6917675608613196954'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/prysm-step-by-step.html' title='Prism Step by Step'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-930042186042817402</id><published>2009-04-28T08:05:00.000-07:00</published><updated>2009-04-28T08:07:18.399-07:00</updated><title type='text'>In XAML. Whats the difference between a Template and a Style</title><content type='html'>&lt;strong&gt;A Style&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;By using styles, you can modify the default values of properties that are set on the control to which the style is applied. For example, you can specify default colors for the background, border, and foreground of a control such as a button.&lt;br /&gt;&lt;br /&gt;These style properties can be overridden by the values that are set on the control itself when it is drawn on the artboard. For example, if you set the background color to blue in the style of a button, the button will appear blue when it is drawn on the artboard, but you can change the color.&lt;br /&gt;&lt;br /&gt;You can set only pre-existing properties in the style. For example, you cannot set a default value for a property that belongs to a new part that you added to the template.&lt;br /&gt;&lt;br /&gt;Finally, you can use styles to specify the default behavior of a control. For example, in a style for a button, you can specify a trigger so that when users move their mouse pointer over the button, the background color will change. These property changes are instantaneous (they cannot be animated gradually).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;A Template&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Using templates, you can modify the structure of the control to which the template is applied. You can modify a control template to rearrange, add, or delete the elements (or parts) in the control. For example, you can add a background image or design to a control such as a button.&lt;br /&gt;&lt;br /&gt;You can also modify the values of properties (such as background color) that are set on the control to which the template is applied. These template values cannot be overridden by the values that are set on the control itself when it is drawn on the artboard. However, you can use template-binding to set the properties of a template according to the values of properties of the control when it is drawn on the artboard.&lt;br /&gt;&lt;br /&gt;When you modify a template, you have access to more parts of a control than when you modify a style. For example, you can change the way the pop-up list appears in a combo box, or you change the look of the button that triggers the pop-up list in the combo box by modifying the items template. Some templates consist of the following parts:&lt;br /&gt;&lt;br /&gt;Content Presenter   A content presenter is a placeholder in the control template to display the content of the control to which the template is applied. This might be the value of a content property (in a button for example), or a text property (in a text box).&lt;br /&gt;&lt;br /&gt;Header   Some controls have multiple properties that hold content. In this case, an additional content presenter is used in the template as a placeholder for the type of content that is used as a header. An example of a headered control is a tab item control where the header is the label on the tab and the content is displayed underneath the header.&lt;br /&gt;&lt;br /&gt;Items Host   An items host is used as a placeholder for the child elements of a control. The items host part of a template is identified by Is_Items_Host = True in the Properties panel.&lt;br /&gt;&lt;br /&gt;ItemContainerTemplate   An item container template is applied to a control that contains items, such as a Menu or List control. This template is used when items are added to the list.&lt;br /&gt;&lt;br /&gt;Finally, you can specify the behavior of any new and existing parts in a template by using triggers. For example, you can specify a trigger so that when users move their mouse pointer over a button, the color of one of the parts will change. These property changes can be instantaneous or animated to produce a smooth transition.&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;You cannot animate from the value of a template-bound property or a color resource to another value. When using animations in triggers, use specific property values.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-930042186042817402?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/930042186042817402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=930042186042817402' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/930042186042817402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/930042186042817402'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/in-xaml-whats-difference-between.html' title='In XAML. Whats the difference between a Template and a Style'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-6965715916541455222</id><published>2009-04-28T06:19:00.000-07:00</published><updated>2009-04-28T06:22:48.050-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF (Windows Presentation Foundation)'/><title type='text'>Validation in Windows Presentation Foundation</title><content type='html'>Validation in Windows Presentation Foundation&lt;br /&gt;By Paul Stovell&lt;br /&gt;&lt;br /&gt;In this article, Paul will walk you through using the built-in Validation classes that exist in c. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/WPF/wpfvalidation.aspx"&gt;View Article&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-6965715916541455222?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/6965715916541455222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=6965715916541455222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6965715916541455222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6965715916541455222'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/validation-in-windows-presentation.html' title='Validation in Windows Presentation Foundation'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-3987300778605601477</id><published>2009-04-28T06:11:00.000-07:00</published><updated>2009-04-28T06:12:48.105-07:00</updated><title type='text'>Useful site for Creating Connection Strings</title><content type='html'>&lt;a href="http://www.connectionstrings.com/"&gt;http://www.connectionstrings.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-3987300778605601477?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/3987300778605601477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=3987300778605601477' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/3987300778605601477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/3987300778605601477'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/useful-site-for-creating-connection.html' title='Useful site for Creating Connection Strings'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-9124356896984015565</id><published>2009-04-27T02:57:00.000-07:00</published><updated>2009-04-28T06:16:38.314-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight 2'/><title type='text'>How to put Curly Braces in XAML</title><content type='html'>How to put Curly Braces in XAML&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- This works fine --&amp;gt;&lt;br /&gt;&amp;lt;TextBlock Text="{}This is {my} text!" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!-- This will result in a compile error --&amp;gt;&lt;br /&gt;&amp;lt;TextBlock Text="This is {my} text!" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms744986.aspx"&gt;MSDN&lt;/a&gt; has posted an article explaining this escape sequence in detail, so check there for more information. &lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-9124356896984015565?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/9124356896984015565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=9124356896984015565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/9124356896984015565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/9124356896984015565'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/how-to-put-curly-braces-in-xaml.html' title='How to put Curly Braces in XAML'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-6374449842228124065</id><published>2009-04-23T01:38:00.001-07:00</published><updated>2009-04-27T06:13:12.110-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight 2'/><title type='text'>DependencyProperty with a Sample Deligate</title><content type='html'>DependencyProperty with a Sample Deligate&lt;br /&gt;&lt;br /&gt;public TimeZones TimeZone&lt;br /&gt;        {&lt;br /&gt;            get { return (TimeZones)GetValue(TimeZoneProperty); }&lt;br /&gt;            set { SetValue(TimeZoneProperty, value); }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        // Using a DependencyProperty as the backing store for TimeZone.  This enables animation, styling, binding, etc...&lt;br /&gt;        public static readonly DependencyProperty TimeZoneProperty =&lt;br /&gt;            DependencyProperty.Register("TimeZone", typeof(TimeZones), typeof(DigitalClock), new PropertyMetadata(new&lt;br /&gt;PropertyChangedCallback(TimeZone_OnChanged)));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        static void TimeZone_OnChanged(DependencyObject sender,&lt;br /&gt;DependencyPropertyChangedEventArgs args)&lt;br /&gt;        {&lt;br /&gt;            TimeZoneDataCollection _collection = new TimeZoneDataCollection();&lt;br /&gt;            DigitalClock thisControl = (DigitalClock)sender;&lt;br /&gt;            thisControl._timeZoneData = _collection.GetTimeZone((TimeZones)args.NewValue);&lt;br /&gt;        }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-6374449842228124065?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/6374449842228124065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=6374449842228124065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6374449842228124065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6374449842228124065'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/dependencyproperty-with-sample-deligate.html' title='DependencyProperty with a Sample Deligate'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-95586417011571958</id><published>2009-04-03T02:41:00.001-07:00</published><updated>2009-04-28T06:13:38.393-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight 2'/><title type='text'>Silverlight 2 Notes cont...</title><content type='html'>&lt;strong&gt;C# Sample Code for a creating Animation in Code &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// &lt;strong&gt;Selected &lt;/strong&gt;is the UIElement you want to Resize and Move.&lt;br /&gt;&lt;br /&gt;Storyboard story = new Storyboard();&lt;br /&gt;DoubleAnimation move = new DoubleAnimation();&lt;br /&gt;move.From = 0.0;&lt;br /&gt;move.To = 100.0;&lt;br /&gt;move.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 1000));&lt;br /&gt;story.Children.Add(move);&lt;br /&gt;DoubleAnimation sizeX = new DoubleAnimation();&lt;br /&gt;sizeX.From = (double)10;&lt;br /&gt;sizeX.To = (double)20;&lt;br /&gt;sizeX.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));&lt;br /&gt;sizeX.RepeatBehavior = new RepeatBehavior(1);&lt;br /&gt;sizeX.AutoReverse = true;&lt;br /&gt;story.Children.Add(sizeX);&lt;br /&gt;DoubleAnimation sizeY = new DoubleAnimation();&lt;br /&gt;sizeY.From = (double)10;&lt;br /&gt;sizeY.To = (double)20;&lt;br /&gt;sizeY.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 500));&lt;br /&gt;sizeY.RepeatBehavior = new RepeatBehavior(1);&lt;br /&gt;sizeY.AutoReverse = true;&lt;br /&gt;story.Children.Add(sizeY);&lt;br /&gt;Storyboard.SetTarget(story, &lt;strong&gt;Selected&lt;/strong&gt;);&lt;br /&gt;Storyboard.SetTargetProperty(sizeX, new PropertyPath(Ellipse.WidthProperty));&lt;br /&gt;Storyboard.SetTargetProperty(sizeY, new PropertyPath(Ellipse.HeightProperty));&lt;br /&gt;Storyboard.SetTargetProperty(move, new PropertyPath(Canvas.TopProperty));&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-95586417011571958?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/95586417011571958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=95586417011571958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/95586417011571958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/95586417011571958'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/silverlight-2-notes-cont_860.html' title='Silverlight 2 Notes cont...'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-8446911084193080619</id><published>2009-04-03T02:00:00.000-07:00</published><updated>2009-04-03T02:04:46.729-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight 2'/><title type='text'>Silverlight 2 Notes cont...</title><content type='html'>Notes on Styles&lt;br /&gt;&lt;ol&gt;&lt;li&gt;A Style can only be set once and as soon as its loaded or "Sealed" it cannot be changed at runtime.&lt;/li&gt;&lt;li&gt;So if you have your own control that requires for best result a specfic Template then set it on the Loaded event of your control. Giving the end user a chance to set there own template.&lt;br /&gt;&lt;br /&gt;void RadioListBox_Loaded(object sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;//If a Template is assigned it cannot be replaced&lt;br /&gt;if (this.Style == null)&lt;br /&gt;this.Style = (Style)App.Current.Resources["DannyRadioListBox"];&lt;br /&gt;}&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-8446911084193080619?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/8446911084193080619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=8446911084193080619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/8446911084193080619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/8446911084193080619'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/silverlight-2-notes-cont_03.html' title='Silverlight 2 Notes cont...'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-8778753673607599801</id><published>2009-04-02T07:53:00.000-07:00</published><updated>2009-04-02T07:57:35.185-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight 2'/><title type='text'>Silverlight 2 Notes cont...</title><content type='html'>How to Access a named element in a Template&lt;br /&gt;&lt;br /&gt;public override void OnApplyTemplate()&lt;br /&gt;{&lt;br /&gt;base.OnApplyTemplate();&lt;br /&gt;Selected = this.GetTemplateChild("Selected") as Ellipse;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-8778753673607599801?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/8778753673607599801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=8778753673607599801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/8778753673607599801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/8778753673607599801'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/silverlight-2-notes-cont_02.html' title='Silverlight 2 Notes cont...'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-1385551152927196042</id><published>2009-04-02T07:50:00.000-07:00</published><updated>2009-04-02T07:56:06.401-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight 2'/><title type='text'>Silverlight 2 Notes cont...</title><content type='html'>Getting the Actual Position on an UIElement in relation to a Parent UI Element&lt;br /&gt;&lt;br /&gt;GeneralTransform gt = ((UIElement)&lt;strong&gt;childelement&lt;/strong&gt;).TransformToVisual(&lt;strong&gt;parentelement&lt;/strong&gt;);&lt;br /&gt;Point p = gt.Transform(new Point(0, 0));&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-1385551152927196042?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/1385551152927196042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=1385551152927196042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/1385551152927196042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/1385551152927196042'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/04/silverlight-2-notes-cont.html' title='Silverlight 2 Notes cont...'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-4622026029652848652</id><published>2009-03-27T09:01:00.001-07:00</published><updated>2009-03-27T09:01:52.534-07:00</updated><title type='text'>Convert Strings To and From Base 64</title><content type='html'>&lt;a href="http://arcanecode.wordpress.com/2007/03/21/encoding-strings-to-base64-in-c/"&gt;http://arcanecode.wordpress.com/2007/03/21/encoding-strings-to-base64-in-c/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-4622026029652848652?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/4622026029652848652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=4622026029652848652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/4622026029652848652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/4622026029652848652'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/03/convert-strings-to-and-from-base-64.html' title='Convert Strings To and From Base 64'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-5407234054765276733</id><published>2009-03-25T03:35:00.000-07:00</published><updated>2009-04-02T07:56:21.458-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight 2'/><title type='text'>Silverlight 2 Notes</title><content type='html'>Are you looking for the DataGrid for your Silverlight2 App then this is how you get them&lt;br /&gt;&lt;br /&gt;1. If in Blend right click on your Project and Edit in Visual Studio&lt;br /&gt;2. Go to the Solution Explorer and Add Reference&lt;br /&gt;3. Add System.Window.Controls.Data&lt;br /&gt;4. Return to Blend and there you have it&lt;br /&gt;&lt;br /&gt;All new controls in your Asset Library&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-5407234054765276733?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/5407234054765276733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=5407234054765276733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5407234054765276733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5407234054765276733'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2009/03/silverlight-2-notes.html' title='Silverlight 2 Notes'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-7434034857427639986</id><published>2008-10-15T02:27:00.000-07:00</published><updated>2008-10-16T09:25:30.118-07:00</updated><title type='text'>Mistake Revealed</title><content type='html'>Ok well here is a classic mistake I made. I am telling you so you don't make the same. Yesterday I was stuck for ages on registering my Search Protocol, no matter how many times I tried to register it using RegAsm, Micorosoft Search server could not find it. The problem was the search server I developed on was Windows Server 2003. It was installed on Windows Server 2008 64bit. So this was my classic mistake I did a search in dos on the 64bit Server and found regasm used it. That was my mistake on 64bit there are 2 version of RegAsm I used the 32bit Version.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-7434034857427639986?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/7434034857427639986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=7434034857427639986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/7434034857427639986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/7434034857427639986'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2008/10/silly-mistakes-revealed.html' title='Mistake Revealed'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-5903044148026624006</id><published>2008-09-22T05:18:00.000-07:00</published><updated>2008-09-22T05:45:27.930-07:00</updated><title type='text'>Lazymans way to create an Array</title><content type='html'>Welcome to the Lazymans Way&lt;br /&gt;&lt;br /&gt;This is a useful tip when you want to create an array that you dont know the size of.&lt;br /&gt;&lt;br /&gt;Generics are the way&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;private&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;[] CreateArray(&lt;span style="color:#2b91af;"&gt;DataRow&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt; input)&lt;br /&gt;{&lt;/span&gt;&lt;pre&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;pre style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;System.Collections.Generic.&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color:#2b91af;"&gt;List&lt;/span&gt;&lt;&lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;&gt; output = &lt;span style="color:#0000ff;"&gt;new&lt;/span&gt; System.Collections.Generic.&lt;span style="color:#2b91af;"&gt;List&lt;/span&gt;&lt;&lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&gt;();&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;foreach&lt;/span&gt; (&lt;span style="color:#2b91af;"&gt;DataColumn&lt;/span&gt; i &lt;span style="color:#0000ff;"&gt;in&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt; input.Table.Columns)&lt;br /&gt;{&lt;br /&gt;     output.Add(&lt;span style="color:#2b91af;"&gt;Convert&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;.ToString(input[i.ColumnName]));&lt;br /&gt;}&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;return&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; output.ToArray();&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;pre style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:times new roman;font-size:100%;"&gt;&lt;span style="font-family:georgia;"&gt;This is just a sample on how to create a string array based on another array of data but it can be used in multiple ways.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-5903044148026624006?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/5903044148026624006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=5903044148026624006' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5903044148026624006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5903044148026624006'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2008/09/lazymans-way-to-create-array.html' title='Lazymans way to create an Array'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-5655984731976926627</id><published>2008-09-21T13:45:00.000-07:00</published><updated>2008-09-22T05:15:57.866-07:00</updated><title type='text'>IE8 Is comming. Run for the hills...</title><content type='html'>Ok don't panic people. IE8 will be stricked but you can appease it with one simple header attribute on your web page&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;meta http-equiv=&amp;quot;X-US-Compatible&amp;quot; content=&amp;quot;IE=7&amp;quot; &amp;gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;And yes all goes back to normal giving you time to learn the new rules&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-5655984731976926627?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/5655984731976926627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=5655984731976926627' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5655984731976926627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/5655984731976926627'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2008/09/ie8-is-comming-run-for-hills.html' title='IE8 Is comming. Run for the hills...'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-2431934663719275710</id><published>2008-09-21T13:23:00.000-07:00</published><updated>2008-09-21T16:55:27.375-07:00</updated><title type='text'>Remix 08 Cont... My Favorite</title><content type='html'>And yes later they will have more controls for Silverlight 2. Including the much waited for DataGrid and my favorite Ribbon Bars.&lt;br /&gt;&lt;br /&gt;Let me introduce my favorite speaker &lt;a href="http://weblogs.asp.net/scottgu/"&gt;Scott Guthrie&lt;/a&gt; pop over to his blogg.&lt;br /&gt;&lt;br /&gt;And yes the waited for Crossdomain support for Silverlight. It was a real worry to me that i could not have my webservices on a different domain to my website. Seemed a little limiting. Silverlight 2 can when you have a policy file on the webservice server.&lt;br /&gt;&lt;br /&gt;called &lt;a href="http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx"&gt;clientaccesspolicy.xml &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-2431934663719275710?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/2431934663719275710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=2431934663719275710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/2431934663719275710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/2431934663719275710'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2008/09/remix-08-cont-my-favorite.html' title='Remix 08 Cont... My Favorite'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-6021349680659047260</id><published>2008-09-21T13:21:00.001-07:00</published><updated>2008-09-21T16:57:22.972-07:00</updated><title type='text'>SilverLight Adaptive Video</title><content type='html'>Well you cant talk about Silverlight without mentioning online video. Ever seen that message before you watch streaming video. What Download speed do you want to watch it at. Well most don't know and either get rubbish video or see that Buffering going on and on and on. Well due to a new feature and Silverlight 2 you have adaptive video, that's video that has multiple resolutions encoded into one video type that lets Silverlight make its own decision it will increase the quality if the band with is good and seamlessly downgrade when bandwidth gets a tighter.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-6021349680659047260?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/6021349680659047260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=6021349680659047260' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6021349680659047260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/6021349680659047260'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2008/09/remix-08-cont-adaptive-video.html' title='SilverLight Adaptive Video'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3194094875305798262.post-4415412990683959792</id><published>2008-09-21T12:56:00.000-07:00</published><updated>2008-09-21T17:00:17.733-07:00</updated><title type='text'>The ReMix08 Conference</title><content type='html'>17th September 2008&lt;br /&gt;&lt;br /&gt;I was privileged to go the ReMix 08 Conferences in Brighton England&lt;br /&gt;&lt;br /&gt;Well worth going. I never like the sell you the product conferences. This was different good and techy. Primarily Silverlight 2 but some good stuff on ADO.NET Data Services&lt;br /&gt;&lt;br /&gt;Now I have seen a bit on Silverlight and thought oh yes another Flash copy but its more much more. I can see whole ideas of Client Side applications. Yes i know you can use WPF and you need Microsoft Framework 3.5 to use it. But Silverlight 2 is one multi operating system and is only a 4mb download.&lt;br /&gt;&lt;br /&gt;Ok so whats so good about it. I can do all that with ASP.NET well one thing is you can separate the presentation data from the data. Meaning in ASP.NET each time you download a page you download the presentation e.g the HTML and the data e.g. your Data that makes up the your datagrid. With Silverlight you first download your program to the client and any new calls are just to fetch data.&lt;br /&gt;&lt;br /&gt;This is great. Imagine state that's retained on the client. But there is more you have access to Isolated storage. That is storage that is stored on the client. Its so much more than a cookie it big and can be made bigger. You can access the storage at a User and Application level or at User and Domain Level so you can share you data between your different Silverlight Applications on the same domain.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bbits.co.uk/blog/archive/2008/09/07/storing-images-in-isolated-storage.-a-silverlight-2-quotimage.aspx"&gt;Links to Blogg on i found on the subject&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3194094875305798262-4415412990683959792?l=bigtunit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bigtunit.blogspot.com/feeds/4415412990683959792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3194094875305798262&amp;postID=4415412990683959792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/4415412990683959792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3194094875305798262/posts/default/4415412990683959792'/><link rel='alternate' type='text/html' href='http://bigtunit.blogspot.com/2008/09/remix08-conference.html' title='The ReMix08 Conference'/><author><name>Daniel T</name><uri>http://www.blogger.com/profile/15435360397560265833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
