This is a migrated thread and some comments may be shown as answers.

Latest Builds Ignore Style Property

2 Answers 41 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Gregory
Top achievements
Rank 1
Gregory asked on 28 Dec 2010, 09:40 PM
I'm trying to set the Style of both a RadDropDownButton and a RadButton. This exact XAML worked before but now it does not.  I've tried everything to localize the issue, but it comes down to the fact that it just downright ignores the Style property set in XAML. I've included it below, however, as I said, even doing the simplest style, even in the same XAML files resources section, ends up being ignored. It works fine with version 2010.2.924.1040. Why doesn't it work with later versions?

    <Style x:Key="RemoveButtonStyle" TargetType="ContentControl">
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Image Width="32"
                                     Height="32"
                                     HorizontalAlignment="Center"
                                     VerticalAlignment="Center">
                                <Image.Source>
                                    <ImageSource>/Asi.FundTracker.UI.Silverlight;component/Assets/Images/Delete.png</ImageSource>
                                </Image.Source>
                            </Image>
                            <ContentPresenter Content="{Binding}" />
                        </StackPanel>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="ToolTipService.ToolTip" Value="Remove Record"/>
    </Style>



2 Answers, 1 is accepted

Sort by
0
Gregory
Top achievements
Rank 1
answered on 28 Dec 2010, 09:42 PM
As a side note, I CAN get the ContentTemplate property set if I do it manually in the control instead of doing it through the style, but this was all working before and setting the ContentTemplate property of all these buttons is not the desired solution.
0
Tina Stancheva
Telerik team
answered on 30 Dec 2010, 04:20 PM
Hi Gregory,

I posted an answer to the bug report you sent. However, I will paste it here as well, should anyone else encounter the issue as well:

This is a known issue introduced with the latest official release and we have logged it in our PITS where you can track its status.

Please accept our apology for the caused inconvenience.

Best wishes,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Buttons
Asked by
Gregory
Top achievements
Rank 1
Answers by
Gregory
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or