The Ribbon window in volume 3 seems to have a bug involving the maximizing of the window, the content is not resizing with the window.
It must be something I'm doing the, here's the xaml code for my window:<igRibbon:XamRibbonWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:igRibbon="http://infragistics.com/Ribbon" xmlns:igEditors="http://infragistics.com/Editors" xmlns:igWindows="http://infragistics.com/Windows" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Sierra.Sonata.Configurator.RouterDialog" x:Name="editorWindow" Width="1024" Height="738" Title="xamRibbonWindow" ResizeMode="CanResizeWithGrip" MinWidth="1024" MinHeight="738" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" SizeToContent="Manual" WindowStartupLocation="CenterScreen"> <igRibbon:RibbonWindowContentHost> <igRibbon:RibbonWindowContentHost.Resources> <DataTemplate x:Key="PropertiesListTemplate"> <DataTemplate.Resources> <Storyboard x:Key="ItemSelected"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </DataTemplate.Resources> <Grid Height="40" Width="Auto"> <Rectangle Fill="#68969696" Stroke="#33FFFFFF" RadiusX="6" RadiusY="6" Margin="0,0,0,0" x:Name="rectangle" IsHitTestVisible="False" Opacity="0"/> <TextBlock Margin="8,8,5.5,8" Text="{Binding Path=Header, Mode=OneWay}" TextWrapping="Wrap" Foreground="#FFFFFFFF" VerticalAlignment="Center" HorizontalAlignment="Left"/> </Grid> <DataTemplate.Triggers> <DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={x:Static RelativeSource.TemplatedParent}}" Value="true"> <DataTrigger.EnterActions> <BeginStoryboard Storyboard="{StaticResource ItemSelected}" x:Name="OnSelected_BeginStoryboard"/> </DataTrigger.EnterActions> <DataTrigger.ExitActions> <RemoveStoryboard BeginStoryboardName="OnSelected_BeginStoryboard"/> </DataTrigger.ExitActions> </DataTrigger> </DataTemplate.Triggers> </DataTemplate> <Style x:Key="CloseButtonStyle" TargetType="{x:Type Button}"> <Style.Resources> <Storyboard x:Key="Storyboard1"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="{x:Null}" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="00:00:00.0010000"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.295"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </Style.Resources> <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/> <Setter Property="Background" Value="{StaticResource ButtonNormalBackgroundFill}"/> <Setter Property="BorderBrush" Value="{StaticResource ButtonBorder}"/> <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> <Setter Property="HorizontalContentAlignment" Value="Center"/> <Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <ControlTemplate.Resources> <Storyboard x:Key="MouseEnter"> <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path_Copy" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF595911"/> </ColorAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path_Copy" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF63631C"/> </ColorAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path_Copy" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFA09F3C"/> </ColorAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path_Copy" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[4].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFD7D68F"/> </ColorAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path_Copy" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)"> <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FF3A3A0F"/> </ColorAnimationUsingKeyFrames> </Storyboard> <Storyboard x:Key="MouseExit"/> <Storyboard x:Key="MouseDown"/> <Storyboard x:Key="MouseUp"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path_Copy" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)"> <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.745"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path_Copy" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)"> <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.806"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Path_Copy" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Offset)"> <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.903"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)"> <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="-0.501"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </ControlTemplate.Resources> <Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5"> <Grid.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="1" ScaleY="1"/> <SkewTransform AngleX="0" AngleY="0"/> <RotateTransform Angle="0"/> <TranslateTransform X="0" Y="0"/> </TransformGroup> </Grid.RenderTransform> <Path x:Name="Path_Copy" Stretch="Fill" Data="F1 M90.069901,0.20786061 C25.493272,3.1179092 0.0130615,25.3567 0.0130615,56.638 L0,147.305 309.49865,147.78889 C340.77865,147.78889 397.13836,131.36618 397.13836,100.08488 L397.539,0 145.4213,0.31179091 z" Stroke="#C9FFFFFF" StrokeThickness="1" HorizontalAlignment="Stretch" Margin="-8.017,-4,-5.724,-4.061"> <Path.Fill> <LinearGradientBrush EndPoint="0.500005,0" StartPoint="0.500005,1"> <GradientStop Color="#FF000000" Offset="0"/> <GradientStop Color="#FF262626" Offset="0.435"/> <GradientStop Color="#FF4C4C4C" Offset="0.5"/> <GradientStop Color="#FF3F3F3F" Offset="0.752747"/> <GradientStop Color="#FF333333" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/> </Grid> <ControlTemplate.Triggers> <EventTrigger RoutedEvent="Mouse.MouseEnter"> <BeginStoryboard Storyboard="{StaticResource MouseEnter}" x:Name="MouseEnter_BeginStoryboard" /> </EventTrigger> <EventTrigger RoutedEvent="Mouse.MouseLeave"> <RemoveStoryboard BeginStoryboardName="MouseEnter_BeginStoryboard"/> <RemoveStoryboard BeginStoryboardName="MouseEnter_BeginStoryboard"/> </EventTrigger> <EventTrigger RoutedEvent="Mouse.PreviewMouseUp"> <RemoveStoryboard BeginStoryboardName="MouseUp_BeginStoryboard"/> </EventTrigger> <EventTrigger RoutedEvent="Mouse.PreviewMouseDown"> <BeginStoryboard Storyboard="{StaticResource MouseUp}" x:Name="MouseUp_BeginStoryboard"/> </EventTrigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property="IsEnabled" Value="False"> <Trigger.ExitActions> <RemoveStoryboard BeginStoryboardName="Storyboard1_BeginStoryboard"/> </Trigger.ExitActions> <Trigger.EnterActions> <BeginStoryboard Storyboard="{StaticResource Storyboard1}" x:Name="Storyboard1_BeginStoryboard"/> </Trigger.EnterActions> </Trigger> </Style.Triggers> </Style> <ItemsPanelTemplate x:Key="ItemsPanelTemplate"> <VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/> </ItemsPanelTemplate> </igRibbon:RibbonWindowContentHost.Resources> <igRibbon:RibbonWindowContentHost.Ribbon> <igRibbon:XamRibbon x:Name="xamRibbon" VerticalAlignment="Top" Theme="Office2k7Black" Height="88.76" ActiveItemChanged="xamRibbon_ActiveItemChanged" RibbonTabItemSelected="xamRibbon_RibbonTabItemSelected"> <igRibbon:XamRibbon.QuickAccessToolbar> <igRibbon:QuickAccessToolbar> <igRibbon:QatPlaceholderTool ToolTip="Download a text file to the router." OpacityMask="{x:Null}" TargetId="copyTool"/> </igRibbon:QuickAccessToolbar> </igRibbon:XamRibbon.QuickAccessToolbar> <igRibbon:XamRibbon.ToolsNotInRibbon> <igRibbon:ButtonTool Id="copyTool" Content="Download File" Click="ButtonTool_Click"/> </igRibbon:XamRibbon.ToolsNotInRibbon> <!--<igRibbon:XamRibbon.ApplicationMenu> <igRibbon:ApplicationMenu Image="../device.ico"/> </igRibbon:XamRibbon.ApplicationMenu>--> <!-- Add a Tab Control to contain all of the tabs for the Ribbon. --> <!-- Add a series of TabItems to create as many tabs as needed for the Ribbon. --> <igRibbon:RibbonTabItem Header="Communications" x:Name="CommMenu"/> <igRibbon:RibbonTabItem Header="Names" x:Name="NameMenu"/> <igRibbon:RibbonTabItem Header="Alarms" x:Name="AlarmMenu"/> <igRibbon:RibbonTabItem Header="Gains" x:Name="GainMenu"/> </igRibbon:XamRibbon> </igRibbon:RibbonWindowContentHost.Ribbon> <Grid Width="Auto" Height="Auto"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <Grid HorizontalAlignment="Stretch" x:Name="ForeGround" VerticalAlignment="Stretch" Width="Auto" Height="Auto"> <ContentPresenter Margin="0,0,0,0" x:Name="PropertyPresenter"/> </Grid> <Grid Grid.Row="1"> <Rectangle Fill="#33828282" Stroke="#31FFFFFF" RadiusX="3.5" RadiusY="3.5"/> <Grid HorizontalAlignment="Left" Margin="20,2,0,2" Width="400" x:Name="FileProgress" Visibility="Collapsed"> <TextBlock HorizontalAlignment="Left" Margin="7,5.02,0,5.02" Width="140.5" Foreground="#FFFFFFFF" Text="Sending file to router....." TextWrapping="Wrap" d:LayoutOverrides="Height"/> <ProgressBar Margin="151.5,6,8,6" x:Name="FileProgressBar"/> </Grid> </Grid> </Grid> </igRibbon:RibbonWindowContentHost></igRibbon:XamRibbonWindow>
Hi Benjaminji,
I tried to reproduce your Ribbon Window issue, but everything with the XamRibbonWindow maximization seems OK.The XamRibbonWindow content resizes properly when you miximize or minimize the XamRibbonWindow.You can see this from the attached sample application.
Best Regards,Yanko
I can't re-create this, but I might not be doing the same thing you are doing. Can you send more details on what content you have that is not re-sizing when you maximize.
In the mean time, I am letting developer support know about this thread so they can get involved as well.
Thanks
Jason