Stretch control

2 posts, 0 answers
  1. Ludwig
    Ludwig avatar
    22 posts
    Member since:
    Feb 2011

    Posted 24 Feb 2011 Link to this post

    I'm using the RadTransitionControl in my PRISM application:

        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />            
            </Grid.RowDefinitions>

            <Grid Grid.Row="0">
               ...         </Grid>

            <Grid Grid.Row="1">
                <ItemsControl>
                    <telerik:RadTransitionControl cal:RegionManager.RegionName="{x:Static Environment:RegionNames.MainContentRegion}">
                        <telerik:RadTransitionControl.Transition>
                            <TransitionEffects:PerspectiveRotationTransition />
                        </telerik:RadTransitionControl.Transition>
                        <telerik:RadTransitionControl.Easing>
                            <PowerEase EasingMode="EaseOut" Power="9" />
                        </telerik:RadTransitionControl.Easing>
                    </telerik:RadTransitionControl>
                </ItemsControl>
            </Grid>

            <Grid Grid.Row="2">
                ...
            </Grid>
        </Grid>

    The problem is that the view that is put into the MainContentRegion doesn't stretch vertically in its parent container. How can I make sure that the control that is put in MainContentRegion has the same height as the parent grid?




  2. Ludwig
    Ludwig avatar
    22 posts
    Member since:
    Feb 2011

    Posted 24 Feb 2011 Link to this post

    Found it...

            <Grid Grid.Row="1">                        
                
                <telerik:RadTransitionControl cal:RegionManager.RegionName="{x:Static Environment:RegionNames.MainContentRegion}">                   
                    <telerik:RadTransitionControl.Transition>
                        <TransitionEffects:PerspectiveRotationTransition />
                    </telerik:RadTransitionControl.Transition>
                    <telerik:RadTransitionControl.Easing>
                        <PowerEase EasingMode="EaseOut" Power="9" />
                    </telerik:RadTransitionControl.Easing>
                </telerik:RadTransitionControl>
                 
            </Grid>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top