Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
515
XamDateTimeEditor Text clipped with certain fonts
posted

Hello,

I recently discovered an issue with the XamDateTimeEditor where it clips the end of the text with certain fonts.  I attached an example of the issue (is it not possible to embed attached pictures anymore?).  My XAML is as follows:

<igEditors:XamDateTimeEditor Grid.Column="1" x:Name="time2" Mask="hh:mm:ss" Value="{Binding Time2}" Theme="Aero"
VerticalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalAlignment="Stretch" FontSize="11" FontWeight="Bold" FontFamily="Lucida Console"
Background="{StaticResource InputFieldBackgroundBrush}" BorderBrush="{StaticResource InputFieldBorderBrush}" Foreground="{StaticResource FalconLabelBrush}"
SpinButtonDisplayMode="OnlyInEditMode"  SpinWrap="True" AllowDropDown="False" InvalidValueBehavior="RetainValue"/>

As you can see, I'm not doing anything particularly special, just a typical time editor control.  When the font is set to Meiryo for example, the text is not clipped, but with Lucida Console set, the right part of the last character is sometimes clipped off.  Is there someway to fix this?

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I can suggest you set the XamDateTimeEditor’s UseLayoutRounding Property to True. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

Children