Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Design / CalendarDesigner.cs / 1305376 / CalendarDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Reflection; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.MobileControls.Adapters; using System.Web.UI.Design.MobileControls.Adapters; ////// ////// Provides a designer for the ////// control. /// [ System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode) ] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] internal class CalendarDesigner : MobileControlDesigner { private System.Web.UI.MobileControls.Calendar _calendar; /// /// /// /// The control element for design. /// ////// Initializes the designer with the component for design. /// ////// ////// This is called by the designer host to establish the component for /// design. /// ///public override void Initialize(IComponent component) { Debug.Assert(component is System.Web.UI.MobileControls.Calendar, "CalendarDesigner.Initialize - Invalid Calendar Control"); _calendar = (System.Web.UI.MobileControls.Calendar) component; base.Initialize(component); } /// /// ////// Returns the design-time HTML of the ////// mobile control /// /// ////// The HTML of the control. /// ///protected override String GetDesignTimeNormalHtml() { DesignerTextWriter tw = new DesignerTextWriter(); _calendar.Adapter.Render(tw); return tw.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Reflection; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.MobileControls.Adapters; using System.Web.UI.Design.MobileControls.Adapters; ////// ////// Provides a designer for the ////// control. /// [ System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode) ] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] internal class CalendarDesigner : MobileControlDesigner { private System.Web.UI.MobileControls.Calendar _calendar; /// /// /// /// The control element for design. /// ////// Initializes the designer with the component for design. /// ////// ////// This is called by the designer host to establish the component for /// design. /// ///public override void Initialize(IComponent component) { Debug.Assert(component is System.Web.UI.MobileControls.Calendar, "CalendarDesigner.Initialize - Invalid Calendar Control"); _calendar = (System.Web.UI.MobileControls.Calendar) component; base.Initialize(component); } /// /// ////// Returns the design-time HTML of the ////// mobile control /// /// ////// The HTML of the control. /// ///protected override String GetDesignTimeNormalHtml() { DesignerTextWriter tw = new DesignerTextWriter(); _calendar.Adapter.Render(tw); return tw.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSerializerVersionAttribute.cs
- Style.cs
- Path.cs
- XMLUtil.cs
- SourceChangedEventArgs.cs
- ColumnMap.cs
- IISMapPath.cs
- SiblingIterators.cs
- MsmqHostedTransportConfiguration.cs
- Quack.cs
- Missing.cs
- ScrollChrome.cs
- EncoderParameter.cs
- ConnectivityStatus.cs
- Soap12ServerProtocol.cs
- ListViewAutomationPeer.cs
- RichTextBox.cs
- QueryParameter.cs
- ConfigXmlElement.cs
- PDBReader.cs
- PropagatorResult.cs
- SystemException.cs
- Storyboard.cs
- RegularExpressionValidator.cs
- WriteTimeStream.cs
- EntryIndex.cs
- BindingEditor.xaml.cs
- DataGridViewCellCancelEventArgs.cs
- ListParagraph.cs
- BulletChrome.cs
- ValidationSummary.cs
- StrokeNodeOperations2.cs
- ProfileProvider.cs
- ServiceModelTimeSpanValidator.cs
- XmlBinaryReader.cs
- WebServiceErrorEvent.cs
- TextBoxView.cs
- IisTraceWebEventProvider.cs
- DesignerGenericWebPart.cs
- Binding.cs
- InputMethodStateChangeEventArgs.cs
- CodeCommentStatement.cs
- UpDownBase.cs
- XsdValidatingReader.cs
- DecoratedNameAttribute.cs
- CmsInterop.cs
- Operators.cs
- LateBoundBitmapDecoder.cs
- InternalBufferOverflowException.cs
- StringBlob.cs
- IisNotInstalledException.cs
- _BufferOffsetSize.cs
- NavigatorInvalidBodyAccessException.cs
- TransformerConfigurationWizardBase.cs
- ActionMessageFilter.cs
- DataBoundControlHelper.cs
- PointF.cs
- TextDecorationCollection.cs
- XmlEventCache.cs
- Trace.cs
- ApplicationProxyInternal.cs
- CodeDirectoryCompiler.cs
- ActiveDocumentEvent.cs
- CompiledQueryCacheEntry.cs
- BooleanToVisibilityConverter.cs
- LostFocusEventManager.cs
- XmlSchemaCompilationSettings.cs
- ActiveXHost.cs
- TypedRowGenerator.cs
- ToolStripItemClickedEventArgs.cs
- BindingManagerDataErrorEventArgs.cs
- MemberAssignmentAnalysis.cs
- TextSpanModifier.cs
- Parameter.cs
- RC2CryptoServiceProvider.cs
- DataBindingExpressionBuilder.cs
- SerialReceived.cs
- CodeBinaryOperatorExpression.cs
- CodeComment.cs
- DataSet.cs
- Decimal.cs
- AttributeQuery.cs
- DependencyPropertyConverter.cs
- FileDataSourceCache.cs
- dataobject.cs
- ControlLocalizer.cs
- ReplacementText.cs
- EdmFunction.cs
- XmlDataSourceNodeDescriptor.cs
- XmlSchemaSequence.cs
- ErrorFormatterPage.cs
- WeakEventManager.cs
- DriveInfo.cs
- ReflectionServiceProvider.cs
- QueryOutputWriter.cs
- EventData.cs
- PersonalizationStateInfoCollection.cs
- SiteOfOriginPart.cs
- MonitorWrapper.cs
- RoleManagerEventArgs.cs