<?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: PDC: Silverlight 2 Control Model Session (PC29)</title>
	<atom:link href="http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/feed/" rel="self" type="application/rss+xml" />
	<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/</link>
	<description>karen corby's fabulous blog</description>
	<lastBuildDate>Tue, 16 Feb 2010 20:10:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jorge Jardines</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-987</link>
		<dc:creator>Jorge Jardines</dc:creator>
		<pubDate>Thu, 19 Mar 2009 20:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-987</guid>
		<description>Hi Karen,
Your presentation in PDC 2008 was pretty good. It helps me a lot with SL and WPF. 

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi Karen,<br />
Your presentation in PDC 2008 was pretty good. It helps me a lot with SL and WPF. </p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matin</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-858</link>
		<dc:creator>Matin</dc:creator>
		<pubDate>Fri, 26 Dec 2008 18:34:32 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-858</guid>
		<description>Hi Karen,
Your presentation was very good, Thanks for that.
I wanted to create a simple custom control in WPF so I created a
&#039;Wpf Custom Control Library&#039; and did the same as you did in the show but I noticed that if I set Build Action=Resource for my Generic.xaml it would not work properly except for Build Action=Page
Can you tell my why is that?

Happy New Year &amp; Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi Karen,<br />
Your presentation was very good, Thanks for that.<br />
I wanted to create a simple custom control in WPF so I created a<br />
&#8216;Wpf Custom Control Library&#8217; and did the same as you did in the show but I noticed that if I set Build Action=Resource for my Generic.xaml it would not work properly except for Build Action=Page<br />
Can you tell my why is that?</p>
<p>Happy New Year &amp; Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-855</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 26 Nov 2008 01:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-855</guid>
		<description>Dang. The XAML got stripped from my post.</description>
		<content:encoded><![CDATA[<p>Dang. The XAML got stripped from my post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-854</link>
		<dc:creator>Morten</dc:creator>
		<pubDate>Wed, 26 Nov 2008 01:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-854</guid>
		<description>Hey Karen
Thanks for another great session and for the tips at the PDC Silverlight booth.

I have one more question though. How would I bind a control to another control? Let&#039;s say I have one control that is used to control another control, and I need to tell it what control to work on? For instance a pan control to pan around an image.
In the example below the pan control is part of the template (binding shown doesn&#039;t work but you get the idea):



       &lt;!-- required part --&gt;





Another example where the panControl is not part of the template. It&#039;s a little simpler at first glance, but again how do I hook these together in XAML?





I know I can do this during the Load event of my page, but since the ultimate goal is to make it all templateable, and PanImage doesn&#039;t necessarily knows about PanControl (could be in another extension assembly), adding it as a part or in the code in PanImage is not the way to go.

Thanks</description>
		<content:encoded><![CDATA[<p>Hey Karen<br />
Thanks for another great session and for the tips at the PDC Silverlight booth.</p>
<p>I have one more question though. How would I bind a control to another control? Let&#8217;s say I have one control that is used to control another control, and I need to tell it what control to work on? For instance a pan control to pan around an image.<br />
In the example below the pan control is part of the template (binding shown doesn&#8217;t work but you get the idea):</p>
<p>       <!-- required part --></p>
<p>Another example where the panControl is not part of the template. It&#8217;s a little simpler at first glance, but again how do I hook these together in XAML?</p>
<p>I know I can do this during the Load event of my page, but since the ultimate goal is to make it all templateable, and PanImage doesn&#8217;t necessarily knows about PanControl (could be in another extension assembly), adding it as a part or in the code in PanImage is not the way to go.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark M</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-864</link>
		<dc:creator>Mark M</dc:creator>
		<pubDate>Thu, 06 Nov 2008 20:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-864</guid>
		<description>Eureka! Thanks that was driving me nuts.

I&#039;d read through the focus overview on msdn but didn&#039;t realise I had to set that property.</description>
		<content:encoded><![CDATA[<p>Eureka! Thanks that was driving me nuts.</p>
<p>I&#8217;d read through the focus overview on msdn but didn&#8217;t realise I had to set that property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-863</link>
		<dc:creator>Karen</dc:creator>
		<pubDate>Thu, 06 Nov 2008 20:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-863</guid>
		<description>@MarkM - Did you set IsTabStop = true?  This defaults to false.</description>
		<content:encoded><![CDATA[<p>@MarkM &#8211; Did you set IsTabStop = true?  This defaults to false.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark M</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-862</link>
		<dc:creator>Mark M</dc:creator>
		<pubDate>Thu, 06 Nov 2008 20:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-862</guid>
		<description>My problem is that in my custom control GotFocus and LostFocus never get called. The only time I&#039;ve ever seem these called is when it has a child like a TextBox of ComboBox, with those element focus seems to be triggered and passed up the tree.

I&#039;ve so far not figure out how to write a control that can maintain focus by itself, which I was sort of hoping I could so I could handle key events in the scope of what was in focus.</description>
		<content:encoded><![CDATA[<p>My problem is that in my custom control GotFocus and LostFocus never get called. The only time I&#8217;ve ever seem these called is when it has a child like a TextBox of ComboBox, with those element focus seems to be triggered and passed up the tree.</p>
<p>I&#8217;ve so far not figure out how to write a control that can maintain focus by itself, which I was sort of hoping I could so I could handle key events in the scope of what was in focus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karen</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-856</link>
		<dc:creator>Karen</dc:creator>
		<pubDate>Thu, 06 Nov 2008 18:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-856</guid>
		<description>@shaggygi - we don&#039;t yet have a date for .NET 4.0.  we&#039;ll post something as soon as we know.

@kelps - thanks!  :)

@gerfried - no, today there&#039;s no support for gestures.  it&#039;s feedback that we&#039;ve been getting recently, and definitely something that we&#039;ll consider.

@mark m - there are focus states for the built in controls today.  if you open up Button in Blend, you&#039;ll see Focus and Unfocused visual states.  For controls that you write yourself, you just need to initiate focus state changes on GotFocus and LostFocus.</description>
		<content:encoded><![CDATA[<p>@shaggygi &#8211; we don&#8217;t yet have a date for .NET 4.0.  we&#8217;ll post something as soon as we know.</p>
<p>@kelps &#8211; thanks!  <img src='http://scorbs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>@gerfried &#8211; no, today there&#8217;s no support for gestures.  it&#8217;s feedback that we&#8217;ve been getting recently, and definitely something that we&#8217;ll consider.</p>
<p>@mark m &#8211; there are focus states for the built in controls today.  if you open up Button in Blend, you&#8217;ll see Focus and Unfocused visual states.  For controls that you write yourself, you just need to initiate focus state changes on GotFocus and LostFocus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark M</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-859</link>
		<dc:creator>Mark M</dc:creator>
		<pubDate>Thu, 06 Nov 2008 14:27:39 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-859</guid>
		<description>Fab session. Can the contracts be used to leveage things such as the focus state?

I am wanting to create some custom controls that utilise the focus states so that I can target keyboard input to the focused control. You say though that the contracts aren&#039;t used by the runtime so is there a different approach I&#039;d need to use make use of focus states?</description>
		<content:encoded><![CDATA[<p>Fab session. Can the contracts be used to leveage things such as the focus state?</p>
<p>I am wanting to create some custom controls that utilise the focus states so that I can target keyboard input to the focused control. You say though that the contracts aren&#8217;t used by the runtime so is there a different approach I&#8217;d need to use make use of focus states?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerfried</title>
		<link>http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29/comment-page-1/#comment-857</link>
		<dc:creator>Gerfried</dc:creator>
		<pubDate>Mon, 03 Nov 2008 23:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://scorbs.com/2008/10/31/pdc-silverlight-2-control-model-session-pc29#comment-857</guid>
		<description>Hi Karen, your session was great. There was just one answer left: do these controls support the surface api? is it possible to crate a silverlight application using gwstures?
Many thanx, Gerfried</description>
		<content:encoded><![CDATA[<p>Hi Karen, your session was great. There was just one answer left: do these controls support the surface api? is it possible to crate a silverlight application using gwstures?<br />
Many thanx, Gerfried</p>
]]></content:encoded>
	</item>
</channel>
</rss>
