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

AutoResize problem withTextOptions.TextFormattingMode

1 Answer 36 Views
Window
This is a migrated thread and some comments may be shown as answers.
Giliador
Top achievements
Rank 1
Giliador asked on 25 Jan 2013, 05:38 PM
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>

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 30 Jan 2013, 10:55 AM
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.

Tags
Window
Asked by
Giliador
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or