If you have a RadButton in a RadToolbar and the button properties are set in a style, those properties do not get applied at runtime. If you set the properties directly on the button itself, then they do get set. This was working before and broke in the latest release.
Example:
With the above XAML, the Tooltip is NOT SET on the button.
While here:
The tooltip IS SET on the button.
This might seem like a minor thing, but we have MANY buttons in our application and they all take advantage of property setting via styles. There's NO WAY we are going to go change all of our XAML to work around this. We cannot upgrade to the Q1 2013 release until this is fixed.
Example:
<telerik:RadToolBar x:Class="ToolBarTest.View.ToolBars.StandardToolbarView" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:Controls="clr-namespace:ToolBarTest.Controls" > <telerik:RadToolBar.Resources> <Style x:Key="Refresh" TargetType="telerik:RadButton"> <Setter Property="ToolTip" Value="Refresh Set Via Property"/> </Style> </telerik:RadToolBar.Resources> <telerik:RadButton x:Name="Refresh" Style="{StaticResource Refresh}" Controls:ImageContentSetter.Source="/ToolBarTest;component/Images/document_refresh.png" /> </telerik:RadToolBar>
With the above XAML, the Tooltip is NOT SET on the button.
While here:
<telerik:RadToolBar x:Class="ToolBarTest.View.ToolBars.StandardToolbarView" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:Controls="clr-namespace:ToolBarTest.Controls" > <telerik:RadToolBar.Resources> <Style x:Key="Refresh" TargetType="telerik:RadButton"> </Style> </telerik:RadToolBar.Resources> <telerik:RadButton x:Name="Refresh" Style="{StaticResource Refresh}" Controls:ImageContentSetter.Source="/ToolBarTest;component/Images/document_refresh.png" ToolTip="Refresh" /> </telerik:RadToolBar>
The tooltip IS SET on the button.
This might seem like a minor thing, but we have MANY buttons in our application and they all take advantage of property setting via styles. There's NO WAY we are going to go change all of our XAML to work around this. We cannot upgrade to the Q1 2013 release until this is fixed.