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
330
Design View Doesn't Match Execution
posted

When I run the attached Xaml, the application does not match the design view. The design view shows the bitmap. The app shows nothing. Why is that?

Parents
No Data
Reply
  • 2151
    Offline posted

    Hi WayneMiller,

    I am not sure where you want to put this image, but if you want the image bellow the ribbon try this code (for me it is showing the image under the ribbon, when running the application):

    <igRibbon:XamRibbonWindow x:Class="WpfAppTest.MainWindow"
        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="MainWindow" Height="391" Width="526"
        xmlns:my="clr-namespace:Infragistics.Windows.Ribbon;assembly=InfragisticsWPF4.Ribbon.v10.3"
        >
    <igRibbon:RibbonWindowContentHost>
         <igRibbon:RibbonWindowContentHost.Ribbon>
             <my:XamRibbon Name="ribbon" DockPanel.Dock="Top" Theme="Scenic">
                 <my:XamRibbon.ApplicationMenu>
                     <my:ApplicationMenu Caption="Some App" />
                 </my:XamRibbon.ApplicationMenu>
                 <my:XamRibbon.QuickAccessToolbar>
                     <my:QuickAccessToolbar />
                 </my:XamRibbon.QuickAccessToolbar>
                 <my:RibbonTabItem Header="Home">
                     <my:RibbonGroup Caption="Clipboard" />
                 </my:RibbonTabItem>
                    <my:RibbonTabItem Header="Insert" />
                </my:XamRibbon>
            </igRibbon:RibbonWindowContentHost.Ribbon>
            <igRibbon:RibbonWindowContentHost.Content>
                <Image Name="viewer3D" Stretch="None" Source="/Images/ZoomedIn3D.png" />
            </igRibbon:RibbonWindowContentHost.Content>
        </igRibbon:RibbonWindowContentHost>
    </igRibbon:XamRibbonWindow>
Children
No Data