WPF迷你计算器源码源码描述:用WPF做的一个简易小型计算器,感兴趣的用户可以下载完善它。MiniCalciIBuildupasmallcalculatorapplicationusingWindowsForm.Bygoingthroughthis,begginerscanknowhowsimpleistobuildaapplication.Moreoveritsveryeasyandconvenient.Throughthissample,wecanunderstanghowthebuttonworks.Howweprogramabuttonandknowaboutitsproperties.Therearesomelimitations.Userwillnotgetcorrectanswerforhighernumbers.Youwillalsogettoknowsomebasicfunctionimplementationlikefordatatypesconversion.
技术上在WinFrom平台上多使用Button控件,利用Button完成单个的组件,颜色区分是否完成组装并加以判断,时钟控件为开始启动并对相关的操作完成控制!
Canvas控件库源码功能介绍:该源码提供了Html中的Canvas控件的示例,CanvasControlLibrary中封装了很多控件使使用Canvas变得很容易。包含:LabelControlButtonControlGrid/ListBoxControlComboBoxControlCheckBoxControlRadioButtonGroupControlSliderControlAnimatedPieChartControl等源码中都有简单demo。注意:开发环境为VisualStudio2012
WP7Coding4Fun控件工具v1.60源码源码描述:Coding4Fun搜集了很多winphone中有趣、漂亮的工具与控件,源码有演示demo工具与控件包括:AboutPrompt,ChatBubble,ChatBubbleTextBox,ColorHexagonPickerColorPicker,ColorSlider,InputPrompt,MessagePromptMemoryCounter,OpacityToggleButton,PasswordPromptProgressOverlay,RoundButton,RoundToggleButton,SuperSliderTimeSpanPicker,ToastPromptCoding4Funisourwebsitededicatedtoshowingofffunandcoolhardwareandsoftwareprojects.Weknowtherearelotsofdeveloperswhocodeforfun,notjustfortheirjobs.Withthisinmind,wewanttoshowoffthec
WPFMessageBox源码WPFMessageBox是一个实现了WPF中完全可定制的MessageBox,完全相同的接口标准的MessageBox类。可以通过使用样式和控件模板自定义消息框。特点:-TheclassWPFMessageBoxhastheexactsameinterfaceasthecurrentWPFMessageBoxclass.-Implementedasacustomcontrol,thusfullycustomizableviastandardWPFcontroltemplates.-HasadefaultcontroltemplatewhichlookslikethestandardMessageBox.-Supportsallthecommontypesofmessageboxes:Error,Warning,QuestionandInformation.-Hasthesame“Beep”soundsaswhenopeningastandardMessageBox.-SupportsthesamebehaviorwhenpressingtheEscape
支持的控件:-Button-ToggleButton-RadioButton-CheckBox-TextBox-ComboBox-ListBox-ProgressBar-Slider-TreeView-Expander
如果没有---则移除周围8个button,并自动判断周围的8格的周围8格是否有地雷,一直递归下去!
RadioButton都可以看做是改变了外观的ToggleButton而RepeatButton是一个可以响应鼠标连续点击的特殊Button这里具体介绍下ToggleButton,它是三态按钮(就是有Indeterminate
控件一览:Border,Button,Calendar,Canvas,CheckBox,ComboBox2、Silverlight(4)-2.0控件之DataGrid,DatePicker,Grid,GridSplitter
从例子入手吧,一个button,一个label,点击button更新lable到当前时间,实现无刷新操作,同时右上角还显示loading..。