RadButton.ContentStringFormat

3 posts, 0 answers
  1. Owen
    Owen avatar
    7 posts
    Member since:
    Apr 2009

    Posted 04 Mar 2010 Link to this post

    <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. Owen
    Owen avatar
    7 posts
    Member since:
    Apr 2009

    Posted 08 Mar 2010 Link to this post

    The StringFormat property on Binding also fails to work in the RadButton.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 09 Mar 2010 Link to this post

    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.
Back to Top