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

Minimize the outlook bar

2 Answers 142 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 28 Oct 2014, 06:28 PM
I guess I am missing something on the outlook bar.  I have the outlook bar in a grid with horizontal and vertical size set to stretch.  When I resize the form, the outlook bar resizes, great.  However, when I do a minimize with either the header icon or with the right side sizer, the outlook bar doesn't move to the left, it "pinches" together in the center of the column.  I know that you can have the bar collapse to the left, one of the demos show it, but I can't figure it out.  How can I collapse the outlook bar to the left?

Thanks.

2 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 29 Oct 2014, 02:18 PM
Found it. Layout, horizontal alignment to the left.
0
Milena
Telerik team
answered on 29 Oct 2014, 02:26 PM
Hello John,

I am glad that you found a solution.

You can also use property triggers to change the HorizontalAlignment of the RadOutlookBar when it is in minimized or restored state: 
<Grid.Resources>
    <Style TargetType="telerik:RadOutlookBar" BasedOn="{StaticResource RadOutlookBarStyle}">
        <Style.Triggers>
            <Trigger Property="IsMinimized" Value="True">
                <Setter Property="HorizontalAlignment" Value="Left"/>
            </Trigger>
 
            <Trigger Property="IsMinimized" Value="False">
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
            </Trigger>
        </Style.Triggers>
    </Style>
</Grid.Resources>
 
<telerik:RadOutlookBar x:Name="outlookBar"
         VerticalAlignment="Stretch"
         IsMinimizable="True"  >
...
 </telerik:RadOutlookBar>

Regards,
Milena
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
OutlookBar
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Milena
Telerik team
Share this question
or