|
// Type: System.Windows.FrameworkElement
// Assembly: PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationFramework.dll
using System;
using System.Collections;
using System.ComponentModel;
using System.Runtime;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
namespace System.Windows
{
[StyleTypedProperty(Property = "FocusVisualStyle", StyleTargetType = typeof(Control))]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
public class FrameworkElement : UIElement, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
{
#region Constants and Fields
public static readonly DependencyProperty ActualHeightProperty;
public static readonly DependencyProperty ActualWidthProperty;
public static readonly DependencyProperty BindingGroupProperty;
public static readonly RoutedEvent ContextMenuClosingEvent;
public static readonly RoutedEvent ContextMenuOpeningEvent;
public static readonly DependencyProperty ContextMenuProperty;
public static readonly DependencyProperty CursorProperty;
public static readonly DependencyProperty DataContextProperty;
public static readonly DependencyProperty FlowDirectionProperty;
public static readonly DependencyProperty FocusVisualStyleProperty;
public static readonly DependencyProperty ForceCursorProperty;
public static readonly DependencyProperty HeightProperty;
public static readonly DependencyProperty HorizontalAlignmentProperty;
public static readonly DependencyProperty InputScopeProperty;
public static readonly DependencyProperty LanguageProperty;
public static readonly DependencyProperty LayoutTransformProperty;
public static readonly RoutedEvent LoadedEvent;
public static readonly DependencyProperty MarginProperty;
public static readonly DependencyProperty MaxHeightProperty;
public static readonly DependencyProperty MaxWidthProperty;
public static readonly DependencyProperty MinHeightProperty;
public static readonly DependencyProperty MinWidthProperty;
public static readonly DependencyProperty NameProperty;
public static readonly DependencyProperty OverridesDefaultStyleProperty;
public static readonly RoutedEvent RequestBringIntoViewEvent;
public static readonly RoutedEvent SizeChangedEvent;
public static readonly DependencyProperty StyleProperty;
public static readonly DependencyProperty TagProperty;
public static readonly RoutedEvent ToolTipClosingEvent;
public static readonly RoutedEvent ToolTipOpeningEvent;
public static readonly DependencyProperty ToolTipProperty;
public static readonly RoutedEvent UnloadedEvent;
public static readonly DependencyProperty UseLayoutRoundingProperty;
public static readonly DependencyProperty VerticalAlignmentProperty;
public static readonly DependencyProperty WidthProperty;
protected internal static readonly DependencyProperty DefaultStyleKeyProperty;
#endregion
#region Constructors and Destructors
public FrameworkElement();
#endregion
#region Public Events
public event ContextMenuEventHandler ContextMenuClosing;
public event ContextMenuEventHandler ContextMenuOpening;
public event DependencyPropertyChangedEventHandler DataContextChanged;
[EditorBrowsable(EditorBrowsableState.Advanced)]
public event EventHandler Initialized;
public event RoutedEventHandler Loaded;
public event RequestBringIntoViewEventHandler RequestBringIntoView;
public event SizeChangedEventHandler SizeChanged;
public event EventHandler<DataTransferEventArgs> SourceUpdated;
public event EventHandler<DataTransferEventArgs> TargetUpdated;
public event ToolTipEventHandler ToolTipClosing;
public event ToolTipEventHandler ToolTipOpening;
public event RoutedEventHandler Unloaded;
#endregion
#region Public Properties
public double ActualHeight { get; }
public double ActualWidth { get; }
[Localizability(LocalizationCategory.NeverLocalize)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public BindingGroup BindingGroup { get; set; }
public ContextMenu ContextMenu { get; set; }
public Cursor Cursor { get; set; }
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Localizability(LocalizationCategory.NeverLocalize)]
public object DataContext { get; set; }
[Localizability(LocalizationCategory.None)]
public FlowDirection FlowDirection { get; set; }
public Style FocusVisualStyle { get; set; }
public bool ForceCursor { get; set; }
[TypeConverter(typeof(LengthConverter))]
[Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
public double Height { get; set; }
public HorizontalAlignment HorizontalAlignment { get; set; }
public InputScope InputScope { get; set; }
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool IsInitialized { [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
get; }
public bool IsLoaded { get; }
public XmlLanguage Language { get; set; }
public Transform LayoutTransform { get; set; }
public Thickness Margin { get; set; }
[TypeConverter(typeof(LengthConverter))]
[Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
public double MaxHeight { get; set; }
[TypeConverter(typeof(LengthConverter))]
[Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
public double MaxWidth { get; set; }
[TypeConverter(typeof(LengthConverter))]
[Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
public double MinHeight { get; set; }
[TypeConverter(typeof(LengthConverter))]
[Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
public double MinWidth { get; set; }
[MergableProperty(false)]
[DesignerSerializationOptions(DesignerSerializationOptions.SerializeAsAttribute)]
[Localizability(LocalizationCategory.NeverLocalize)]
public string Name { get; set; }
public bool OverridesDefaultStyle { get; set; }
public DependencyObject Parent { [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
get; }
[Ambient]
public ResourceDictionary Resources { get; set; }
public Style Style { [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
get; set; }
[Localizability(LocalizationCategory.NeverLocalize)]
public object Tag { get; set; }
public DependencyObject TemplatedParent { [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
get; }
[Bindable(true)]
[Category("Appearance")]
[Localizability(LocalizationCategory.ToolTip)]
public object ToolTip { get; set; }
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public TriggerCollection Triggers { get; }
public bool UseLayoutRounding { get; set; }
public VerticalAlignment VerticalAlignment { get; set; }
[TypeConverter(typeof(LengthConverter))]
[Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
public double Width { get; set; }
#endregion
#region Properties
protected internal object DefaultStyleKey { get; set; }
protected internal InheritanceBehavior InheritanceBehavior { get; set; }
protected internal virtual IEnumerator LogicalChildren { get; }
protected override int VisualChildrenCount { get; }
#endregion
#region Public Methods and Operators
public static FlowDirection GetFlowDirection(DependencyObject element);
public static void SetFlowDirection(DependencyObject element, FlowDirection value);
public bool ApplyTemplate();
public virtual void BeginInit();
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void BeginStoryboard(Storyboard storyboard);
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void BeginStoryboard(Storyboard storyboard, HandoffBehavior handoffBehavior);
public void BeginStoryboard(Storyboard storyboard, HandoffBehavior handoffBehavior, bool isControllable);
public void BringIntoView();
public void BringIntoView(Rect targetRectangle);
public virtual void EndInit();
public object FindName(string name);
public object FindResource(object resourceKey);
public BindingExpression GetBindingExpression(DependencyProperty dp);
public override sealed bool MoveFocus(TraversalRequest request);
public virtual void OnApplyTemplate();
public override sealed DependencyObject PredictFocus(FocusNavigationDirection direction);
public void RegisterName(string name, object scopedElement);
public BindingExpressionBase SetBinding(DependencyProperty dp, BindingBase binding);
public BindingExpression SetBinding(DependencyProperty dp, string path);
public void SetResourceReference(DependencyProperty dp, object name);
[EditorBrowsable(EditorBrowsableState.Never)]
public bool ShouldSerializeResources();
[EditorBrowsable(EditorBrowsableState.Never)]
public bool ShouldSerializeStyle();
[EditorBrowsable(EditorBrowsableState.Never)]
public bool ShouldSerializeTriggers();
public object TryFindResource(object resourceKey);
public void UnregisterName(string name);
public void UpdateDefaultStyle();
#endregion
#region Explicit Interface Methods
bool IQueryAmbient.IsAmbientPropertyAvailable(string propertyName);
#endregion
#region Methods
protected internal void AddLogicalChild(object child);
protected internal DependencyObject GetTemplateChild(string childName);
protected internal override DependencyObject GetUIParentCore();
protected internal override void OnRenderSizeChanged(SizeChangedInfo sizeInfo);
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle);
protected internal override void OnVisualParentChanged(DependencyObject oldParent);
protected internal virtual void ParentLayoutInvalidated(UIElement child);
protected internal void RemoveLogicalChild(object child);
protected override sealed void ArrangeCore(Rect finalRect);
protected virtual Size ArrangeOverride(Size finalSize);
protected override Geometry GetLayoutClip(Size layoutSlotSize);
protected override Visual GetVisualChild(int index);
protected override sealed Size MeasureCore(Size availableSize);
protected virtual Size MeasureOverride(Size availableSize);
protected virtual void OnContextMenuClosing(ContextMenuEventArgs e);
protected virtual void OnContextMenuOpening(ContextMenuEventArgs e);
protected override void OnGotFocus(RoutedEventArgs e);
protected virtual void OnInitialized(EventArgs e);
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e);
protected virtual void OnToolTipClosing(ToolTipEventArgs e);
protected virtual void OnToolTipOpening(ToolTipEventArgs e);
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.