VB.NET使用向导,更改所选边栏(按钮)颜色 [英] VB.NET Using Wizard, Changing selected Side Bar (Button) color

查看:381
本文介绍了VB.NET使用向导,更改所选边栏(按钮)颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的地方建立了一个向导,从面板将面板的Web应用程序。除了使用接下来,previous按钮,可以使用侧栏选择去什么面板。问题是,当选定面板的侧栏按钮高亮显示/加粗,很难被辨别为我的客户。它们不仅希望按钮高亮显示,但他们希望的(选择的)侧栏按钮改变颜色为好。有没有人做到了这一点,如果是的话,你能为我提供一些code。我一直在挣扎这一点,我认为这将是比较简单...

I have a web application where I built a wizard, going from panel to panel. Besides using the Next, Previous buttons, one can use the Side Bar to select what panel to go to. The problem is that while the selected Panel's side bar button is Highlighted / Bolded, it is barely discernable to my client. Not only do they want the button highlighted, but they want the (selected) side bar button to change color as well. Has anybody done this, if so, could you provide me with some code. I have been floundering with this, I thought it would be relatively simple...

感谢您,

劳瑞麦当劳

推荐答案

我有一个同事帮我解决这个问题,他发现使用侧栏模板下面code。它的工作:

I had a co-worker help me with this problem, and he found the following code using the side bar template. It does work:

        <SideBarTemplate>
            <asp:DataList ID="SideBarList" runat="server">
                <ItemTemplate>
                    <asp:LinkButton ID="SideBarButton" runat="server" 
                        BackColor="#507CD1" 
                        Font-Names="Verdana" ForeColor="White"></asp:LinkButton>
                </ItemTemplate>
                <SelectedItemTemplate>
                    <asp:LinkButton ID="SideBarButton" runat="server" 
                        BackColor="#507CD1"  Font-Bold="true"
                        Font-Names="Verdana" ForeColor="Yellow" Enabled="true"></asp:LinkButton>
                </SelectedItemTemplate>
                <SelectedItemStyle Wrap="false" />
                <ItemStyle Wrap="false" />
            </asp:DataList>
        </SideBarTemplate>
        <SideBarStyle Width="5%" Wrap="false" />

        <StepStyle Font-Size="0.8em" ForeColor="#333333" />

这是真正回答这个问题。

It's the that really answered the problem

这篇关于VB.NET使用向导,更改所选边栏(按钮)颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆