Skip to content

Instantly share code, notes, and snippets.

@hirosof
Created August 29, 2013 11:07
Show Gist options
  • Select an option

  • Save hirosof/6376757 to your computer and use it in GitHub Desktop.

Select an option

Save hirosof/6376757 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://schemas.microsoft.com/windows/2009/Ribbon">
<!-- 項目の定義 -->
<Application.Commands>
<!-- アプリケーションメニュー項目 -->
<Command Name="AppMenu">
<Command.TooltipDescription>
<String>ファイルメニュー</String>
</Command.TooltipDescription>
</Command>
<!-- アプリケーションメニューのサブ項目 -->
<Command Name="AppMenu_EXIT" Symbol="ID_RIBBON_QUIT">
<Command.LabelTitle>
<String>プログラム終了</String>
</Command.LabelTitle>
<Command.LargeImages>
<Image>img/ClosePreviewHH.bmp</Image>
</Command.LargeImages>
<Command.TooltipTitle>
<String>プログラム終了(Alt+F4)</String>
</Command.TooltipTitle>
<Command.TooltipDescription>
<String>プログラムを終了します。</String>
</Command.TooltipDescription>
</Command>
<!-- 最近使った項目のタイトル文字列 -->
<Command Name="AppMenu_MRUList" Symbol="ID_RIBBON_MRU">
<Command.LabelTitle>
<String>最近使った項目</String>
</Command.LabelTitle>
</Command>
<!-- HOMEタブ名 -->
<Command Name="Tab_Home">
<Command.LabelTitle>
<String>ホーム</String>
</Command.LabelTitle>
</Command>
<!-- ヘルプ -->
<Command Name="AppMenu_Help">
<Command.LabelTitle>
<String>ヘルプ</String>
</Command.LabelTitle>
</Command>
<!-- クイックツールバー(プログラムのための設定 -->
<Command Name="QuickToolbar" Symbol="ID_RIBBON_QUICKTOOLBAR"/>
</Application.Commands>
<!-- リボン項目の実態の定義-->
<Application.Views>
<Ribbon>
<!-- アプリケーションメニュー -->
<Ribbon.ApplicationMenu>
<ApplicationMenu CommandName="AppMenu">
<!-- 最近使った項目 -->
<ApplicationMenu.RecentItems>
<RecentItems CommandName="AppMenu_MRUList" MaxCount="10" EnablePinning="false"/>
</ApplicationMenu.RecentItems>
<!-- ファイルメニューの項目-->
<MenuGroup>
<Button CommandName="AppMenu_EXIT" />
</MenuGroup>
</ApplicationMenu>
</Ribbon.ApplicationMenu>
<!-- クイックアクセスツールバー -->
<Ribbon.QuickAccessToolbar>
<QuickAccessToolbar CommandName="QuickToolbar">
<!-- 項目は省略-->
</QuickAccessToolbar>
</Ribbon.QuickAccessToolbar>
<!-- ヘルプボタン -->
<Ribbon.HelpButton>
<HelpButton CommandName="AppMenu_Help" />
</Ribbon.HelpButton>
<!-- タブ項目 -->
<Ribbon.Tabs>
<Tab CommandName="Tab_Home">
<!-- 項目は省略-->
</Tab>
</Ribbon.Tabs>
</Ribbon>
</Application.Views>
</Application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment