Windows Ribbon for WinForms,第17部分–上下文选项卡

  • z8_270080
    了解作者
  • 195.6KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-20 00:39
    上传日期
在本文中,我将介绍如何使用功能区上下文选项卡。
62526.zip
  • windowsribbon17_src.zip
    90.8KB
  • Windows-Ribbon-for-WinForms-Part-17-Contextual-Tab.pdf
    84KB
  • windowsribbon17_demo.zip
    43.4KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/625f564e2cc14f66364820be/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625f564e2cc14f66364820be/bg1.jpg"><div class="c x1 y1 w2 h2"><div class="t m0 x2 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">Win<span class="_ _0"></span>dow<span class="_ _0"></span>s R<span class="_ _0"></span>ibbo<span class="_ _0"></span>n fo<span class="_ _0"></span>r W<span class="_ _0"></span>inFo<span class="_ _0"></span>rms<span class="_ _0"></span><span class="ff2">&#65292;&#31532;<span class="_ _1"></span>&#65292;&#31532;<span class="_ _2"></span><span class="ff1">17</span>&#37096;<span class="_ _0"></span>&#20998;<span class="_ _1"></span>&#37096;&#20998;<span class="_ _2"></span><span class="ff1">&#8211;</span>&#19978;&#19979;<span class="_ _0"></span>&#25991;&#36873;<span class="_ _3"></span>&#19978;&#19979;<span class="_ _0"></span>&#25991;&#36873;</span></div><div class="t m0 x2 h3 y3 ff2 fs0 fc0 sc0 ls0 ws0">&#39033;&#21345;<span class="_ _1"></span>&#39033;&#21345;<span class="_ _2"></span><span class="ff1">-</span>&#28304;&#30721;<span class="_ _1"></span>&#28304;<span class="_ _0"></span>&#30721;</div><div class="t m0 x1 h4 y4 ff2 fs1 fc1 sc0 ls0 ws0">&#19979;&#36733;&#28304;&#25991;<span class="_ _0"></span>&#20214;<span class="ff3">90.7 K<span class="_ _0"></span>B</span></div><div class="t m0 x1 h4 y5 ff2 fs1 fc1 sc0 ls0 ws0">&#19979;&#36733;&#28436;&#31034;<span class="_ _0"></span>&#39033;&#30446;<span class="ff3">-43.<span class="_ _0"></span>4 KB</span></div><div class="t m0 x2 h4 y6 ff2 fs1 fc0 sc0 ls0 ws0">&#26412;&#31995;&#21015;<span class="ff3">C<span class="_ _0"></span>odeProje<span class="_ _0"></span>ct</span>&#25991;&#31456;&#22522;&#20110;<span class="_ _0"></span>&#25105;&#39318;&#27425;&#22312;<span class="fc1">&#21338;&#23458;</span>&#19978;<span class="_ _0"></span>&#21457;&#34920;&#30340;&#19968;<span class="_ _0"></span>&#31995;&#21015;&#24086;&#23376;&#12290;</div><div class="t m0 x2 h4 y7 ff3 fs1 fc1 sc0 ls0 ws0">Window<span class="_ _0"></span>s Ribbon <span class="_ _0"></span>for WinFor<span class="_ _0"></span>ms<span class="_ _0"></span><span class="ff2 fc0">&#24211;&#29616;&#22312;&#25903;<span class="_ _0"></span>&#25345;&#19978;&#19979;&#25991;&#36873;<span class="_ _0"></span>&#39033;&#21345;&#12290;<span class="ff3"> </span>&#36825;&#31687;<span class="_ _0"></span>&#25991;&#31456;&#30340;&#32467;<span class="_ _0"></span>&#26524;&#26159;&#22312;&#39033;<span class="_ _0"></span>&#30446;&#31449;&#28857;&#19978;&#25214;<span class="_ _0"></span>&#21040;&#30340;&#21478;&#19968;<span class="_ _0"></span>&#20010;&#31034;&#20363;<span class="ff3">&#8220; 1<span class="_ _0"></span>4-</span></span></div><div class="t m0 x2 h4 y8 ff3 fs1 fc0 sc0 ls0 ws0">Contex<span class="_ _0"></span>tualTabs&#8221;<span class="ff2">&#12290;</span></div><div class="t m0 x2 h5 y9 ff2 fs2 fc0 sc0 ls0 ws0">&#20160;&#20040;&#26159;<span class="_ _0"></span>&#19978;&#19979;&#25991;<span class="_ _0"></span>&#26631;&#31614;&#65311;<span class="_ _4"></span>&#20160;&#20040;&#26159;<span class="_ _0"></span>&#19978;&#19979;&#25991;<span class="_ _0"></span>&#26631;&#31614;&#65311;</div><div class="t m0 x2 h4 ya ff2 fs1 fc0 sc0 ls0 ws0">&#19978;&#19979;&#25991;&#36873;<span class="_ _0"></span>&#39033;&#21345;&#26159;&#21551;<span class="_ _0"></span>&#29992;&#23427;&#20204;&#30340;&#19978;<span class="_ _0"></span>&#19979;&#25991;&#26102;&#20986;<span class="_ _0"></span>&#29616;&#30340;&#20854;&#20182;<span class="_ _0"></span>&#36873;&#39033;&#21345;&#12290;<span class="ff3"> </span>&#20363;<span class="_ _0"></span>&#22914;&#65292;&#22312;<span class="ff3">Wo<span class="_ _0"></span>rd</span>&#20013;&#65292;&#24403;&#24744;<span class="_ _0"></span>&#22312;&#25991;&#26723;&#20013;<span class="_ _0"></span>&#36873;&#25321;&#19968;&#20010;<span class="_ _0"></span>&#34920;&#26102;&#65292;&#24744;&#23558;<span class="_ _0"></span>&#33719;&#24471;&#20004;&#20010;<span class="_ _0"></span>&#38468;&#21152;</div><div class="t m0 x2 h4 yb ff2 fs1 fc0 sc0 ls0 ws0">&#36873;&#39033;&#21345;&#65288;<span class="_ _0"></span><span class="ff3">&#8220;</span>&#35774;&#35745;<span class="ff3">&#8221;</span>&#21644;<span class="_ _0"></span><span class="ff3">&#8220;</span>&#24067;&#23616;<span class="ff3">&#8221;</span>&#65289;&#65292;<span class="_ _0"></span>&#23427;&#20204;&#30340;&#21629;<span class="_ _0"></span>&#20196;&#20165;&#19982;&#34920;&#30456;<span class="_ _0"></span>&#20851;&#12290;</div><div class="t m0 x2 h4 yc ff2 fs1 fc0 sc0 ls0 ws0">&#22522;&#26412;&#24037;&#20316;<span class="_ _0"></span>&#21333;&#20803;&#26159;<span class="ff3 fs3">Ta<span class="_ _0"></span>bGroup<span class="fs1"> </span></span>&#65292;&#23427;<span class="_ _0"></span>&#26159;&#19968;&#32452;&#20855;<span class="_ _0"></span>&#26377;&#30456;&#21516;&#19978;&#19979;<span class="_ _0"></span>&#25991;&#30340;&#19978;&#19979;<span class="_ _0"></span>&#25991;&#36873;&#39033;&#21345;<span class="_ _0"></span>&#12290;<span class="ff3"> <span class="fs3">TabGroup</span></span>&#20855;<span class="_ _0"></span>&#26377;&#19968;&#20010;&#21517;<span class="_ _0"></span>&#20026;<span class="ff3 fs3">ContextAv<span class="_ _0"></span>ailable<span class="_ _0"></span></span>&#30340;&#23646;&#24615;&#65288;<span class="_ _0"></span>&#23646;&#24615;</div><div class="t m0 x2 h4 yd ff2 fs1 fc0 sc0 ls0 ws0">&#26631;&#35782;&#31526;&#65306;<span class="_ _0"></span><span class="ff3"> <span class="fs3">UI_PKEY_Co<span class="_ _0"></span>ntextAvailab<span class="_ _0"></span>le<span class="_ _5"></span><span class="fs1"> <span class="ff2">&#65289;&#65292;&#35813;<span class="_ _0"></span>&#23646;&#24615;&#21487;&#20197;&#20855;<span class="_ _0"></span>&#26377;&#20197;&#19979;&#20540;<span class="_ _0"></span>&#65306;</span></span></span></span></div><div class="t m0 x1 h4 ye ff3 fs3 fc0 sc0 ls0 ws0">Active<span class="fs1"> -<span class="ff2">&#19978;&#19979;&#25991;&#24403;<span class="_ _0"></span>&#21069;&#21487;&#29992;&#65292;&#24182;<span class="_ _0"></span>&#19988;&#36873;&#39033;&#21345;<span class="_ _0"></span>&#32452;&#24212;&#22788;&#20110;<span class="_ _0"></span>&#27963;&#21160;&#29366;&#24577;&#65288;<span class="_ _0"></span></span>=&#8220; selec<span class="_ _0"></span>ted&#8221;<span class="ff2">&#65289;&#12290;</span></span></div><div class="t m0 x1 h4 yf ff3 fs3 fc0 sc0 ls0 ws0">Available<span class="_ _0"></span><span class="fs1"> -<span class="ff2">&#19978;<span class="_ _0"></span>&#19979;&#25991;&#24403;&#21069;<span class="_ _0"></span>&#21487;&#29992;&#65288;&#36873;&#39033;<span class="_ _0"></span>&#21345;&#19981;&#19968;&#23450;<span class="_ _0"></span>&#22788;&#20110;&#27963;&#21160;&#29366;<span class="_ _0"></span>&#24577;&#65289;&#12290;</span></span></div><div class="t m0 x1 h4 y10 ff3 fs3 fc0 sc0 ls0 ws0">NotAvaila<span class="_ _0"></span>ble<span class="ff2 fs1">&#19978;&#19979;&#25991;&#24403;&#21069;&#19981;<span class="_ _0"></span>&#21487;&#29992;&#12290;</span></div><div class="t m0 x2 h4 y11 ff2 fs1 fc0 sc0 ls0 ws0">&#26377;&#20851;&#27492;&#20027;<span class="_ _0"></span>&#39064;&#30340;&#26356;&#22810;<span class="_ _0"></span>&#35814;&#32454;&#20449;&#24687;&#65292;<span class="_ _0"></span>&#35831;&#21442;&#35265;<span class="ff3">M<span class="_ _0"></span>SDN</span>&#19978;&#30340;<span class="ff3">&#8220;</span><span class="fc1">&#26174;&#31034;&#19978;&#19979;<span class="_ _0"></span>&#25991;&#36873;&#39033;&#21345;</span><span class="ff3">&#8221;<span class="_ _0"></span></span>&#12290;</div><div class="t m0 x2 h5 y12 ff2 fs2 fc0 sc0 ls0 ws0">&#20351;&#29992;<span class="_ _6"></span>&#20351;&#29992;<span class="_ _2"></span><span class="ff1">Context<span class="_ _0"></span>ualTa<span class="_ _0"></span>b-</span>&#21151;&#33021;<span class="_ _0"></span>&#21306;&#26631;&#35760;<span class="_ _7"></span>&#21151;&#33021;&#21306;<span class="_ _0"></span>&#26631;&#35760;</div><div class="t m0 x2 h4 y13 ff2 fs1 fc0 sc0 ls0 ws0">&#20197;&#19979;&#26159;&#29992;<span class="_ _0"></span>&#20110;&#23450;&#20041;&#19978;<span class="_ _0"></span>&#19979;&#25991;&#36873;&#39033;&#21345;<span class="_ _0"></span>&#30340;</div><div class="t m1 x3 h6 y13 ff2 fs4 fc0 sc0 ls0 ws0">&#35270;&#22270;</div><div class="t m0 x4 h4 y13 ff2 fs1 fc0 sc0 ls0 ws0">&#37096;&#20998;&#12290;<span class="ff3"> </span></div><div class="t m1 x5 h6 y13 ff2 fs4 fc0 sc0 ls0 ws0">&#21629;&#20196;</div><div class="t m0 x6 h4 y13 ff2 fs1 fc0 sc0 ls0 ws0">&#37096;&#20998;&#24456;&#31616;<span class="_ _0"></span>&#21333;&#12290;</div><div class="t m0 x2 h4 y14 ff3 fs1 fc0 sc0 ls0 ws0">XML<span class="ff2">&#26684;&#24335;</span></div><div class="t m0 x2 h7 y15 ff3 fs3 fc0 sc0 ls0 ws0"> &lt; Applicatio<span class="_ _0"></span>n.Views<span class="_ _0"></span> &gt;</div><div class="t m0 x2 h7 y16 ff3 fs3 fc0 sc0 ls0 ws0"> &lt; Ribbon &gt;</div><div class="t m0 x2 h7 y17 ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt; Ribbo<span class="_ _0"></span>n.Contextua<span class="_ _0"></span>lTabs &gt;</div><div class="t m0 x2 h7 y18 ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt; TabGroup<span class="_ _0"></span> CommandNam<span class="_ _0"></span>e ='<span class="_ _5"></span> cmdTabGro<span class="_ _0"></span>upTableTool<span class="_ _0"></span>s' &gt;</div><div class="t m0 x2 h7 y19 ff3 fs3 fc0 sc0 ls0 ws0"> &lt;<span class="_ _0"></span> Tab CommandName =' cmdTabDesig<span class="_ _0"></span>n' &gt;</div><div class="t m0 x2 h7 y1a ff3 fs3 fc0 sc0 ls0 ws0"> &lt; Group<span class="_ _0"></span> CommandN<span class="_ _0"></span>ame =' <span class="_ _5"></span>cmdGro<span class="_ _0"></span>upDesign' SizeDefinitio<span class="_ _0"></span>n =' ThreeButtons<span class="_ _0"></span>'<span class="_ _5"></span> &gt;</div><div class="t m0 x2 h7 y1b ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt;<span class="_ _0"></span> Button<span class="_ _0"></span> Command<span class="_ _0"></span>Name =' <span class="_ _5"></span>cmdBut<span class="_ _0"></span>tonDesign1' / &gt;</div><div class="t m0 x2 h7 y1c ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt;<span class="_ _0"></span> Button<span class="_ _0"></span> Command<span class="_ _0"></span>Name =' <span class="_ _5"></span>cmdBut<span class="_ _0"></span>tonDesign2' / &gt;</div><div class="t m0 x2 h7 y1d ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt;<span class="_ _0"></span> Button<span class="_ _0"></span> Command<span class="_ _0"></span>Name =' <span class="_ _5"></span>cmdBut<span class="_ _0"></span>tonDesign3' / &gt;</div><div class="t m0 x2 h7 y1e ff3 fs3 fc0 sc0 ls0 ws0"> &lt; /Group &gt;</div><div class="t m0 x2 h7 y1f ff3 fs3 fc0 sc0 ls0 ws0"> &lt;<span class="_ _0"></span> /Tab<span class="_ _0"></span> &gt;</div><div class="t m0 x2 h7 y20 ff3 fs3 fc0 sc0 ls0 ws0"> &lt;<span class="_ _0"></span> Tab CommandName =' cmdTabLayo<span class="_ _0"></span>ut' &gt;</div><div class="t m0 x2 h7 y21 ff3 fs3 fc0 sc0 ls0 ws0"> &lt; Group<span class="_ _0"></span> CommandN<span class="_ _0"></span>ame =' <span class="_ _5"></span>cmdGro<span class="_ _0"></span>upLayout'<span class="_ _0"></span> SizeDefin<span class="_ _0"></span>ition<span class="_ _0"></span> ='<span class="_ _5"></span> TwoButton<span class="_ _0"></span>s'<span class="_ _5"></span> &gt;</div><div class="t m0 x2 h7 y22 ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt;<span class="_ _0"></span> Button<span class="_ _0"></span> Command<span class="_ _0"></span>Name =' <span class="_ _5"></span>cmdBut<span class="_ _0"></span>tonLayout1'<span class="_ _0"></span> / &gt;</div><div class="t m0 x2 h7 y23 ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt;<span class="_ _0"></span> Button<span class="_ _0"></span> Command<span class="_ _0"></span>Name =' <span class="_ _5"></span>cmdBut<span class="_ _0"></span>tonLayout2'<span class="_ _0"></span> / &gt;</div><div class="t m0 x2 h7 y24 ff3 fs3 fc0 sc0 ls0 ws0"> &lt; /Group &gt;</div><div class="t m0 x2 h7 y25 ff3 fs3 fc0 sc0 ls0 ws0"> &lt;<span class="_ _0"></span> /Tab<span class="_ _0"></span> &gt;</div><div class="t m0 x2 h7 y26 ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt; /TabGroup &gt;</div><div class="t m0 x2 h7 y27 ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt; /Ribbo<span class="_ _0"></span>n.Contextua<span class="_ _0"></span>lTabs<span class="_ _0"></span> &gt;</div><div class="t m0 x2 h7 y28 ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt; Ribbo<span class="_ _0"></span>n.Tabs &gt;</div><div class="t m0 x2 h7 y29 ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt; Tab CommandN<span class="_ _0"></span>ame ='<span class="_ _5"></span> cmdTabM<span class="_ _0"></span>ain' &gt;</div><div class="t m0 x2 h7 y2a ff3 fs3 fc0 sc0 ls0 ws0"> &lt;<span class="_ _0"></span> Group Comm<span class="_ _0"></span>andName =' cmdGroupMain' SizeDefinition<span class="_ _0"></span> =' TwoButtons' &gt;</div><div class="t m0 x2 h7 y2b ff3 fs3 fc0 sc0 ls0 ws0"> &lt; Button<span class="_ _0"></span> Com<span class="_ _0"></span>mandName =' cmdButtonS<span class="_ _0"></span>elect' /<span class="_ _5"></span> &gt;</div><div class="t m0 x2 h7 y2c ff3 fs3 fc0 sc0 ls0 ws0"> &lt; Button<span class="_ _0"></span> Com<span class="_ _0"></span>mandName =' cmdButtonU<span class="_ _0"></span>nselect' /<span class="_ _5"></span> &gt;</div><div class="t m0 x2 h7 y2d ff3 fs3 fc0 sc0 ls0 ws0"> &lt;<span class="_ _0"></span> /Group &gt;</div><div class="t m0 x2 h7 y2e ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt; /Tab<span class="_ _0"></span> &gt;</div><div class="t m0 x2 h7 y2f ff3 fs3 fc0 sc0 ls0 ws0"> <span class="_ _0"></span>&lt; /Ribbo<span class="_ _0"></span>n.Tabs<span class="_ _0"></span> &gt;</div></div><a class="l" rel='nofollow' onclick='return false;'><div class="d m2"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m2"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m2"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m2"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m2"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m2"></div></a></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐