Ruban Office en WPF


Microsoft vient de sortir une nouvelle version stable de son composant Ribbon for WPF (pour Framework 3.5SP1 et supérieur). Contrairement aux composants décrits dans un billet précédent, ce ruban fonctionne donc sous Windows XP aussi !

Voici deux articles intéressants si vous développez avec ce composant : le premier est la documentation MSDN et le second concerne les Design Concepts.

Exemple:

<r:RibbonWindow
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:r="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon"
        x:Class="Trasys.Sogesmaint.Prototype.Windows.MainWindow"
        Title="My First Ribbon Form" WindowStartupLocation="CenterScreen"
        Height="332" Width="639">
    <Grid>
        <DockPanel>
            <r:Ribbon DockPanel.Dock="Top" x:Name="ribbonMain" ShowQuickAccessToolBarOnTop="False">
                <r:Ribbon.ApplicationMenu>
                    <r:RibbonApplicationMenu Visibility="Collapsed" />
                </r:Ribbon.ApplicationMenu>
                <r:RibbonTab Header="Home">
                    <r:RibbonGroup Header="Editing">
                        <r:RibbonButton LargeImageSource="Find.png" Label="Search" ToolTip="..." Margin="0,0,30,0" />
                        <r:RibbonButton LargeImageSource="Add.png" Label="Add new page" ToolTip="..."  Margin="10, 0" />
                        <r:RibbonButton SmallImageSource="Open.png" Label="Modify" ToolTip="..." />
                        <r:RibbonButton SmallImageSource="DeleteBlack.png" Label="Delete" ToolTip="..." />
                    </r:RibbonGroup>
                </r:RibbonTab>
            </r:Ribbon>
        </DockPanel>
    </Grid>
</r:RibbonWindow>

Advertisements
Tagged with: ,
Posted in General
One comment on “Ruban Office en WPF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow me
   RSS Feed    Twitter    Linked In

Write you email address to subscribe at this blog and to receive new posts by mail.

Join 611 other followers

Who I am?






%d bloggers like this: