Is there an Infragistics control that is the equivalent of the UltraToolbarsManager? We're in the process of "porting" (re-write) some UI from WinForms to Silverlight and we make use of toolbars throughout the WinForms UI. If there is no equivalent to UltraToolbarsManager, what would you suggest for attaining comparable look-and-feel to toolbars?
Hi Petar,
I wasn't able to achieve the desired functionality (some menu bar items left-justified and others right-justified), so I am merely keeping everything left-justified and adding spacers when desired.
Thanks,
Tom
Hi Tom.
I am just checking if my solution worked for you and if you require any furhter asssistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hi Tom,
There is no built-in way of doing this. What you can do is retemplate the XamWebMenu by using the DefaultStyles. All you have to do is set the original template's ItemPresenter to have a HorizontalAlignment to Right.. Better yet you can bind it like so:
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="igMenu:XamWebMenu">
<Grid MinWidth="{TemplateBinding MinWidth}" MinHeight="{TemplateBinding MinHeight}" MaxWidth="{TemplateBinding MaxWidth}" MaxHeight="{TemplateBinding MaxHeight}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}">
<Border Grid.Column="0" Background="{TemplateBinding Background}"/>
<ItemsPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
</Grid>
</ControlTemplate>
And use the HorizontalContentAlignment to whatever you want in your application like so:
<igMenu:XamWebMenu
x:Name="MainMenu" HorizontalContentAlignment="Right"
MenuOrientation="Horizontal"
VerticalAlignment="Top"
>
Hope this is what you needed.
I'm working with the XamWebMenu control, per your suggestion, and I believe I will be able to achieve the desired functionality. Right now, I am trying to determine how to right-justify one or more of the top-level menu items. Any suggestions will be helpful.
Hello ,
I am just checking if my suggestion helped and if you have resolved your issue.
Let me know if you still require assitance.
Regards Petar.