Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / XhtmlAdapters / XhtmlBasicPanelAdapter.cs / 1305376 / XhtmlBasicPanelAdapter.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Security.Permissions;
using System.Web.Mobile;
using System.Web.UI.MobileControls;
using System.Web.UI.MobileControls.Adapters;
#if COMPILING_FOR_SHIPPED_SOURCE
namespace System.Web.UI.MobileControls.ShippedAdapterSource.XhtmlAdapters
#else
namespace System.Web.UI.MobileControls.Adapters.XhtmlAdapters
#endif
{
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[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.")]
public class XhtmlPanelAdapter : XhtmlControlAdapter {
///
protected new Panel Control {
get {
return base.Control as Panel;
}
}
///
public override void Render(XhtmlMobileTextWriter writer) {
if (Control.Content != null) {
Control.Content.RenderControl(writer);
}
else {
ConditionalEnterStyle(writer, Style);
ConditionalRenderOpeningDivElement(writer);
RenderChildren(writer);
ConditionalSetPendingBreak(writer);
ConditionalRenderClosingDivElement(writer);
ConditionalExitStyle(writer, Style);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Security.Permissions;
using System.Web.Mobile;
using System.Web.UI.MobileControls;
using System.Web.UI.MobileControls.Adapters;
#if COMPILING_FOR_SHIPPED_SOURCE
namespace System.Web.UI.MobileControls.ShippedAdapterSource.XhtmlAdapters
#else
namespace System.Web.UI.MobileControls.Adapters.XhtmlAdapters
#endif
{
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[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.")]
public class XhtmlPanelAdapter : XhtmlControlAdapter {
///
protected new Panel Control {
get {
return base.Control as Panel;
}
}
///
public override void Render(XhtmlMobileTextWriter writer) {
if (Control.Content != null) {
Control.Content.RenderControl(writer);
}
else {
ConditionalEnterStyle(writer, Style);
ConditionalRenderOpeningDivElement(writer);
RenderChildren(writer);
ConditionalSetPendingBreak(writer);
ConditionalRenderClosingDivElement(writer);
ConditionalExitStyle(writer, Style);
}
}
}
}
// 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
- ScriptingAuthenticationServiceSection.cs
- DrawingContextWalker.cs
- CaseInsensitiveComparer.cs
- MailMessage.cs
- FileVersionInfo.cs
- SqlErrorCollection.cs
- BindUriHelper.cs
- PromptStyle.cs
- DbConnectionPoolGroupProviderInfo.cs
- XPathCompileException.cs
- WindowAutomationPeer.cs
- EntityDataSourceState.cs
- StorageScalarPropertyMapping.cs
- WizardSideBarListControlItem.cs
- EntityTypeEmitter.cs
- Quad.cs
- WebPartZoneBase.cs
- SubMenuStyleCollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- BaseValidator.cs
- SimpleWorkerRequest.cs
- Constraint.cs
- DeflateStream.cs
- HttpCacheVaryByContentEncodings.cs
- TableStyle.cs
- HostedElements.cs
- Utils.cs
- PoisonMessageException.cs
- FreezableDefaultValueFactory.cs
- ToolStripItemBehavior.cs
- StylesEditorDialog.cs
- DataViewListener.cs
- CalendarTable.cs
- RegexBoyerMoore.cs
- ThousandthOfEmRealDoubles.cs
- ZipIOExtraFieldZip64Element.cs
- CodeObjectCreateExpression.cs
- RecognizerStateChangedEventArgs.cs
- EventListenerClientSide.cs
- UriParserTemplates.cs
- DocumentXmlWriter.cs
- BufferedStream.cs
- _SslStream.cs
- DataGridViewLinkCell.cs
- InterleavedZipPartStream.cs
- TextProviderWrapper.cs
- LongCountAggregationOperator.cs
- ServiceHostFactory.cs
- WindowVisualStateTracker.cs
- LocalBuilder.cs
- XsdCachingReader.cs
- SmtpAuthenticationManager.cs
- AspNetHostingPermission.cs
- WorkflowEventArgs.cs
- SafeProcessHandle.cs
- Accessible.cs
- Header.cs
- Error.cs
- Menu.cs
- DocumentXPathNavigator.cs
- StringToken.cs
- MultipleViewPatternIdentifiers.cs
- Deflater.cs
- PathStreamGeometryContext.cs
- UserNamePasswordValidationMode.cs
- ContentType.cs
- LoginViewDesigner.cs
- ClientUtils.cs
- MethodBody.cs
- PerformanceCounterPermission.cs
- AbandonedMutexException.cs
- FindResponse.cs
- RelativeSource.cs
- ResourceReferenceExpressionConverter.cs
- CompiledQueryCacheKey.cs
- KeyManager.cs
- CancellationTokenSource.cs
- ValidatorCompatibilityHelper.cs
- DetailsView.cs
- AutomationPattern.cs
- ByteConverter.cs
- MouseActionConverter.cs
- KeyGesture.cs
- ColumnResizeUndoUnit.cs
- HtmlProps.cs
- Compiler.cs
- CellTreeNode.cs
- MetadataCache.cs
- DefaultAuthorizationContext.cs
- PixelFormatConverter.cs
- SQLInt32Storage.cs
- SqlOuterApplyReducer.cs
- MobileControlsSectionHelper.cs
- PaintValueEventArgs.cs
- XmlArrayItemAttribute.cs
- XmlBoundElement.cs
- AppLevelCompilationSectionCache.cs
- EventSourceCreationData.cs
- HostProtectionPermission.cs
- HttpStreamMessage.cs