Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • have you an idea to have the RibbonGroup called "Navigation" to occupy all the width of the ribbon? Actually it is adjusted th the length of the text in the TextBlock which is binded (which is the "normal" behavior of a ribbon!). I understand that my hope is in contrary of the design!

                                    Thanks,

                                    Bruno

                                PocFfsa.zip
                                0

                                Hi Bruno,

                                RibbonGroup is designed to be auto-sized based on its content, and we have not found any way to stretch it to occupy all the available area. The only solution I can suggest is to specify the Width of the elements you put into the item's ContentTemplate. For instance, change the code as follows:

                                	
                                [XAML]
                                <dxb:BarStaticItem x:Name="BsiNav" AutoSizeMode="Fill" Content="{Binding}"> <dxb:BarStaticItem.ContentTemplate> <DataTemplate> <Border Width="500"> <TextBlock Text="{Binding Path=NavBase}" /> </Border> </DataTemplate> </dxb:BarStaticItem.ContentTemplate> </dxb:BarStaticItem>

                                Please let us know if this solution serves your needs.

                                Thanks,
                                Vito

                                0

                                Ok, it's a good start...But, is it possible to handle the SizeChanged event handler of the containing page of the ribbon to update the width of the border?

                                Thanks!

                                Bruno

                                0

                                Hi Bruno,

                                Yes, it is possible. For instance, you can handle the LayoutRoot's SizeChanged event for this purpose. I am attaching a modified project that uses this approach. Please try it on your side and let us know how it goes.

                                Thanks,
                                Vito

                                DXSample.zip
                                0

                                It's the little piece of code I need... how to access the border by code!!

                                Your proposal is all I need and works as I expect.

                                Great thanks for your help,

                                Bruno

                                0

                                As a "last" complmeent :

                                The SizeChanged event of the top level grid is porcessed before Border created, and I need to adjust the width of the Border the first time (in its Loaded event for instance).

                                I changed the SizeChanged from the top level Grid to be in the RibbonControl itself : it is more closely tied to the Border and the event is procesed after the Loaded event of the border and doesn't need to adjust the size at the first time.

                                For me, this issue is definitivly closed :)

                                Thanks!

                                Bruno

                                0

                                You are welcome!

                                Thanks,
                                Vito

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners