Telerik UI for Windows Phone by Progress

The RadWindow control allows you to choose between two size modes. This is done by using the SizeModes property. It can have the following values:

  • AutoSize (default) - specifies that the window should take the space needed by the controls in it.
  • FitToPlacementTarget - specifies that the window should get stretched to the size of its placement target.
In order to specify the placement target for the window you have to use its PlacementTarget property. When the FixToPlacementTarget is used, the Placement property takes no effect.
This property will have no effect, if the IsFullScreen property is set to True.

Here is an example:

      <Grid x:Name="LayoutRoot" Background="Black" Width="300" Height="500">
      <Button Content="Open Window" Click="OpenButton_Click" VerticalAlignment="Center" HorizontalAlignment="Center" />
      <telerikPrimitives:RadWindow x:Name="radWindow" IsFullScreen="False" Grid.Row="1" PlacementTarget="{Binding
ElementName=LayoutRoot}" WindowSizeMode="FitToPlacementTarget">
      <Border Background="Coral" Padding="20">
      <Button Content="Close" VerticalAlignment="Bottom" HorizontalAlignment="Center" Click="CloseButton_Click" />
private void OpenButton_Click( object sender, RoutedEventArgs e )
this.radWindow.IsOpen = true;

private void CloseButton_Click( object sender, RoutedEventArgs e )
this.radWindow.IsOpen = false;