在Visual Studio中建立一個應用程式,應首先建立一個項和一個解決方案。在此示例中,您将建立Windows presentation foundation應用程式。
在菜單欄上,依次選擇 *** 檔案 ***,建立,項目。
選擇Visual Basic或visual C# WPF應用程式模闆,然後将項目命名為WpfApplication1。
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_1350640678OSzR.png"></a>
WpfApplication1項目建立後會自動添加到*** 解決方案資料總管 ***中。MainWindow.xaml檔案和MainWindow.xaml.vb或MainWindow.xaml.cs在WPF設計器中打開,具體取決于您選擇的項目類型是Visual Basic還是visual C#。以下各項顯示在 *** 解決方案資料總管 ***:
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_1350640678szcZ.png"></a>
在建立項目後,可以開始自定義設定。使用"屬性"視窗,可以顯示和更改項目項、控件和其他項的選項在應用程式。通過使用項目設計器或屬性頁,可以顯示和更改項目和解決方案的選項。
在 *** 工具箱 ***,搜尋RadioButton控件。
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_1350640679NEWr.png"></a>
添加C1Scheduler控件到視窗中。您的視窗應類似于以下示例:
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_1350640679oIuJ.png"></a>
在右側屬性視窗中設定C1Scheduler的Layout相關屬性,讓它可以根據視窗一同縮放。
點選Start按鈕運作應用程式。
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_1350640680z4YR.png"></a>
運作後可以調整視窗大小,效果如下:
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_13506406826t0m.png"></a>
在任意位置輕按兩下,将彈出約會定制編輯器。
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_13506406829Z2X.png"></a>
完成後,單擊Save and Close結束約會定制。
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_135064068377yZ.png"></a>
當約會時間臨近,C1Scheduler會自動彈出警告,提醒您不要忘記約會。
<a href="http://powertoolsteam.blog.51cto.com/attachment/201210/19/2369428_1350640683Pq0H.png"></a>
好了,現在一個簡單的VS2012中Windows應用程式就完成了。
本文轉自 powertoolsteam 51CTO部落格,原文連結:http://blog.51cto.com/powertoolsteam/1031776,如需轉載請自行聯系原作者