<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Another Designer-Related Question - .NET - tribe.net</title>
  <link rel="alternate" href="http://dotnutz.tribe.net/thread/9747be76-96ac-4c4d-8c1c-f595950329bf?format=atom" />
  <subtitle>Tribe.net. Local Connections</subtitle>
  <entry>
    <title>Another Designer-Related Question</title>
    <link rel="alternate" href="http://dotnutz.tribe.net/thread/9747be76-96ac-4c4d-8c1c-f595950329bf#396a6e10-8206-466b-8471-e08c75fa405b" />
    <author>
      <name>Elfie</name>
    </author>
    <id>http://dotnutz.tribe.net/thread/9747be76-96ac-4c4d-8c1c-f595950329bf#396a6e10-8206-466b-8471-e08c75fa405b</id>
    <updated>2005-05-23T21:03:10Z</updated>
    <published>2005-05-23T21:03:10Z</published>
    <summary type="html">I've got a class (we'll call it Settings) that inherits from Component. This gives me a "Settings" object I can drop onto a page, which will place it in the bottom tray area where things like DataAdapters normally go.&#xD;
&#xD;
Settings contains properties that are used by various Controls on the page. Those controls each have a property named SettingsControl of type Settings. This gives me a "SettingsControl" property in the designer for those Controls, which has a drop-down of all Settings objects currently on the page. When I select an item from the drop-down, the SettingsControl property becomes expandable with the properties of that instance of Settings. It also changes the html of the page so the Control has a "SettingsControl='mySettingsControl'" property. Awesome.&#xD;
&#xD;
Here's the catch... if I close the page that contains these Controls, then re-open it in the designer, the Controls no longer indicate that they have been assigned a value. They all say "(None)" as if they were set to null. Interestingly, if I switch to HTML view, the "SettingsControl='mySettingsControl'" properties are all still set on each Control. It seems like something is wrong with my "get" method, but I can't imagine what. Here's the property on each of the Controls:&#xD;
&#xD;
	[Bindable(false), &#xD;
		Category("Misc"), &#xD;
		Description(""),&#xD;
		ParenthesizePropertyName(true)] &#xD;
	public Settings SettingsControl&#xD;
	{&#xD;
		get {return sharedSettings;}&#xD;
		set {sharedSettings = value;}&#xD;
	}&#xD;
	private Settings sharedSettings = null;&#xD;
&#xD;
I've tried setting Bindable to true and I've tried the method that worked for my previous issue with expandable properties. So far nothing has been successful and I haven't been able to find anything useful online anywhere.&#xD;
&#xD;
Any help would be very greatly appreciated. Naturally, if I find the solution on my own or give up, I'll make a post stating as such, so if this is still sitting here with no answer, I'm still trying to figure it out. :)</summary>
    <dc:creator>Elfie</dc:creator>
    <dc:date>2005-05-23T21:03:10Z</dc:date>
  </entry>
</feed>



