首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RadDropDownButton.DropDownContent作为RadButton -不能更改高亮颜色

RadDropDownButton.DropDownContent作为RadButton -不能更改高亮颜色
EN

Stack Overflow用户
提问于 2013-08-13 19:27:37
回答 1查看 1.9K关注 0票数 1

这是我的xaml代码..。

悬停的颜色仍然是黄色的金色的盒子颜色..。我是不是做错什么了。我想要改变它,以便我可以指定鼠标的颜色。

代码语言:javascript
复制
 <telerik:RadDropDownButton Height="16" HorizontalAlignment="Left" IsOpen="False" Margin="999,16,0,0" Name="RDDLocations" VerticalAlignment="Top" Width="15" Content=" " Background="#FF25B7DB" Foreground="White" BorderThickness="0">
        <telerik:RadDropDownButton.DropDownContent>
            <telerik:RadListBox x:Name="UIOptionsList" ItemsSource="{Binding LocationItems}" Background="#FF25B7DB">
                <telerik:RadListBox.ItemTemplate>
                    <DataTemplate>
                        <telerik:RadButton>
                            <telerik:RadButton.Style>
                                <Style TargetType="telerik:RadButton">
                                    <Setter Property="BorderBrush" Value="Transparent"/>
                                    <Setter Property="Height" Value="32"/>
                                    <Setter Property="Width" Value="200"/>
                                    <Setter Property="Foreground" Value="White"/>
                                    <Setter Property="FontFamily" Value="Franklin Gothic Book"/>
                                    <Setter Property="FontSize" Value="16"/>
                                    <Setter Property="Content" Value="{Binding Text}"/>
                                    <Setter Property="ToolTip" Value="{Binding ToolTip}"/>
                                    <Setter Property="BorderThickness" Value="0"/>
                                    <Setter Property="Background" Value="Transparent"/>
                                    <Style.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <Setter Property="Background" Value="#FF25B7DB"/>
                                            <Setter Property="Foreground" Value="Orange"/>
                                        </Trigger>
                                    </Style.Triggers>
                                </Style>
                            </telerik:RadButton.Style>
                        </telerik:RadButton>
                    </DataTemplate>
                </telerik:RadListBox.ItemTemplate>
            </telerik:RadListBox>
        </telerik:RadDropDownButton.DropDownContent>
    </telerik:RadDropDownButton>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-11-06 17:15:10

我的解决方案是使用一个普通按钮而不是telerik雷达按钮。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18217521

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档