title: Expose a Control of a Master Page via Interface
body: <p>I have a simple interface like this:</p>
  
  <pre><code>interface IToolbarMaster {
      ToolBar Toolbar { get; }
  }
  </code></pre>
  
  <p>I added this Interface to my MasterPage and moved the field declaration of the Toolbar-Control to the Code Behind File:</p>
  
  <pre><code>public partial class Layout : ctrls.MasterPage, IToolbarMaster {
  
      public global::Some.Web.Controls.ToolBar Toolbar;
  
      (...)
  
  }
  </code></pre>
  
  <p>My pages need to access this Toolbar Control via the Interface (we have a <code>.FindMaster&lt;IToolbarMaster&gt;()</code> Method) - but the code says, <code>Layout</code> doesn't implement <code>IToolbarMaster</code></p>
  
  <p>I could implement a property like</p>
  
  <pre><code>public ToolBar ToolBar { get { return this.Toolbar; } } // Different name spelling
  </code></pre>
  
  <p>But this looks really odd in my opinion.</p>