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
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
9 Answers, 1 is accepted
0
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
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
0
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.
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.
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
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
>
<
DataTemplate
x:Key
=
"titleTemplate"
>
<
TextBlock
Text
=
"{Binding}"
HorizontalAlignment
=
"Right"
/>
</
DataTemplate
>
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
0
Geoffrey
Top achievements
Rank 1
answered on 27 Oct 2015, 10:19 AM
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
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
0
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
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
0
Geoffrey
Top achievements
Rank 1
answered on 17 Nov 2015, 09:26 AM
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
I have the following error :
Can not rely on a Style with target type whose base type is 'RadToggleButton'.
Any idea ?
Regards,
Geoffrey
0
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
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
0
Geoffrey
Top achievements
Rank 1
answered on 23 Dec 2015, 09:41 AM
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
It remains a small problem.
How to invert the Arrow direction ? I try RotateTransform without sucess. Bad CenterX and CenterY.
Regards,
Geoffrey
0
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.
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
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
0
Geoffrey
Top achievements
Rank 1
answered on 28 Dec 2015, 09:51 AM
The solution is OK
Thanks a lot.
Best regards,
Geoffrey