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

RadButton.ContentStringFormat

2 Answers 231 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Owen
Top achievements
Rank 1
Owen asked on 04 Mar 2010, 08:33 PM
<Window x:Class="WpfApplication6.MainWindow" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        Title="MainWindow" Height="350" Width="525"
        <DockPanel> 
            <telerik:RadButton Content="{Binding ElementName=_slider, Path=Value}" ContentStringFormat="{}{0:p0}" VerticalAlignment="Center" HorizontalContentAlignment="Center" MinWidth="50" BorderBrush="Transparent" BorderThickness="0" Background="Transparent"/> 
            <telerik:RadSlider x:Name="_slider" HandlesVisibility="Visible" VerticalAlignment="Center" Minimum="0.1" EnableSideTicks="True" TickFrequency="0.1" IsSnapToTickEnabled="True" Maximum="4" Value="1"/> 
        </DockPanel> 
</Window> 
Making the RadButton a WPF Button produces the proper "100%" string (en-US culture).  The RadButton produces "1"
This seems to me to be a bug.

2 Answers, 1 is accepted

Sort by
0
Owen
Top achievements
Rank 1
answered on 08 Mar 2010, 06:29 PM
The StringFormat property on Binding also fails to work in the RadButton.
0
Ivan
Telerik team
answered on 10 Mar 2010, 01:48 AM
Hello Owen,

Thank you for reporting the issue.

According to this report we updated your Telerik points.

Best wishes,
Ivan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Buttons
Asked by
Owen
Top achievements
Rank 1
Answers by
Owen
Top achievements
Rank 1
Ivan
Telerik team
Share this question
or