//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using CommunityServer.Components;

namespace CommunityServer.Controls {
	
	/// <summary>
	/// An ImageButton which has an ImageUrl that will be resolved relative to the current theme.
	/// </summary>
	public class ThemedImageButton : ImageButton {
		
		protected override void Render(HtmlTextWriter writer) {
			this.ImageUrl = this.ResolveUrl( Globals.GetSkinPath() + this.ImageUrl );
			base.Render( writer );
		}

	}
}
