 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPF Reflections</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/wpf</link>
	<description></description>
	<lastBuildDate>Mon, 21 Jan 2013 19:34:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>WPF &#8211; Loaded event in browser applications</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/wpf-loaded-event-in-browser-applications/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/wpf-loaded-event-in-browser-applications/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 09:58:46 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/wpf-loaded-event-in-browser-applications/</guid>
		<description><![CDATA[This is a slightly strange one to my thinking. If you have a loaded event in a panel on a page, it will get fired multiple times. This goes against the behaviour of a WPF application (or Winforms for that matter). I don&#8217;t know if the same is true for an Asp.Net forms application, since [...]]]></description>
				<content:encoded><![CDATA[
<p>This is a slightly strange one to my thinking.</p>
<p>If you have a loaded event in a panel on a page, it will get fired multiple times.<br />
This goes against the behaviour of a WPF application (or Winforms for that matter).<br />
I don&#8217;t know if the same is true for an Asp.Net forms application, since I haven&#8217;t done many.</p>
<p>It seems to be using the Loaded event as more of an Activated event.</p>
<p>To see this behaviour easily:</p>
<ol>
<li>Create a WPF browser application (xbap)</li>
<li>Add a tab control</li>
<li>Add a panel to 1 tab</li>
<li>Add another panel to another tab</li>
<li>do something in Loaded event in first tab , eg change colour of the panel</li>
</ol>
<p>When you click on second tab and back to first tab, the loaded event will be fired again</p>
<p>&nbsp;</p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/wpf-loaded-event-in-browser-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPF Resources</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/wpf-resources/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/wpf-resources/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 12:44:38 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/wpf-resources/</guid>
		<description><![CDATA[Firstly, what is a resource? In the world of WPF, it means two things: an assembly resource an object resource An assembly resource is a blob of data that has been embedded in your assembly. Examples are images, videos or sounds. An object resource is slightly different. It specifies a re-usable chunk of information, but [...]]]></description>
				<content:encoded><![CDATA[
<p>Firstly, what is a resource?</p>
<p>In the world of WPF, it means two things:</p>
<ol>
<li>an assembly resource</li>
<li>an object resource</li>
</ol>
<p>An assembly resource is a blob of data that has been embedded in your assembly. Examples are images, videos or sounds.</p>
<p>An object resource is slightly different. It specifies a re-usable chunk of information, but is a .Net framework object instead.<br />
In the WPF world, that means defining things like styles.<br />
It also means being able to re-use those chunks in different areas of your program.</p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/wpf-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPF and Silverlight</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/wpf-and-silverlight-2/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/wpf-and-silverlight-2/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 13:59:10 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/wpf-and-silverlight-2/</guid>
		<description><![CDATA[It would seem that Silverlight 2 (WPF on the web!) is getting closer and closer. It&#8217;s very exciting of course, simply because having WPF on the web makes it more available to more people. Microsoft have released an RC (Release Candidate) for the development world, allegedly to allow everyone to get their sites working against [...]]]></description>
				<content:encoded><![CDATA[
<p>It would seem that Silverlight 2 (WPF on the web!) is getting closer and closer.</p>
<p>It&#8217;s very exciting of course, simply because having WPF on the web makes it more available to more people.</p>
<p>Microsoft have released an RC (Release Candidate) for the development world, allegedly to allow everyone to get their sites working against the final release API.<br />
Personally, i think it&#8217;s to get the development world licking their lips at the features being included.<br />
That works for me without a doubt <img src='http://itknowledgeexchange.techtarget.com/wpf/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/wpf-and-silverlight-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPF &#8211; adding hyperlinks to pages</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/wpf-adding-hyperlinks-to-pages/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/wpf-adding-hyperlinks-to-pages/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 11:18:21 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[Xbap]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/wpf-adding-hyperlinks-to-pages/</guid>
		<description><![CDATA[When you are using pages as your building blocks for WPF development, hyperlinks are a useful way to move onto different pages. That has been proved of course on the internet for many years As to why you might use pages, see a previous blog. A hyperlink in the xaml world is similar to the [...]]]></description>
				<content:encoded><![CDATA[
<p>When you are using pages as your building blocks for WPF development, hyperlinks are a useful way to move onto different pages.<br />
That has been proved of course on the internet for many years <img src='http://itknowledgeexchange.techtarget.com/wpf/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>As to why you might use pages, see a previous <a href="http://itknowledgeexchange.techtarget.com/wpf/xbap-pages-instead-of-windows/">blog</a>.</p>
<p>A hyperlink in the xaml world is similar to the anchor tag in html, in the respect that it goes inside relevant other tags.<br />
For example, to add a hyperlink to a textblock, specify the hyperlink inside the textblock:</p>
<p>&lt;TextBlock&gt;My test is going to be &lt;Hyperlink NavigateUri=&#8221;chelsea.xaml&#8221;&gt;chels&lt;/Hyperlink&gt; and their lack of Deco<br />
&lt;/TextBlock&gt;</p>
<p>That specifies the hyperlink, and when you click on it the NavigationService will move to the chelsea.xaml page</p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/wpf-adding-hyperlinks-to-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xbap &#8211; how to show them</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/xbap-how-to-show-them/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/xbap-how-to-show-them/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 16:22:00 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[Xbap]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/xbap-how-to-show-them/</guid>
		<description><![CDATA[With a standard WPF application, you don&#8217;t really have many options as to how you display the application &#8211; it has a top level window and that&#8217;s it. With a WPF application, you have four options on how to display your top level page in a container: Using a NavigationWindow &#8211; which gives you functionality [...]]]></description>
				<content:encoded><![CDATA[
<p>With a standard WPF application, you don&#8217;t really have many options as to how you display the application &#8211; it has a top level window and that&#8217;s it.</p>
<p>With a WPF application, you have four options on how to display your top level page in a container:</p>
<ol>
<li>Using a NavigationWindow &#8211; which gives you functionality akin to a normal WPF Window</li>
<li>U1sing a Frame directly inside the browser, also called an Xbap or browser application</li>
<li>Using a Frame inside another window</li>
<li>Using a Frame inside another page</li>
</ol>
<p>These all have slightly different advantages, and I have done a description for each:</p>
<ol>
<li>Hosting in <a href="http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-in-navigationwindow/">NavigationWindow</a>.</li>
<li>Hosting a frame directly <a href="http://itknowledgeexchange.techtarget.com/wpf/wpf-hosting-pages-directly-in-the-browser/">inside the browser</a></li>
<li>Hosting a <a href="http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-pages-using-frames/">frame inside a window</a></li>
<li>Hosting a <a href="http://itknowledgeexchange.techtarget.com/wpf/wpf-pages-hosting-in-pages/">frame nested inside another frame</a></li>
</ol>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/xbap-how-to-show-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPF &#8211; hosting pages directly in the browser</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/wpf-hosting-pages-directly-in-the-browser/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/wpf-hosting-pages-directly-in-the-browser/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 16:21:21 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[Xbap]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/wpf-hosting-pages-directly-in-the-browser/</guid>
		<description><![CDATA[For a description of what a page is see blog post. Why would you want to place a page within the browser? It means you can run the WPF application over the internet or an intranet without any installation at all. Thus far,I&#8217;ve mainly seen browser applications used as demos. You create one using the [...]]]></description>
				<content:encoded><![CDATA[
<p>For a description of what a page is see <a href="http://itknowledgeexchange.techtarget.com/wpf/xbap-pages-instead-of-windows/">blog post</a>.</p>
<p>Why would you want to place a page within the browser?<br />
It means you can run the WPF application over the internet or an intranet without any installation at all.<br />
Thus far,I&#8217;ve mainly seen browser applications used as demos.</p>
<p>You create one using the visual studio new wpf browser application template.</p>
<p>What is useful though, is that you can write all your views (or dialogs) as pages by using the &lt;page&gt; xml construct.<br />
Then you can put them into a class library (dll to us old-uns).<br />
That enables you to have one project that is a WPF application, and one browser application both references the common class library.<br />
Both types of application can reference the pages, and bingo you maintain your ui logic in one place.</p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/wpf-hosting-pages-directly-in-the-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPF pages hosting in pages</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/wpf-pages-hosting-in-pages/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/wpf-pages-hosting-in-pages/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 17:15:20 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[Xbap]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/wpf-pages-hosting-in-pages/</guid>
		<description><![CDATA[What do I mean by that? Simply put, you can embed a page within another page. Why would you want to do that? It allows re-use for a start, as well as splitting functionality down into logical chunks. In the following example, I have done just that: First the top level window &#60;Window x:Class=&#8221;BlogSept.Window1&#8243; xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221; [...]]]></description>
				<content:encoded><![CDATA[
<p>What do I mean by that?</p>
<p>Simply put, you can embed a page within another page.<br />
Why would you want to do that?<br />
It allows re-use for a start, as well as splitting functionality down into logical chunks.</p>
<p>In the following example, I have done just that:</p>
<p>First the top level window</p>
<p>&lt;Window x:Class=&#8221;BlogSept.Window1&#8243;<br />
xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;<br />
xmlns:x=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8221;<br />
Title=&#8221;Window1&#8243; Height=&#8221;300&#8243; Width=&#8221;300&#8243;&gt;<br />
&lt;Grid&gt;<br />
&lt;Frame Source=&#8221;page1.xaml&#8221; NavigationUIVisibility=&#8221;Visible&#8221;&gt;<br />
&lt;/Frame&gt;<br />
&lt;/Grid&gt;<br />
&lt;/Window&gt;</p>
<p>Then page1</p>
<p>&lt;Page x:Class=&#8221;BlogSept.Page1&#8243;<br />
xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;<br />
xmlns:x=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8221;<br />
Title=&#8221;Page1&#8243;&gt;<br />
&lt;Grid&gt;<br />
&lt;Rectangle Margin=&#8221;46,68,54,132&#8243; Name=&#8221;rectangle1&#8243; Stroke=&#8221;Black&#8221; Fill=&#8221;Chocolate&#8221; OpacityMask=&#8221;Beige&#8221; Opacity=&#8221;0.6&#8243; /&gt;<br />
&lt;TextBox Text=&#8221;Random text&#8221; Margin=&#8221;80, 190, 10, 10&#8243; /&gt;<br />
&lt;Frame Source=&#8221;page2.xaml&#8221; /&gt;<br />
&lt;/Grid&gt;<br />
&lt;/Page&gt;</p>
<p>Notice how it embeds a copy of page2 inside it&#8217;s visual tree.<br />
Here is page 2:</p>
<p>&lt;Page x:Class=&#8221;BlogSept.Page2&#8243;<br />
xmlns=&#8221;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;<br />
xmlns:x=&#8221;http://schemas.microsoft.com/winfx/2006/xaml&#8221;<br />
Title=&#8221;Page2&#8243;&gt;<br />
&lt;Grid&gt;<br />
&lt;Ellipse Margin=&#8221;42,71,64,118&#8243; Name=&#8221;ellipse1&#8243; Stroke=&#8221;Black&#8221; Fill=&#8221;BlueViolet&#8221; /&gt;<br />
&lt;/Grid&gt;<br />
&lt;/Page&gt;</p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/wpf-pages-hosting-in-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xbap &#8211; hosting pages using frames</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-pages-using-frames/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-pages-using-frames/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 13:56:06 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[Xbap]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-pages-using-frames/</guid>
		<description><![CDATA[For an explanation of what an Xbap is, look at a previous blog of mine. With Xbap pages, you have a useful resource. You can host pages within other windows or with a special xaml construct &#8211; a frame. To do this simply declare the frame within a window: if page1.xaml contains a page of [...]]]></description>
				<content:encoded><![CDATA[
<p>For an explanation of what an Xbap is, look at a previous blog of <a href="http://itknowledgeexchange.techtarget.com/wpf/wpf-running-xbaps-in-partial-trust/">mine</a>.</p>
<p>With Xbap pages, you have a useful resource.</p>
<p>You can host pages within other windows or with a special xaml construct &#8211; a frame.<br />
To do this simply declare the frame within a window:</p>
<p>if page1.xaml contains a page of further xaml, it&#8217;s contents will be displayed in the window <img src='http://itknowledgeexchange.techtarget.com/wpf/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-pages-using-frames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xbap &#8211; hosting in NavigationWindow</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-in-navigationwindow/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-in-navigationwindow/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 13:22:38 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[Xbap]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-in-navigationwindow/</guid>
		<description><![CDATA[To hosting your page in a NavigationWindow, what do you need to do? Well, not a lot actually. You write your page, set your app.xaml&#8217;s startup uri to point to your page and run it! It will appear in a browser if you created a browser application, or inside a NavigationWindow if it is a [...]]]></description>
				<content:encoded><![CDATA[
<p>To hosting your page in a NavigationWindow, what do you need to do?</p>
<p>Well, not a lot actually.</p>
<p>You write your page, set your app.xaml&#8217;s startup uri to point to your page and run it!<br />
It will appear in a browser if you created a browser application, or inside a NavigationWindow if it is a WPF application.</p>
<p>The WPF application will create a NavigationWindow instead of a Window to act as the top level container.<br />
It also uses the page&#8217;s WindowTitle property for the caption in the NavigationWindow <img src='http://itknowledgeexchange.techtarget.com/wpf/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The NavigationWindow class derives from Window and adds the navigation buttons and the navigation service for you.</p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/xbap-hosting-in-navigationwindow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xbap &#8211; pages instead of windows</title>
		<link>http://itknowledgeexchange.techtarget.com/wpf/xbap-pages-instead-of-windows/</link>
		<comments>http://itknowledgeexchange.techtarget.com/wpf/xbap-pages-instead-of-windows/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 15:55:23 +0000</pubDate>
		<dc:creator>MarkWPF</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[Xbap]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/wpf/xbap-pages-instead-of-windows/</guid>
		<description><![CDATA[For an explanation of what an Xbap is, look at a previous blog of mine. I have spent the last few weeks writing a Xbap (or page navigation) application in WPF. The first thing you have to get used to is that you need to forget Windows, everything is in terms of pages. What is [...]]]></description>
				<content:encoded><![CDATA[
<p>For an explanation of what an Xbap is, look at a previous blog of <a href="http://itknowledgeexchange.techtarget.com/wpf/wpf-running-xbaps-in-partial-trust/">mine</a>.</p>
<p>I have spent the last few weeks writing a Xbap (or page navigation) application in WPF.</p>
<p>The first thing you have to get used to is that you need to forget Windows, everything is in terms of pages.<br />
What is a page?<br />
Actually it looks stunningly similar to a WPF Window.<br />
You get to use exactly the same xaml markup constructs, dockpanels, textboxes etc etc.</p>
<p>The advantage of Xbaps over normal WPF application is that they run in the browser (firefox as well as internet explorer) and yet you still get all of the great WPF goodies, including animations and styles.<br />
The only restrixtion is that they need to run under partial trust rather than full trust.</p>
<p>What does that mean in practice?<br />
It means that whatever zone you pick for your xbap application confines its functionality.<br />
For example, an internet zone xbap cannot access the local file system or the registry &#8211; which is only logical</p>

<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/wpf/xbap-pages-instead-of-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
