<?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 Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/wpf/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/wpf/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Tue, 18 Dec 2012 04:49:03 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Bringing Window to front in WPF</title>
		<link>https://blog.binarybits.net/bringing-window-to-front-in-wpf/</link>
					<comments>https://blog.binarybits.net/bringing-window-to-front-in-wpf/#comments</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Tue, 18 Dec 2012 04:26:18 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[WPF]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=431</guid>

					<description><![CDATA[<p>Recently I was working on WPF application where the Window would be minimized to tray and when user click&#8217;s the tray icon, the window has to show up in front of other windows. I tried lot many variants and had trouble with Windows 7 and Windows 2008 R2. The following code finally worked for me. [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/bringing-window-to-front-in-wpf/">Bringing Window to front in WPF</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently I was working on WPF application where the Window would be minimized to tray and when user click&#8217;s the tray icon, the window has to show up in front of other windows.</p>
<p>I tried lot many variants and had trouble with Windows 7 and Windows 2008 R2. The following code finally worked for me.</p>
<p>Note: This code was present in the Window which was supposed to be controlled. If required replace &#8220;this&#8221; with actual reference of the Window.</p>
<pre class="lang:c# decode:true">if (!this.IsVisible)
{
    this.Show();
}
this.WindowState = WindowState.Normal;
this.Activate();
this.Topmost = true;
this.Topmost = false;
this.Focus();</pre>
<p>The post <a href="https://blog.binarybits.net/bringing-window-to-front-in-wpf/">Bringing Window to front in WPF</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/bringing-window-to-front-in-wpf/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:38:46 by W3 Total Cache
-->