Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / FormViewActionList.cs / 1 / FormViewActionList.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Web.UI.Design; using System.Web.UI.Design.Util; using System.Web.UI.WebControls; using System.Windows.Forms; ///internal class FormViewActionList : DesignerActionList { private FormViewDesigner _formViewDesigner; private bool _allowPaging; /// public FormViewActionList(FormViewDesigner formViewDesigner) : base(formViewDesigner.Component) { _formViewDesigner = formViewDesigner; } /// /// Lets the FormView designer specify whether the Page action should be visible/enabled /// internal bool AllowPaging { get { return _allowPaging; } set { _allowPaging = value; } } public override bool AutoShow { get { return true; } set { } } ////// Property used by chrome to display the page checkbox. Called through reflection. /// public bool EnablePaging { get { return _formViewDesigner.EnablePaging; } set { _formViewDesigner.EnablePaging = value; } } ///public override DesignerActionItemCollection GetSortedActionItems() { DesignerActionItemCollection items = new DesignerActionItemCollection(); if (AllowPaging) { items.Add(new DesignerActionPropertyItem("EnablePaging", SR.GetString(SR.FormView_EnablePaging), "Behavior", SR.GetString(SR.FormView_EnablePagingDesc))); } return items; } } } // 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
- MimeMultiPart.cs
- CurrentChangingEventArgs.cs
- StringToken.cs
- SecurityUtils.cs
- XmlArrayAttribute.cs
- SafeLocalAllocation.cs
- _ShellExpression.cs
- JoinTreeSlot.cs
- XmlReflectionMember.cs
- IPGlobalProperties.cs
- PermissionToken.cs
- RichTextBoxAutomationPeer.cs
- FormViewRow.cs
- VisualBrush.cs
- XomlSerializationHelpers.cs
- HtmlImage.cs
- OdbcPermission.cs
- Lease.cs
- ListMarkerLine.cs
- SerialReceived.cs
- DesignerSerializationVisibilityAttribute.cs
- SqlClientFactory.cs
- ReadOnlyAttribute.cs
- SQLInt64.cs
- MergeFailedEvent.cs
- SmiMetaDataProperty.cs
- TypeDependencyAttribute.cs
- BCLDebug.cs
- ISO2022Encoding.cs
- Peer.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Transform.cs
- UniqueIdentifierService.cs
- SignatureSummaryDialog.cs
- Vector3DKeyFrameCollection.cs
- CqlParserHelpers.cs
- PersonalizableAttribute.cs
- CodePageUtils.cs
- SqlDataSourceCache.cs
- WebPartHelpVerb.cs
- ScalarType.cs
- LocalizationCodeDomSerializer.cs
- ListBox.cs
- PolicyLevel.cs
- WorkflowApplicationAbortedEventArgs.cs
- ImageButton.cs
- OpenTypeLayoutCache.cs
- GridSplitterAutomationPeer.cs
- EventLogReader.cs
- ProfileModule.cs
- ResolveMatchesApril2005.cs
- TaiwanCalendar.cs
- ConstructorArgumentAttribute.cs
- CommonDialog.cs
- GridViewUpdateEventArgs.cs
- FontUnitConverter.cs
- Not.cs
- LambdaCompiler.ControlFlow.cs
- MasterPage.cs
- EntitySetBase.cs
- PathGeometry.cs
- LoginStatusDesigner.cs
- _BasicClient.cs
- Int32Rect.cs
- XsltFunctions.cs
- CommandDevice.cs
- ListenerServiceInstallComponent.cs
- XmlQueryOutput.cs
- ProxyWebPart.cs
- WebProxyScriptElement.cs
- SpecialTypeDataContract.cs
- Int32Collection.cs
- SerializerDescriptor.cs
- HierarchicalDataTemplate.cs
- HttpFileCollection.cs
- MimeBasePart.cs
- EventPrivateKey.cs
- CmsUtils.cs
- LogicalTreeHelper.cs
- LocalFileSettingsProvider.cs
- SafeNativeMethodsOther.cs
- TcpTransportElement.cs
- DefinitionBase.cs
- ProfileProvider.cs
- OletxVolatileEnlistment.cs
- BevelBitmapEffect.cs
- ChannelBase.cs
- DBDataPermission.cs
- ConfigErrorGlyph.cs
- VerticalAlignConverter.cs
- _RequestCacheProtocol.cs
- TypeToken.cs
- UserNameSecurityTokenProvider.cs
- _CookieModule.cs
- CorrelationHandle.cs
- BindingSource.cs
- CollectionViewGroupRoot.cs
- WebPartChrome.cs
- XMLSchema.cs
- ResourceIDHelper.cs