Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / CalendarDesigner.cs / 1 / CalendarDesigner.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.Design.WebControls {
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Data;
using System.Design;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Web.UI.Design.Util;
using System.Web.UI.WebControls;
using System.Windows.Forms;
using Calendar = System.Web.UI.WebControls.Calendar;
///
///
///
/// Provides a designer for the
/// control.
///
///
[System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)]
[SupportsPreviewControl(true)]
public class CalendarDesigner : ControlDesigner {
private static DesignerAutoFormatCollection _autoFormats;
public override DesignerAutoFormatCollection AutoFormats {
get {
if (_autoFormats == null) {
_autoFormats = CreateAutoFormats(AutoFormatSchemes.CALENDAR_SCHEMES,
delegate(DataRow schemeData) { return new CalendarAutoFormat(schemeData); });
}
return _autoFormats;
}
}
///
///
///
/// Initializes the designer with the component for design.
///
///
public override void Initialize(IComponent component) {
VerifyInitializeArgument(component, typeof(Calendar));
base.Initialize(component);
}
///
///
///
/// Delegate to handle the the AutoFormat verb by calling the AutoFormat dialog.
///
///
protected void OnAutoFormat(object sender, EventArgs e) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReadOnlyCollection.cs
- DependencyObjectPropertyDescriptor.cs
- ConnectionPointGlyph.cs
- While.cs
- SymbolType.cs
- EventToken.cs
- Model3DCollection.cs
- DataRowCollection.cs
- OperationCanceledException.cs
- ElementMarkupObject.cs
- RuleSettingsCollection.cs
- UrlPath.cs
- columnmapfactory.cs
- ArraySubsetEnumerator.cs
- Semaphore.cs
- XmlSchemaSubstitutionGroup.cs
- CodeValidator.cs
- DbDataReader.cs
- CursorInteropHelper.cs
- httpapplicationstate.cs
- EpmContentDeSerializerBase.cs
- TiffBitmapDecoder.cs
- XmlAttributes.cs
- BaseAutoFormat.cs
- AggregateNode.cs
- XsltLibrary.cs
- WorkItem.cs
- ProfilePropertySettings.cs
- TraceListener.cs
- PrintDocument.cs
- WebPartDisplayMode.cs
- TableItemStyle.cs
- WindowsScroll.cs
- WebPageTraceListener.cs
- XmlChildEnumerator.cs
- ControlParameter.cs
- SecurityStateEncoder.cs
- Attributes.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- UnmanagedHandle.cs
- InstanceStore.cs
- ResXDataNode.cs
- NodeInfo.cs
- AnnouncementEndpoint.cs
- DashStyle.cs
- XmlAttributeProperties.cs
- PropertySegmentSerializationProvider.cs
- PageContent.cs
- MultilineStringConverter.cs
- KeyValuePairs.cs
- HttpWebRequest.cs
- MultiView.cs
- BamlTreeMap.cs
- ValueType.cs
- WebBrowserNavigatedEventHandler.cs
- MethodToken.cs
- EventOpcode.cs
- DataViewManager.cs
- KnownBoxes.cs
- XmlSerializerAssemblyAttribute.cs
- ColumnReorderedEventArgs.cs
- DesignerInterfaces.cs
- EditorZoneBase.cs
- PolyLineSegment.cs
- Thickness.cs
- XhtmlCssHandler.cs
- DataGridViewLinkColumn.cs
- Ops.cs
- TypeToken.cs
- WebUtil.cs
- HandlerBase.cs
- IconEditor.cs
- DependentTransaction.cs
- BrowserCapabilitiesCodeGenerator.cs
- Int64Converter.cs
- SystemDropShadowChrome.cs
- WebPartZoneBase.cs
- InvokeWebServiceDesigner.cs
- SelectedGridItemChangedEvent.cs
- Tuple.cs
- OleDbDataAdapter.cs
- HttpDebugHandler.cs
- SyndicationSerializer.cs
- MemberInfoSerializationHolder.cs
- XmlEncodedRawTextWriter.cs
- MimeObjectFactory.cs
- UIElementCollection.cs
- HwndSourceKeyboardInputSite.cs
- HandlerMappingMemo.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- AssemblyHash.cs
- BinaryObjectInfo.cs
- WriteTimeStream.cs
- FileEnumerator.cs
- DataSvcMapFileSerializer.cs
- HttpResponse.cs
- ElementProxy.cs
- KnownAssembliesSet.cs
- EntityDataSourceState.cs
- FlowDocumentReaderAutomationPeer.cs