c # UWP controls Button (six)

additional properties

   Automation (20) Other (12)

 

XAML attached property is a concept. Using additional attributes, other attributes may be provided on the object / value pairs, but these properties are not part of the original object definition.

Additional property generally defined as a specialized form of dependency property, no traditional packaging property owner in the object model type.


XAML supports the following additional attributes:
    1, sub-elements can notify their behavior in the layout of the container to the parent panel, such as: Canvas ,, Grid and VariableSizedWrapGrid.
    2, controls usage will affect the behavior of an important part of the control from the control template, such as: ScrollViewer and VirtualizingStackPanel.
    3, using the service provided by the relevant class, wherein the service and the service classes inherit functionality not shared, such as: Typography, VisualStateManager, AutomationProperties and ToolTipService.
    4, the animation target, such as: Storyboard.

 

Additional attributes: Automation
Attributes description Types of Inherited from
AcceleratorKey Gets or sets the shortcut keys specified elements. string AutomationProperties
AccessKey Gets or sets the access key specified elements. If the property specified in the AccessKey TextElement UIElement or control, this value can be obtained by AutomationProperties.AccessKey property. Whenever element receives the focus, accessibility client will read the value of this attribute points. string AutomationProperties
AccessibilityView

Gets or sets the element of Microsoft UI Automation tree view mode.
   0 Raw view controls contained in the original Microsoft UI Automation tree.
   Control View 1 Control control is included in Microsoft UI Automation tree
   2 Content control is included in the content view Microsoft UI Automation tree. This is the default setting.

enum AutomationProperties
AutomationId Gets or sets the string that uniquely identifies the Microsoft UI Automation elements. string AutomationProperties
HelpText Gets or sets the help text elements. string AutomationProperties
IsRequiredForForm Gets or sets a value that indicates whether elements need to fill in the form. The default value is false Boolean AutomationProperties
ItemStatus Gets or sets the state of the elements described in the item. string AutomationProperties
ItemType Gets or sets the specified element of the type described. string AutomationProperties
LabeledBy Gets or sets the text label that contains elements of elements. UIElement AutomationProperties
LandmarkType

Gets or sets the Landmark associated with an element type identifier.
  . 1 the Custom
  2 Form1 (Form1 Page Landmark type)
  . 3 the Main (the Main Page Landmark type)
  . 4 Navigation (Navigation Landmark type)
  0 None (No Landmark type specified)
  . 5 Search (Search Landmark type)

enum AutomationProperties
Level Gets or sets the integer 1-based, describes the location of the integer elements in the hierarchy or disconnected hierarchy. The default value of -1 int AutomationProperties
Live Setting

Gets or sets the real-time value specified element.
  0 Off If the contents of the active region has changed, then the element does not send notifications.
  1 Polite If the contents of the active region has changed, non-disruptive element will send a notification. With this setting, Microsoft UI Automation clients and assistive technology is not expected to interrupt to notify the user of changes to the active area.
  2 Assertive & nbsp if the contents of the active region has changed, the element will send an interrupt notification. With this setting, Microsoft UI Automation clients and assistive technology will be interrupted to inform the user of changes to the active area.

enum AutomationProperties
LocalizedLandmarkType Gets or sets a localized text string that describes the type of automated element represented landmark string AutomationProperties
Name Gets or sets the name of the UI Automation element. string AutomationProperties
PositionInSet Gets or sets a 1-based integer, and the integer number description position of the element is considered the element sibling elements in a set. The default value of -1 int AutomationProperties
SizeOfSet Gets or sets the number of elements in a set of elements be regarded as sibling elements. The default value of -1 int AutomationProperties
FullDescription Gets or sets the localized string containing the text description of the extended elements. string AutomationProperties
IsDataValidForForm Gets or sets a value indicating whether the data is valid form. Boolean AutomationProperties
IsPeripheral Gets or sets a value indicating whether the element represents a peripheral automated user interface Boolean AutomationProperties
LocalizedControlType Gets or sets the localized text string, the string describes automated control element indicates the type of string AutomationProperties

  

Additional attributes: Other
Attributes description Types of Inherited from
Canvas.Left Obtaining the distance between the left or the left side of the canvas is provided with its parent object. Usually specify a positive integer. Allows the use of non-integer values ​​of double precision, but the sub-pixel rendering may cause problems; Double  
Canvas.Top 获取或设置元素顶部与其父画布顶部之间的距离。通常指定正整数。允许使用非整数双精度值,但可能会导致子像素呈现问题;Canvas.Top值由设置该值的最直接父画布元素解释。该值与Canvas.Left一起使用,用于指定画布的每个子元素的布局特征。 Double  
Canvas.ZIndex 获取或设置一个值,确定共享同一坐标空间的子元素出现的顺序。 较高的z阶值将绘制在较低的z阶值之上。如果未设置值,则默认值为-1。通常使用大于等于0的值,但允许使用负值。负值(如-99)使对象比任何默认值都离前景更远。该值由设置值的最直接父画布元素解释。 Double  
Grid.Column 获取包含单元格或项的列的序号。基于零的序号。 int  
Grid.ColumnSpan 获取单元格或项跨越的列数。 int  
Grid.Row 获取包含单元格或项的行的序号。基于零的序号。 int  
Grid.RowSpan 获取单元格或项跨越的行数。 int  
ScrollViewer
.HorizontalScrollBarVisibility
获取或设置一个值,该值指示是否应显示水平 ScrollBar。枚举值: 0 Disabled ,1 Auto ,2 Hidden(默认值) ,3 Visible 。 enum  
ScrollViewer
.VerticalScrollBarVisibility
获取或设置一个值,该值指示是否应显示垂直 ScrollBar。枚举值: 0 Disabled ,1 Auto ,2 Hidden(默认值) ,3 Visible 。 enum  
ToolTipService.Placement 获取或设置一个值,该值指示如何相对于放置目标定位工具提示。
   2 Bottom 收到键盘焦点时,下方显示,鼠标悬停时,鼠标下方显示。
   4 Right 收到键盘焦点时,右侧显示,鼠标悬停时,鼠标右侧显示。
   7 Mouse 收到键盘焦点时,左上侧显示,鼠标悬停时,鼠标左上显示。
   9 Left 收到键盘焦点时,左侧显示,鼠标悬停时,鼠标左侧显示。
   10 Top 收到键盘焦点时,上方显示,鼠标悬停时,鼠标上方显示。
enum  
ToolTipService
.PlacementTarget
获取或设置工具提示位置的对象。 UIElement  
ToolTipService.ToolTip 获取或设置工具提示的内容。工具提示内容可以从简单文本字符串到更复杂的StackPanel对象(例如具有嵌入控件和图像的元素)范围。 但是,工具提示内容无法获得焦点。 Object  

Guess you like

Origin www.cnblogs.com/flyarrow/p/11855132.html
UWP