Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Docking with XamWindow
posted
Hello, If I use the following code docking works as expected (code simplified for clarity) <Window> <DockPanel> <Button DockPanel.Dock="Top">Dock Top</Button> <Button DockPanel.Dock="Left">Dock Left</Button> <Button DockPanel.Dock="Right">Dock Right</Button> <Button DockPanel.Dock="Bottom">Dock Bottom</Button> <Button>Last child</Button> </DockPanel> </Window> When I do this the bottom button never shows up: <igRibbon:XamRibbonWindow> <DockPanel> <Button DockPanel.Dock="Top">Dock Top</Button> <Button DockPanel.Dock="Left">Dock Left</Button> <Button DockPanel.Dock="Right">Dock Right</Button> <Button DockPanel.Dock="Bottom">Dock Bottom</Button> <Button>Last child</Button> </DockPanel> </igRibbon:XamRibbonWindow> Any Ideas?
Parents
No Data
Reply
  • 54937
    Offline posted

    The elements shouldn't be clipped but the XamRibbonWindow needs to have a RibbonWindowContentHost as its child.
    e.g.

    <igRibbon:XamRibbonWindow x:Class="xamTest.RibbonWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:igRibbon="http://infragistics.com/Ribbon"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="RibbonWindow" Height="300" Width="300">
        <igRibbon:RibbonWindowContentHost>
            <DockPanel>
                <Button DockPanel.Dock="Top">Dock Top</Button>
                <Button DockPanel.Dock="Left">Dock Left</Button>
                <Button DockPanel.Dock="Right">Dock Right</Button>
                <Button DockPanel.Dock="Bottom">Dock Bottom</Button>
                <Button>Last child</Button>
            </DockPanel>
        </igRibbon:RibbonWindowContentHost>
    </igRibbon:XamRibbonWindow>

     

Children
No Data