<?xml version="1.0"?>
<doc>
<assembly>
<name>System.Windows.Controls</name>
</assembly>
<members>
<member name="T:System.Windows.Controls.Calendar">
<summary>
Represents a control that enables a user to select a date by using a
visual calendar display.
</summary>
<remarks>
<para>
A Calendar control can be used on its own, or as a drop-down part of a
DatePicker control. For more information, see DatePicker. A Calendar
displays either the days of a month, the months of a year, or the years
of a decade, depending on the value of the DisplayMode property. When
displaying the days of a month, the user can select a date, a range of
dates, or multiple ranges of dates. The kinds of selections that are
allowed are controlled by the SelectionMode property.
</para>
<para>
The range of dates displayed is governed by the DisplayDateStart and
DisplayDateEnd properties. If DisplayMode is Year or Decade, only
months or years that contain displayable dates will be displayed.
Setting the displayable range to a range that does not include the
current DisplayDate will throw an ArgumentOutOfRangeException.
</para>
<para>
The BlackoutDates property can be used to specify dates that cannot be
selected. These dates will be displayed as dimmed and disabled.
</para>
<para>
By default, Today is highlighted. This can be disabled by setting
IsTodayHighlighted to false.
</para>
<para>
The Calendar control provides basic navigation using either the mouse or
keyboard. The following table summarizes keyboard navigation.
Key Combination DisplayMode Action
ARROW Any Change focused date, unselect
all selected dates, and select
new focused date.
SHIFT+ARROW Any If SelectionMode is not set to
SingleDate or None begin
selecting a range of dates.
CTRL+UP ARROW Any Switch to the next larger
DisplayMode. If DisplayMode is
already Decade, no action.
CTRL+DOWN ARROW Any Switch to the next smaller
DisplayMode. If DisplayMode is
already Month, no action.
SPACEBAR Month Select focused date.
SPACEBAR Year or Decade Switch DisplayMode to the Month
or Year represented by focused
item.
</para>
<para>
XAML Usage for Classes Derived from Calendar
If you define a class that derives from Calendar, the class can be used
as an object element in XAML, and all of the inherited properties and
events that show a XAML usage in the reference for the Calendar members
can have the same XAML usage for the derived class. However, the object
element itself must have a different prefix mapping than the controls:
mapping shown in the usages, because the derived class comes from an
assembly and namespace that you create and define. You must define your
own prefix mapping to an XML namespace to use the class as an object
element in XAML.
</para>
</remarks>
<QualityBand>Mature</QualityBand>
</member>
<member name="F:System.Windows.Controls.Calendar.RowsPerMonth">
<summary>
Inherited code: Requires comment.
</summary>
</member>
<member name="F:System.Windows.Controls.Calendar.ColumnsPerMonth">
<summary>
Inherited code: Requires comment.
</summary>
</member>
<member name="F:System.Windows.Controls.Calendar.RowsPerYear">
<summary>
Inherited code: Requires comment.
</summary>
</member>
<member name="F:System.Windows.Controls.Calendar.ColumnsPerYear">
<summary>
Inherited code: Requires comment.
</summary>
</member>
<member name="F:System.Windows.Controls.Calendar.ElementRoot">
<summary>
Inherited code: Requires comment.
</summary>
</member>
<member name="F:System.Windows.Controls.Calendar.ElementMonth">
<summary>
Inherited code: Requires comment.
</summary>
</member>
<member name="F:System.Windows.Controls.Calendar.CalendarButtonStyleProperty">
<summary>
Identifies the CalendarButtonStyle dependency property.
</summary>
</member>
<member name="M:System.Windows.Controls.Calendar.OnCalendarButtonStyleChanged(System.Windows.DependencyObject,System.Windows.DependencyPropertyChangedEventArgs)">
<summary>
Inherited code: Requires comment.
</summary>
<param name="d">Inherited code: Requires comment 1.</param>
<param name="e">Inherited code: Requires comment 2.</param>
</member>
<member name="M:System.Windows.Controls.Calendar.EnsureCalendarButtonStyle(System.Windows.Controls.Primitives.CalendarButton,System.Windows.Style,System.Windows.Style)">
<summary>
Inherited code: Requires comment.
</summary>
<param name="calendarButton">Inherited code: Requires comment 1.</param>
<param name="oldCalendarButtonStyle">Inherited code: Requires comment 2.</param>
<param name="newCalendarButtonStyle">Inherited code: Requires comment 3.</param>
</member>
<member name="F:System.Windows.Controls.Calendar.CalendarDayButtonStyleProperty">
<summary>
Identifies the DayButtonStyle dependency property.
</summary>
</member>
<member name="M:System.Windows.Controls.Calendar.OnCalendarDayButtonStyleChanged(System.Windows.DependencyObject,System.Windows.DependencyPropertyChangedEventArgs)">
<summary>
Inherited code: Requires comment.
</summary>
<param name="d">Inherited code: Requires comment 1.</param>
<param name="e">Inherited code: Requires comment 2.</param>
</member>
<member name="M:System.Windows.Controls.Calendar.EnsureDayButtonStyle(System.Windows.Controls.Primitives.CalendarDayButton,System.Windows.Style,System.Windows.Style)">
<summary>
Inherited code: Requires comment.
</summary>
<param name="dayButton">Inherited code: Requires comment 1.</param>
<param name="oldDayButtonStyle">Inherited code: Requires comment 2.</param>
<param name="newDayButtonStyle">Inherited code: Requires comment 3.</param>
</member>
silverlight 资料及其code
需积分: 0 104 浏览量
更新于2009-07-03
收藏 4.39MB ZIP 举报
**银光(Silverlight)技术详解**
银光(Silverlight)是微软公司推出的一种富互联网应用程序(RIA)框架,主要用于创建交互式、媒体丰富的Web应用。它与Adobe的Flash相似,但提供了更强大的开发环境和更丰富的功能集,特别是在.NET框架的支持下。本资料集合包含了与Silverlight相关的代码示例,旨在帮助开发者深入理解和掌握Silverlight的应用。
**1. 银光(Silverlight)基础**
- **安装和配置**:Silverlight开发首先需要安装Visual Studio IDE和Silverlight开发工具包。开发者可以选择Visual Studio Express或更高版本,以便获得完整的开发环境。
- **XAML语言**:Silverlight的界面设计主要基于XML标记语言XAML,它允许声明式地创建UI元素和布局,简化了用户界面的构建过程。
- **编程模型**:Silverlight应用程序通常使用C#或VB.NET进行编写,这两者都是.NET框架支持的编程语言。开发者可以利用.NET框架的强大功能,如类库、异常处理、多线程等。
**2. 银光(Silverlight)控件**
- **内置控件**:Silverlight提供了一系列内置的控件,如Button、TextBox、ListBox等,这些控件可以帮助快速构建用户界面。
- **自定义控件**:通过继承已有的控件或者使用ControlTemplate,开发者可以创建自己的自定义控件以满足特定需求。
- **Silverlight Controls Samples**:在提供的文件列表中,`Silverlight.Controls.Samples.sln`和`Controls.Samples`可能包含了大量的控件示例代码,开发者可以通过这些示例学习如何使用和扩展Silverlight控件。
**3. 应用程序结构**
- **解决方案(Solution)**:`.sln`文件是Visual Studio中的解决方案文件,它管理着项目之间的关系和依赖性。`Silverlight.Controls.Samples.VB.sln`和`Silverlight.Controls.Samples.sln`可能代表两个不同的解决方案,一个可能是VB.NET编写的,另一个是C#。
- **项目(Project)**:在解决方案中,每个项目代表一个独立的编译单元,如库或可执行文件。`Controls.Samples`和`Controls.Samples.Common`可能是两个项目,`Controls.Samples`可能包含控件示例的实现,而`Controls.Samples.Common`可能包含通用的代码或资源。
- **二进制文件(Binaries)**:`Binaries`目录可能包含编译后的DLL或EXE文件,这些都是运行时所需的可执行代码。
**4. 开发流程**
- **设计阶段**:使用XAML设计界面,可以使用Visual Studio的XAML编辑器或者 Blend for Visual Studio进行更直观的可视化设计。
- **编码阶段**:编写后端逻辑代码,实现业务逻辑和数据绑定。
- **调试和测试**:Visual Studio提供了强大的调试工具,包括断点、变量查看、调用堆栈等,方便调试代码。
- **部署**:Silverlight应用可以通过浏览器插件在Web上运行,也可以打包为桌面应用。
**5. 进阶特性**
- **数据绑定**:Silverlight支持WPF的数据绑定机制,使得UI与数据模型之间能轻松建立关联,实现数据驱动的UI。
- **动画和媒体支持**:内置的动画系统和多媒体播放能力使得Silverlight在富媒体应用中表现出色。
- **OData支持**:Silverlight可以利用OData协议与Web服务进行数据交换,实现前后端的交互。
- **离线应用**:通过结合Silverlight Out-of-Browser(OOB)功能,可以创建能在本地运行的离线应用程序。
通过深入研究这些代码示例,开发者能够更好地理解Silverlight的各种特性和用法,从而提升在Silverlight平台上的开发技能。对于希望在Web开发领域中使用富媒体和交互性功能的开发者来说,掌握Silverlight是极具价值的。
vbloveshllm
- 粉丝: 616
- 资源: 150
最新资源
- C++核心编程.zip
- vivado hls教程 ug871中文版
- 日志系统创建的一些资源
- 一些python用的note文档
- 基于python实现的人工智能聊天机器人.zip
- chatbot.zip
- 071223330付承雪.docx
- Chatbot-main.zip
- 基于springboot+vue服装销售系统(不含论文)
- 自动发货教程2024最新版.doc
- 2023-04-06-项目笔记 - 第三百五十四阶段 - 4.4.2.352全局变量的作用域-352 -2025.12.21
- 2023-04-06-项目笔记 - 第三百五十四阶段 - 4.4.2.352全局变量的作用域-352 -2025.12.21
- 第三届全国技能大赛上海市选拔赛(世赛选拔项目)网站技术项目试题与素材.zip
- 防火墙组网设计配置文件
- 417832817635033okx-android.apk
- Python编程入门基础教程:从零到一