Hi Vanya,
I have modified your code.
So can you see what the problem is. The Carousel-Item in my Application stretch to 90% of the Monitor-Resolution. I simulate it in your code with the Height- and Width- properties. The Content of the Carousel-Item marked with the color wont stretch to the Item-size.
I hope now you can understand what i mean.
Here the Code:
<Window
xmlns:Telerik_Windows_Documents_FormatProviders_Html="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"
x:Class="WpfApplication6.MainWindow"
x:Name="Window"
Title="MainWindow"
Width="1280" Height="720">
<Window.Resources>
<Style TargetType="telerik:CarouselItem">
<Setter Property="Width" Value="900"/>
<Setter Property="Height" Value="500"/>
</Style>
</Window.Resources>
<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource SampleDataSource}}">
<telerik:RadCarousel Name="RadCarousel1" ItemsSource="{Binding Collection}">
<telerik:RadCarousel.ItemTemplate>
<DataTemplate>
<Border Margin="10" Background="Crimson">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="25" />
<RowDefinition Height="25" />
<RowDefinition Height="25" />
<RowDefinition Height="50*" />
<RowDefinition Height="25" />
<RowDefinition Height="50*" />
<RowDefinition Height="50*" />
</Grid.RowDefinitions>
<ScrollViewer telerik:StyleManager.Theme="Office_Black" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" Grid.RowSpan="7" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Stretch" >
<StackPanel >
<DockPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" >
<TextBlock DockPanel.Dock="Left" Text="Redner: " FontWeight="Bold" />
<TextBlock DockPanel.Dock="Left" Text="{Binding Property1}" FontWeight="Bold"/>
<TextBlock DockPanel.Dock="Right" Text="{Binding Property1}" FontWeight="Bold" />
<TextBlock DockPanel.Dock="Right" Text="Frage-Nr.: " FontWeight="Bold"/>
<TextBlock DockPanel.Dock="Top" Text=" "/>
</DockPanel>
<Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" BorderThickness="2" BorderBrush="Black" Margin="0,10,0,10">
<TextBlock Text="Frage:" FontWeight="Bold" Padding="3" />
</Border>
<TextBlock Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" Text="{Binding Property1}" TextWrapping="Wrap"/>
<Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="4" BorderThickness="2" BorderBrush="Black" Margin="0,10,0,10" HorizontalAlignment="Stretch">
<TextBlock Text="Antwort:" FontWeight="Bold" Padding="3" />
</Border>
<Telerik_Windows_Documents_FormatProviders_Html:HtmlDataProvider RichTextBox="{Binding ElementName=radRichTextBox}" Html="{Binding Path=Antworttext, Mode=TwoWay}" />
<telerik:RadRichTextBox Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="5" Name="radRichTextBox" IsReadOnly="True"
HorizontalScrollBarVisibility="Hidden" HorizontalAlignment="Stretch" />
</StackPanel>
</ScrollViewer>
</Grid>
</Border>
</DataTemplate>
</telerik:RadCarousel.ItemTemplate>
</telerik:RadCarousel>
</Grid>
</Window>
Thank you for your help