AutoResize problem withTextOptions.TextFormattingMode

2 posts, 0 answers
  1. Giliador
    Giliador avatar
    1 posts
    Member since:
    Jul 2012

    Posted 25 Jan 2013 Link to this post

    I'm using RadWindow as ModalDialog in a WPF application. The content of the window expands with Expander.
    When I set RadWindow property TextOptions.TextFormattingMode="Display", window stops to change its size automatically and cut my content.

    Without setting this property, auto resizing works fine.

    Example for reproducing a bug:
    <telerik:RadWindow x:Class="TelerikSamples.RadWindowTest"
                       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"
                       TextOptions.TextFormattingMode="Display">
        <Grid>
            <Expander Header="Expand me">
                <StackPanel>
                    <TextBlock Text="Text1"/>
                    <TextBlock Text="Text2"/>
                    <TextBlock Text="Text3"/>
                </StackPanel>
            </Expander>
        </Grid>
    </telerik:RadWindow>

  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 30 Jan 2013 Link to this post

    Hi,

    It seems that there is a bug in RadWindow when the TextOptions.TextFormattingMode attached property is set to Display.

    We logged the issue in our Public Issue Tracker System where you can vote for it and track its status. As a workaround I would suggest you to set that attached property to the controls inside the Window instead on the RadWindow.

    I updated your Telerik points for bringing this to our attention.

    Regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top