<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Data Binding with a Custom UserControl&#8217;s Text Property</title>
	<atom:link href="http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/feed/" rel="self" type="application/rss+xml" />
	<link>http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/</link>
	<description>Making a Big Wind</description>
	<lastBuildDate>Wed, 14 Oct 2009 09:34:12 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: PavlinII</title>
		<link>http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-194</link>
		<dc:creator>PavlinII</dc:creator>
		<pubDate>Wed, 14 Oct 2009 09:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-194</guid>
		<description>Great article! I wish I found it last night :)

I&#039;ve came across the same issue last night and tried almost everything else except checking OnTextChanged procedure.

Thanks!</description>
		<content:encoded><![CDATA[<p>Great article! I wish I found it last night <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve came across the same issue last night and tried almost everything else except checking OnTextChanged procedure.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hurcane</title>
		<link>http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-191</link>
		<dc:creator>hurcane</dc:creator>
		<pubDate>Sun, 22 Feb 2009 21:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-191</guid>
		<description>Lior,

I can&#039;t provide a specific answer to your problem. However, you can put a breakpoint on the OnTextChanged line in your code to see the call stack that leads to it.

I can make a wild guess, though. I suggested putting OnTextChanged in the Validating event because that worked for our needs. I know that the Validation events can do some strange things when a MenuStrip or ToolStrip control is involved.</description>
		<content:encoded><![CDATA[<p>Lior,</p>
<p>I can&#8217;t provide a specific answer to your problem. However, you can put a breakpoint on the OnTextChanged line in your code to see the call stack that leads to it.</p>
<p>I can make a wild guess, though. I suggested putting OnTextChanged in the Validating event because that worked for our needs. I know that the Validation events can do some strange things when a MenuStrip or ToolStrip control is involved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lior</title>
		<link>http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-190</link>
		<dc:creator>Lior</dc:creator>
		<pubDate>Sun, 22 Feb 2009 01:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-190</guid>
		<description>... this means that this solution is doing something different from the default behaviour</description>
		<content:encoded><![CDATA[<p>&#8230; this means that this solution is doing something different from the default behaviour</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lior</title>
		<link>http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-189</link>
		<dc:creator>Lior</dc:creator>
		<pubDate>Sun, 22 Feb 2009 01:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-189</guid>
		<description>I got a form with a user-control and a toolbar with a button. when I click the button i commit the changes to the database. 
The problem is that the &quot;TextChanged&quot; event is fire after saving changes. When I change the property name from &quot;Text&quot; to something else, everything works fine. any idea?</description>
		<content:encoded><![CDATA[<p>I got a form with a user-control and a toolbar with a button. when I click the button i commit the changes to the database.<br />
The problem is that the &#8220;TextChanged&#8221; event is fire after saving changes. When I change the property name from &#8220;Text&#8221; to something else, everything works fine. any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yev</title>
		<link>http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-188</link>
		<dc:creator>Yev</dc:creator>
		<pubDate>Tue, 03 Feb 2009 21:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-188</guid>
		<description>Mike, in your response, what is TextChanged? an event of the usercontrol? How is it wired?</description>
		<content:encoded><![CDATA[<p>Mike, in your response, what is TextChanged? an event of the usercontrol? How is it wired?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-186</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 02 Jan 2009 22:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://hurcane.wordpress.com/2006/05/09/data-binding-with-a-custom-usercontrols-text-property/#comment-186</guid>
		<description>Good blog. Ran into this exact same problem and your advice pointed me in the right direction. here&#039;s the C# that fixed it. Do a google on implementing INotifyPropertyChanged.

Assume a UserControl with a single TextBox for simplicty.

[System.ComponentModel.DefaultBindingProperty(&quot;Text&quot;)]
public partial class MinMaxTextBox : UserControl, INotifyPropertyChanged
{

	[Bindable(true)]
        public override string Text
        {
            get { return txtData.Text; }
            set { txtData.Text = value; }
        }

	private void txtData_TextChanged(object sender, EventArgs e)
        {
            if (TextChanged != null)
            {
                TextChanged(sender, e);
            }
            PropertyChanged(this, new PropertyChangedEventArgs(&quot;Text&quot;));
        }
}</description>
		<content:encoded><![CDATA[<p>Good blog. Ran into this exact same problem and your advice pointed me in the right direction. here&#8217;s the C# that fixed it. Do a google on implementing INotifyPropertyChanged.</p>
<p>Assume a UserControl with a single TextBox for simplicty.</p>
<p>[System.ComponentModel.DefaultBindingProperty("Text")]<br />
public partial class MinMaxTextBox : UserControl, INotifyPropertyChanged<br />
{</p>
<p>	[Bindable(true)]<br />
        public override string Text<br />
        {<br />
            get { return txtData.Text; }<br />
            set { txtData.Text = value; }<br />
        }</p>
<p>	private void txtData_TextChanged(object sender, EventArgs e)<br />
        {<br />
            if (TextChanged != null)<br />
            {<br />
                TextChanged(sender, e);<br />
            }<br />
            PropertyChanged(this, new PropertyChangedEventArgs(&#8220;Text&#8221;));<br />
        }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
