[Mono-aspnet-list] StaticHoverStyle in skin/css file

szafer szafer at o2.pl
Tue Apr 14 19:15:15 EDT 2009


Hello,
I want to have hoverstyle, when mouse hover item on my menu.
When I'm running project in Visual Studio everything is fine, but 
when I'm trying to run it on Mono 2.4 everything is fine, except hover
event.

In my ASP.NET application I've got asp:menu control:
 <asp:Menu ID="Menu1" 
        runat="server" 
        DataSourceID="source1" 
        Orientation="Horizontal"
        MaximumDynamicDisplayLevels="3" 
        StaticMenuItemStyle-ItemSpacing="0" 
        StaticDisplayLevels="1" 
        StaticItemFormatString="&nbsp;&nbsp;&nbsp; {0} &nbsp;&nbsp;&nbsp;" 
        SkinID="subMenu">
  </asp:Menu>

I want to use Themes(skin and css). 

This is content of my skin file:
<asp:Menu SkinID="subMenu" Orientation="Horizontal" runat="server"
CssClass="mymenu">
<StaticHoverStyle CssClass="mymenu_hover"/>
</asp:Menu>

And here is class 'mymenu' and 'mymenu_hover' from css file:
.mymenu
{
	background-color: #79BCFF;
}

.mymenu_hover
{
	background-color: #0066FF;
}

I tested if Mono 2.4 is handling event StaticHoverStyle, so I've tried to
write <StaticHoverStyle  BackColor="Black"/>, between tags <asp:menu>
</asp:menu> and it is working.
I've also tried use CSS class in declaration of
asp:menu(StaticHoverStyle-CssClass="mymenu_hover"),
but its do nothing.
It seems that Mouse Hover is not handling by Mono 2.4.

I have Suse 11.1 and Mono 2.4 from repository.

I really need help to run StaticHoverStyle in css or skin file.

Thanks a lot!
-- 
View this message in context: http://www.nabble.com/StaticHoverStyle-in-skin-css-file-tp23049827p23049827.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list