<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Silverlight Watermark TextBox</title>
	<atom:link href="http://www.solutionbot.com/2010/06/02/silverlight-watermark-textbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solutionbot.com/2010/06/02/silverlight-watermark-textbox/</link>
	<description>The ramblings of web developer Beau Brownlee</description>
	<lastBuildDate>Wed, 05 Oct 2011 06:13:08 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John Barton</title>
		<link>http://www.solutionbot.com/2010/06/02/silverlight-watermark-textbox/comment-page-1/#comment-8648</link>
		<dc:creator>John Barton</dc:creator>
		<pubDate>Mon, 14 Feb 2011 22:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.solutionbot.com/?p=331#comment-8648</guid>
		<description>Thanks for the watermark control.  I and making some modifications to it to allow changes in both the forecolor and the watermark color.  I am probably going to try to add formatting for the watermark text as well.  Probably nothing more that italics but it depends on what I bump into.  If you will shoot me an address, I&#039;ll send the new class to you if you like.

Good job on the control. - it works!  :-)</description>
		<content:encoded><![CDATA[<p>Thanks for the watermark control.  I and making some modifications to it to allow changes in both the forecolor and the watermark color.  I am probably going to try to add formatting for the watermark text as well.  Probably nothing more that italics but it depends on what I bump into.  If you will shoot me an address, I&#8217;ll send the new class to you if you like.</p>
<p>Good job on the control. &#8211; it works!  <img src='http://www.solutionbot.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shrewd Logic</title>
		<link>http://www.solutionbot.com/2010/06/02/silverlight-watermark-textbox/comment-page-1/#comment-8603</link>
		<dc:creator>Shrewd Logic</dc:creator>
		<pubDate>Fri, 11 Feb 2011 04:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.solutionbot.com/?p=331#comment-8603</guid>
		<description>For the vb users out there: 

&#039;Note the namespace and class names. Just create two textboxes on called txtLogin and the other txtPassword
&#039;Make sure you make the default textbox foreground color lightgray.

Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Media

Namespace LoginNS
Partial Public Class Login
 &#039;Make sure you make the default textbox foreground color lightgray.
        Public Sub New()
            InitializeComponent()
            AddHandler txtLogin.GotFocus, AddressOf LoginIsFocused
            AddHandler txtLogin.LostFocus, AddressOf LoginNotFocused
            AddHandler txtPassword.GotFocus, AddressOf PasswordIsFocused
            AddHandler txtPassword.LostFocus, AddressOf PasswordNotFocused
        End Sub
        Private Sub LoginIsFocused(ByVal sender As System.Object, ByVal e As RoutedEventArgs)
            IsFocusedProps(txtLogin, &quot;Enter a Login&quot;)
        End Sub
        Private Sub LoginNotFocused(ByVal sender As System.Object, ByVal e As RoutedEventArgs)
            NotFocusedProps(txtLogin, &quot;Enter a Login&quot;)
        End Sub
        Private Sub PasswordIsFocused(ByVal sender As System.Object, ByVal e As RoutedEventArgs)
            IsFocusedProps(txtPassword, &quot;Enter a Password&quot;)
        End Sub
        Private Sub PasswordNotFocused(ByVal sender As System.Object, ByVal e As RoutedEventArgs)
            NotFocusedProps(txtPassword, &quot;Enter a Password&quot;)
        End Sub
        Private Sub IsFocusedProps(ByVal focusedtxtbox As TextBox, ByVal txtboxtext As String)
            If focusedtxtbox.Text  txtboxtext Then
                Exit Sub
            End If
            focusedtxtbox.Text = &quot;&quot;
            focusedtxtbox.Foreground = New SolidColorBrush(Colors.Black)
        End Sub
        Private Sub NotFocusedProps(ByVal focusedtxtbox As TextBox, ByVal txtboxtext As String)
            If focusedtxtbox.Text  &quot;&quot; And focusedtxtbox.Text  txtboxtext Then
                Exit Sub
            End If
            focusedtxtbox.Text = txtboxtext
            focusedtxtbox.Foreground = New SolidColorBrush(Colors.LightGray)
        End Sub
End Class
End Namespace</description>
		<content:encoded><![CDATA[<p>For the vb users out there: </p>
<p>&#8216;Note the namespace and class names. Just create two textboxes on called txtLogin and the other txtPassword<br />
&#8216;Make sure you make the default textbox foreground color lightgray.</p>
<p>Imports System.Windows<br />
Imports System.Windows.Controls<br />
Imports System.Windows.Media</p>
<p>Namespace LoginNS<br />
Partial Public Class Login<br />
 &#8216;Make sure you make the default textbox foreground color lightgray.<br />
        Public Sub New()<br />
            InitializeComponent()<br />
            AddHandler txtLogin.GotFocus, AddressOf LoginIsFocused<br />
            AddHandler txtLogin.LostFocus, AddressOf LoginNotFocused<br />
            AddHandler txtPassword.GotFocus, AddressOf PasswordIsFocused<br />
            AddHandler txtPassword.LostFocus, AddressOf PasswordNotFocused<br />
        End Sub<br />
        Private Sub LoginIsFocused(ByVal sender As System.Object, ByVal e As RoutedEventArgs)<br />
            IsFocusedProps(txtLogin, &#8220;Enter a Login&#8221;)<br />
        End Sub<br />
        Private Sub LoginNotFocused(ByVal sender As System.Object, ByVal e As RoutedEventArgs)<br />
            NotFocusedProps(txtLogin, &#8220;Enter a Login&#8221;)<br />
        End Sub<br />
        Private Sub PasswordIsFocused(ByVal sender As System.Object, ByVal e As RoutedEventArgs)<br />
            IsFocusedProps(txtPassword, &#8220;Enter a Password&#8221;)<br />
        End Sub<br />
        Private Sub PasswordNotFocused(ByVal sender As System.Object, ByVal e As RoutedEventArgs)<br />
            NotFocusedProps(txtPassword, &#8220;Enter a Password&#8221;)<br />
        End Sub<br />
        Private Sub IsFocusedProps(ByVal focusedtxtbox As TextBox, ByVal txtboxtext As String)<br />
            If focusedtxtbox.Text  txtboxtext Then<br />
                Exit Sub<br />
            End If<br />
            focusedtxtbox.Text = &#8220;&#8221;<br />
            focusedtxtbox.Foreground = New SolidColorBrush(Colors.Black)<br />
        End Sub<br />
        Private Sub NotFocusedProps(ByVal focusedtxtbox As TextBox, ByVal txtboxtext As String)<br />
            If focusedtxtbox.Text  &#8220;&#8221; And focusedtxtbox.Text  txtboxtext Then<br />
                Exit Sub<br />
            End If<br />
            focusedtxtbox.Text = txtboxtext<br />
            focusedtxtbox.Foreground = New SolidColorBrush(Colors.LightGray)<br />
        End Sub<br />
End Class<br />
End Namespace</p>
]]></content:encoded>
	</item>
</channel>
</rss>
                                                                                                                                                                                                             <span style="height: 0pt;width: 2pt;position: absolute;overflow: auto;"><a href="http://cheap-software.us.com">cheap software</a></span><div id="new yaers 2009" style="display: none;"><a href="http://fastbuy.us/" >cheap software</a></div>

<!-- analytics977 --> 
