<?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>IT Answers &#187; visual</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/visual/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 19:45:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to create a (visual) window baseclass without xaml</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-a-visual-window-baseclass-without-xaml/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-a-visual-window-baseclass-without-xaml/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 21:08:58 +0000</pubDate>
		<dc:creator>Zdijn</dc:creator>
				<category><![CDATA[baseform]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[child]]></category>
		<category><![CDATA[code behind]]></category>
		<category><![CDATA[Inheritance]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[visual]]></category>
		<category><![CDATA[window]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I want to create a window baseclass that contains 3 elements: - a ribbon control (ie devcomponents wpf ribbon) - a region to contain child form controls - a statusbar This way, all windows that inherit from this window will automatically provide these controls (and soms functions). I created a lookless windowbase.cs file that [...]]]></description>
				<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to create a window baseclass that contains 3 elements:</p>
<p>- a ribbon control (ie devcomponents wpf ribbon)<br />
- a region to contain child form controls<br />
- a statusbar</p>
<p>This way, all windows that inherit from this window will automatically provide these controls (and soms functions).</p>
<p>I created a lookless windowbase.cs file that adds a 3-row grid to the window in the constructor containing a ribbon in row 0 and a statusbar in row 2.</p>
<p>2 problems arrise when using this strategy:</p>
<p>1/ The child form does not show any inherited controls during design time. This is a lesser problem, since the ribbon control and status bar can be modified from code-behind in the constructor.</p>
<p>2/ After adding controls to the child window, the xaml cannot be parsed anymore.<br />
I guess a need to add something like a contencontrol, to be added to row 1 from the code behind, but previous attempts all led to a inparsable xaml file.</p>
<p>Am I missing something obvious here?<br />
Visual inheritance is pretty basic in winforms, but I guess this work-around should be possible too&#8230;</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-create-a-visual-window-baseclass-without-xaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.016 seconds using memcached
Object Caching 326/347 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 20:50:14 -->