WPF-FrameworkElement-Panel

#region 程序集 PresentationFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\10.0.9\ref\net10.0\PresentationFramework.dll
#endregion

using System.Collections;
using System.ComponentModel;
using System.Windows.Markup;
using System.Windows.Media;

namespace System.Windows.Controls
{
    //
    // 摘要:
    //     Provides a base class for all System.Windows.Controls.Panel elements. Use System.Windows.Controls.Panel
    //     elements to position and arrange child objects in Windows Presentation Foundation
    //     (WPF) applications.
    [ContentProperty("Children")]
    [Localizability(LocalizationCategory.Ignore)]
    public abstract class Panel : FrameworkElement, IAddChild
    {
        //
        // 摘要:
        //     Identifies the System.Windows.Controls.Panel.Background dependency property.
        public static readonly DependencyProperty BackgroundProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Controls.Panel.IsItemsHost dependency property.
        public static readonly DependencyProperty IsItemsHostProperty;
        //
        // 摘要:
        //     Identifies the System.Windows.Controls.Panel.ZIndex attached property.
        public static readonly DependencyProperty ZIndexProperty;

        //
        // 摘要:
        //     Initializes a new instance of the System.Windows.Controls.Panel class.
        protected Panel();

        //
        // 摘要:
        //     Gets or sets a value that indicates that this System.Windows.Controls.Panel is
        //     a container for user interface (UI) items that are generated by an System.Windows.Controls.ItemsControl.
        //
        //
        // 返回结果:
        //     true if this instance of System.Windows.Controls.Panel is an items host; otherwise,
        //     false. The default value is false.
        [Bindable(false)]
        [Category("Behavior")]
        public bool IsItemsHost { get; set; }
        //
        // 摘要:
        //     Gets a value that indicates whether this System.Windows.Controls.Panel arranges
        //     its descendants in a single dimension.
        //
        // 返回结果:
        //     true if the orientation of the System.Windows.Controls.Panel is in one dimension;
        //     otherwise, false.
        public bool HasLogicalOrientationPublic { get; }
        //
        // 摘要:
        //     Gets a System.Windows.Controls.UIElementCollection of child elements of this
        //     System.Windows.Controls.Panel.
        //
        // 返回结果:
        //     A System.Windows.Controls.UIElementCollection. The default is an empty System.Windows.Controls.UIElementCollection.
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public UIElementCollection Children { get; }
        //
        // 摘要:
        //     Gets or sets a System.Windows.Media.Brush that is used to fill the area between
        //     the borders of a System.Windows.Controls.Panel.
        //
        // 返回结果:
        //     A System.Windows.Media.Brush. This default value is null.
        public Brush Background { get; set; }
        //
        // 摘要:
        //     The System.Windows.Controls.Orientation of the panel, if the panel supports layout
        //     in only a single dimension.
        //
        // 返回结果:
        //     The System.Windows.Controls.Orientation of the panel. This property has no default
        //     value.
        public Orientation LogicalOrientationPublic { get; }
        //
        // 摘要:
        //     Gets the number of child System.Windows.Media.Visual objects in this instance
        //     of System.Windows.Controls.Panel.
        //
        // 返回结果:
        //     The number of child System.Windows.Media.Visual objects.
        protected override int VisualChildrenCount { get; }
        //
        // 摘要:
        //     Gets a value that indicates whether this System.Windows.Controls.Panel arranges
        //     its descendants in a single dimension.
        //
        // 返回结果:
        //     true if the orientation of the System.Windows.Controls.Panel is in one dimension;
        //     otherwise, false.
        protected internal virtual bool HasLogicalOrientation { get; }
        //
        // 摘要:
        //     Gets a System.Windows.Controls.UIElementCollection of child elements.
        //
        // 返回结果:
        //     An ordered collection of System.Windows.UIElement objects. This property has
        //     no default value.
        protected internal UIElementCollection InternalChildren { get; }
        //
        // 摘要:
        //     Gets an enumerator that can iterate the logical child elements of this System.Windows.Controls.Panel
        //     element.
        //
        // 返回结果:
        //     An System.Collections.IEnumerator. This property has no default value.
        protected internal override IEnumerator LogicalChildren { get; }
        //
        // 摘要:
        //     The System.Windows.Controls.Orientation of the panel, if the panel supports layout
        //     in only a single dimension.
        //
        // 返回结果:
        //     The System.Windows.Controls.Orientation of the panel. This property has no default
        //     value.
        protected internal virtual Orientation LogicalOrientation { get; }

        //
        // 摘要:
        //     Gets the value of the System.Windows.Controls.Panel.ZIndex property for a given
        //     element.
        //
        // 参数:
        //   element:
        //     The element for which to retrieve the System.Windows.Controls.Panel.ZIndex value.
        //
        //
        // 返回结果:
        //     The System.Windows.Controls.Panel.ZIndex position of the element.
        //
        // 异常:
        //   T:System.ArgumentNullException:
        //     The element is null.
        public static int GetZIndex(UIElement element);
        //
        // 摘要:
        //     Sets the value of the System.Windows.Controls.Panel.ZIndex attached property
        //     for a given element.
        //
        // 参数:
        //   element:
        //     The element on which to apply the property value.
        //
        //   value:
        //     The order on the z-plane in which this element appears.
        //
        // 异常:
        //   T:System.ArgumentNullException:
        //     The element is null.
        public static void SetZIndex(UIElement element, int value);
        //
        // 摘要:
        //     Determines whether the System.Windows.Controls.Panel.Children collection of a
        //     panel should be serialized.
        //
        // 返回结果:
        //     true if the System.Windows.Controls.Panel.Children collection should be serialized;
        //     otherwise, false. The System.Windows.Controls.Panel.Children collection is only
        //     serialized if it is not empty and not null.
        [EditorBrowsable(EditorBrowsableState.Never)]
        public bool ShouldSerializeChildren();
        //
        // 摘要:
        //     Creates a new System.Windows.Controls.UIElementCollection.
        //
        // 参数:
        //   logicalParent:
        //     The logical parent element of the collection to be created.
        //
        // 返回结果:
        //     An ordered collection of elements that have the specified logical parent.
        protected virtual UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent);
        //
        // 摘要:
        //     Gets a System.Windows.Media.Visual child of this System.Windows.Controls.Panel
        //     at the specified index position.
        //
        // 参数:
        //   index:
        //     The index position of the System.Windows.Media.Visual child.
        //
        // 返回结果:
        //     A System.Windows.Media.Visual child of the parent System.Windows.Controls.Panel
        //     element.
        protected override Visual GetVisualChild(int index);
        //
        // 摘要:
        //     Indicates that the System.Windows.Controls.Panel.IsItemsHost property value has
        //     changed.
        //
        // 参数:
        //   oldIsItemsHost:
        //     The old property value.
        //
        //   newIsItemsHost:
        //     The new property value.
        protected virtual void OnIsItemsHostChanged(bool oldIsItemsHost, bool newIsItemsHost);
        //
        // 摘要:
        //     Draws the content of a System.Windows.Media.DrawingContext object during the
        //     render pass of a System.Windows.Controls.Panel element.
        //
        // 参数:
        //   dc:
        //     The System.Windows.Media.DrawingContext object to draw.
        protected override void OnRender(DrawingContext dc);
        //
        // 摘要:
        //     Invoked when the System.Windows.Media.VisualCollection of a visual object is
        //     modified.
        //
        // 参数:
        //   visualAdded:
        //     The System.Windows.Media.Visual that was added to the collection.
        //
        //   visualRemoved:
        //     The System.Windows.Media.Visual that was removed from the collection.
        protected internal override void OnVisualChildrenChanged(DependencyObject visualAdded, DependencyObject visualRemoved);
    }
}

image

 

posted @ 2026-06-15 13:12  Tony.Jia  阅读(6)  评论(0)    收藏  举报