Right OutlookBar

10 posts, 0 answers
  1. Geoffrey
    Geoffrey avatar
    48 posts
    Member since:
    Mar 2013

    Posted 21 Oct 2015 Link to this post

    Hello,

    I have the following application (OutlookBar.png), and I don't find any Properties to change the position of right OutlookBar minimize button to Left.

    Best regards,
    Geoffrey
  2. Dinko
    Admin
    Dinko avatar
    202 posts

    Posted 26 Oct 2015 Link to this post

    Hi Geoffrey,

    We will need additional time to check your requirement. We will contact you in several hours with more information on the matter. Please excuse us for any inconvenience caused.

    Regards,
    Dinko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dinko
    Admin
    Dinko avatar
    202 posts

    Posted 26 Oct 2015 Link to this post

    Hi Geoffrey,

    RadOutlookBar doesn't expose a property that changes its minimize button's position. In order to do that you can define a Style that targets the RadToggleButton class and assign it to the outlookbar's MinimizeButtonStyle property. You can set the HorizontalAlignment of the button to Left. This will position it at the left side of the title bar.
    <Style TargetType="telerik:RadToggleButton" x:Key="MinimizeButtonStyle">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <!-- other setters-->
    </Style>
    However, setting only the HorizontalAlignment will override the default style of the button. To preserve the default look of the button you can extract its Style from the outlookbar's style and assign it to the MinimizeButtonStyle property. Then you can change only the HorizontalAlignment property. This will position the button to the left over the outlookbar's Title. To avoid the title's overlapping you can reposition it. You can do this defining a TitleTemplate for the control and set the HorizontalAlignment (or Margin) of the root element in the template to Right or Center for example. 
    <DataTemplate x:Key="titleTemplate">           
                <TextBlock Text="{Binding}" HorizontalAlignment="Right"/>
            </DataTemplate>
    You can find a project attached in my reply which you can use as a reference. If this is not he solution you are looking for, please don't hesitate to contact us again.
     
    Regards,
    Dinko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Geoffrey
    Geoffrey avatar
    48 posts
    Member since:
    Mar 2013

    Posted 27 Oct 2015 Link to this post

    Thanks for your reply,

    I use the functionality of switching theme at runtime so it's not conceivable to change the template of all themes to achieve this.

    Can you consider adding ​that functionnality for Q1 2016 ?

    Best regards,
    Geoffrey
  6. Dinko
    Admin
    Dinko avatar
    202 posts

    Posted 30 Oct 2015 Link to this post

    Hello Geoffrey,

    Currently, we have already planned our next release and this feature wasn't included. However, we updated the project from our last reply to demonstrate a bit more convenient approach for a scenario with changing themes at runtime. Please give it a try and let me know if it helps.

    Meanwhile, if you have any additional questions or concerns regarding Telerik controls, please do not hesitate to contact us.

    Regards,
    Dinko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Geoffrey
    Geoffrey avatar
    48 posts
    Member since:
    Mar 2013

    Posted 17 Nov 2015 in reply to Dinko Link to this post

    Hello, I just try your sample.

    I have the following error :

    Can not rely on a Style with target type whose base type is 'RadToggleButton'.

    Any idea ?

    Regards,
    Geoffrey
     
     
  8. Dinko
    Admin
    Dinko avatar
    202 posts

    Posted 20 Nov 2015 Link to this post

    Hello Geoffrey,

    I was able to reproduce the observed issue. I have logged it in our feedback portal where you can track the item for status changes and add your vote for it. Basically, there is a duplicate x:Key name ("MinimizeButtonStyle") in our theme resources and an XAMLParseException is thrown when you have a style based on MinimizeButtonStyle and the Telerik.Windows.Controls.Navigation, and Telerik.Windows.Controls.RibbonView resource dictionaries are merged in the resources.

    As a workaround, you can subscribe for the Loaded event of RibbonView and merge the Telerik.Windows.Controls.RibbonView,xaml resource dictionary in the control's Resources collection. I have modified the project in my last reply so you can see how to implement the desired behavior and I updated your Telerik points for bringing this issue to our attention.

    I hope this will helps.

    Regards,
    Dinko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  9. Geoffrey
    Geoffrey avatar
    48 posts
    Member since:
    Mar 2013

    Posted 23 Dec 2015 Link to this post

    Thanks to have modify OutlookBar ResourceStyle in internal WPF Build.

    It remains a small problem.

    How to invert the Arrow direction ? I try RotateTransform without sucess. Bad CenterX and CenterY.

    Regards,
    Geoffrey
  10. Dinko
    Admin
    Dinko avatar
    202 posts

    Posted 28 Dec 2015 Link to this post

    Hello Geoffrey,

    We are not sure that we understand what you mean by bad center X and Y. However, you can try the following suggestions and see if they work for you.

    You can use the Margin property of the ToggleButton to center it in a minimized state.
    <Setter Property="Margin" Value="3 0 0 0" />

    You can use LayoutTransform to rotate the arrow which is better in your scenario. Basically, when LayoutTransform is applied, neighbouring elements are re-positioned to accommodate the transformed elements, while with the RenderTransform they are not.

    Give those approaches a try and let me know if this is the solution you are looking for.

    Regards,
    Dinko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  11. Geoffrey
    Geoffrey avatar
    48 posts
    Member since:
    Mar 2013

    Posted 28 Dec 2015 in reply to Dinko Link to this post

    The solution is OK

    Thanks a lot.

    Best regards,
    Geoffrey

Back to Top
UI for WPF is Visual Studio 2017 Ready