<?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>Luigi Melisi &#187; fillHeight</title>
	<atom:link href="http://www.luigimelisi.com/tag/fillheight/feed" rel="self" type="application/rss+xml" />
	<link>http://www.luigimelisi.com</link>
	<description>Development Blog : C# Code Samples,.NET Tips and Tricks</description>
	<lastBuildDate>Thu, 03 Mar 2011 09:01:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Come Espandere una Window Wpf solo orizzontalmente o verticalmente.</title>
		<link>http://www.luigimelisi.com/programmazione/net_framework/come-espandere-una-window-wpf-solo-orizzontalmente-o-verticalmente.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=come-espandere-una-window-wpf-solo-orizzontalmente-o-verticalmente</link>
		<comments>http://www.luigimelisi.com/programmazione/net_framework/come-espandere-una-window-wpf-solo-orizzontalmente-o-verticalmente.html#comments</comments>
		<pubDate>Sun, 10 Jan 2010 18:44:53 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[DependencyProperty]]></category>
		<category><![CDATA[fillHeight]]></category>
		<category><![CDATA[Height]]></category>
		<category><![CDATA[MyWindow]]></category>
		<category><![CDATA[PropertyChangedCallback]]></category>
		<category><![CDATA[Rect]]></category>
		<category><![CDATA[tmp]]></category>
		<category><![CDATA[typeof]]></category>
		<category><![CDATA[Window]]></category>
		<category><![CDATA[workArea]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=563</guid>
		<description><![CDATA[Per massimizzare un Window WPF solo orizzontalmento verticalmente basta usare queste poche e semplici linee di codice :


public partial class MyWindow : Window   
{   
    public MyWindow()   
    {   
        InitializeComponent();   
        FillHeight();   
    }  [...]]]></description>
			<content:encoded><![CDATA[<h2>Per massimizzare un Window WPF solo orizzontalmento verticalmente basta usare queste poche e semplici linee di codice :</h2>
<div>
<blockquote>
<li><strong><em>public partial class MyWindow : Window   </em></strong></li>
<li><strong><em>{   </em></strong></li>
<li><strong><em>    public MyWindow()   </em></strong></li>
<li><strong><em>    {   </em></strong></li>
<li><strong><em>        InitializeComponent();   </em></strong></li>
<li><strong><em>        FillHeight();   </em></strong></li>
<li><strong><em>    }   </em></strong></li>
<li><strong><em>    private void FillHeight()   </em></strong></li>
<li><strong><em>    {   </em></strong></li>
<li><strong><em>        PropertyChangedCallback tmpChanged =   </em></strong></li>
<li><strong><em>            (source, args) =&gt;   </em></strong></li>
<li><strong><em>                {   </em></strong></li>
<li><strong><em>                    var workArea = (Rect)args.NewValue;   </em></strong></li>
<li><strong><em>                    this.Height = workArea.Height;   </em></strong></li>
<li><strong><em>                };   </em></strong></li>
<li><strong><em>        DependencyProperty tmp = DependencyProperty.Register(&#8220;tmp&#8221;, typeof (Rect), typeof (Window), new PropertyMetadata(new PropertyChangedCallback(tmpChanged)));   </em></strong></li>
<li><strong><em>        this.SetResourceReference(tmp, SystemParameters.WorkAreaKey);   </em></strong></li>
<li><strong><em>    }   </em></strong></li>
<li><strong><em>}  </em></strong></li>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/programmazione/net_framework/come-espandere-una-window-wpf-solo-orizzontalmente-o-verticalmente.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

