博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Silverlight 简单布局
阅读量:7070 次
发布时间:2019-06-28

本文共 1340 字,大约阅读时间需要 4 分钟。

效果:

MainPage.xaml:

MainPage.xaml.cs 中的Button事件:

using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Shapes;namespace SilverlightApplication2{    public partial class MainPage : UserControl    {        public MainPage()        {            InitializeComponent();        }        private void OKButton_Click(object sender, RoutedEventArgs e)        {            string dateString;            if (cal.SelectedDate == null)            {                dateString = "
"; } else { dateString = cal.SelectedDate.ToString(); } Mess.Text = "Hi " + name1.Text.ToString() + "\n" + "Selected Date:" + dateString; } }}

 

 

转载于:https://www.cnblogs.com/siri/archive/2012/12/16/2820559.html

你可能感兴趣的文章
Python进阶07 函数对象
查看>>
使用ASP.Net WebAPI构建REST服务(五)——客户端
查看>>
C语言双向链表
查看>>
Memcached在Windows下的配置和使用(转)
查看>>
中国国际服装服饰博览会 _百度百科
查看>>
设置tableView背景颜色
查看>>
c# 中的UserControl是什么 用户控件和自定义控件有什么区别
查看>>
漂亮的ActionBar效果
查看>>
32 脚本编程风格
查看>>
让低版本的 Android 项目显示出 Material 风格的点击效果
查看>>
来一篇新鲜的招聘笔试题(2014秋招版)
查看>>
HashMap工作原理(转载)
查看>>
hive0.13.1配置hwi
查看>>
CSS3 Filter的十种特效
查看>>
实用的eclipse adt 快捷键
查看>>
bootstrap 树
查看>>
Senparc.Weixin.MP SDK 微信公众平台开发教程(九):自定义菜单接口说明
查看>>
电容知识汇总
查看>>
【转】模块编译Android源码方法
查看>>
iOS8 CIGlassDistortion滤镜的使用
查看>>