1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
<ribbon:RibbonWindow x:Class="BookStoreWPF3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
xmlns:view="clr-namespace:BookStoreWPF3.View"
xmlns:viewmodel="clr-namespace:BookStoreWPF3.ViewModel"
Title="MainWindow"
x:Name="RibbonWindow"
Width="640" Height="480">
<Grid x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ribbon:Ribbon x:Name="Ribbon">
<ribbon:Ribbon.ApplicationMenu>
<ribbon:RibbonApplicationMenu SmallImageSource="Images\SmallIcon.png">
<ribbon:RibbonApplicationMenuItem Header="Close"
x:Name="CloseMenuItem"
ImageSource="Images\LargeIcon.png" Click="CloseMenuItem_Click" />
</ribbon:RibbonApplicationMenu>
</ribbon:Ribbon.ApplicationMenu>
<ribbon:RibbonTab x:Name="BookTab"
Header="Book">
<ribbon:RibbonGroup x:Name="BookGroup1"
Header="Actions">
<ribbon:RibbonButton x:Name="DeleteButton"
LargeImageSource="Images\LargeIcon.png"
Label="Delete"
Command="{Binding DeleteCommand}" />
</ribbon:RibbonGroup>
</ribbon:RibbonTab>
</ribbon:Ribbon>
<view:BookView Grid.Row="1" HorizontalAlignment="Left" Margin="12,6,0,0" x:Name="bookView" VerticalAlignment="Top" />
</Grid>
</ribbon:RibbonWindow> |
Partager