PowerApps 中的颜色和边框属性Color and border properties in PowerApps

概述Overview

根据用户与控件交互的方式来配置控件的样式。Configure the style of a control based on how the user interacts with it.

一般Normal

以下属性一般在用户不与控件交互时起作用。These properties are in effect normally, when the user is not interacting with the control.

BorderColor:控件边框的颜色。BorderColor – The color of a control's border.

BorderStyle:控件边框是“实线”、“虚线”、“点线”还是“无”。BorderStyle – Whether a control's border is Solid, Dashed, Dotted, or None.

BorderThickness:控件边框的粗细。BorderThickness – The thickness of a control's border.

Color:控件中文本的颜色。Color – The color of text in a control.

Fill:控件的背景色。Fill – The background color of a control.

FocusedBorderThickness - 控件具有键盘焦点时,该控件边框的粗细。FocusedBorderThickness – The thickness of a control's border when it has keyboard focus.

已禁用Disabled

以下属性在控件被禁用时起作用。These properties are in effect when the controls is disabled. 如果 Disabled 属性设置为“true”,则可以禁用控件。A control can be disabled if the Disabled property is set to true.

DisabledBorderColor – 控件的 DisplayMode 属性设置为 Disabled 时,该控件边框的颜色。DisabledBorderColor – The color of a control's border if the control's DisplayMode property is set to Disabled.

DisabledColor – 控件的 DisplayMode 属性设置为 Disabled 时,该控件中的文本颜色。DisabledColor – The color of text in a control if its DisplayMode property is set to Disabled.

DisabledFill– 控件的 DisplayMode 属性设置为 Disabled 时,该控件的背景颜色。DisabledFill – The background color of a control if its DisplayMode property is set to Disabled.

HoverHover

以下属性在用户将鼠标悬停在控件上时起作用。These properties are in effect when the user hovers over the control with a mouse.

HoverBorderColor:用户将鼠标指针停留在控件上时,该控件边框的颜色。HoverBorderColor – The color of a control's border when the user keeps the mouse pointer on that control.

HoverColor:用户将鼠标指针停留在控件上时,该控件中的文本颜色。HoverColor – The color of the text in a control when the user keeps the mouse pointer on it.

HoverFill:用户将鼠标指针停留在控件上时,该控件的背景色。HoverFill – The background color of a control when the user keeps the mouse pointer on it.

PressedPressed

以下属性在按下按钮或图像控件时起作用。These properties are in effect when a button or image control is pressed.

PressedBorderColor:用户在点击或单击控件时,该控件边框的颜色。PressedBorderColor – The color of a control's border when the user taps or clicks that control.

PressedColor:用户在点击或单击控件时,该控件中的文本颜色。PressedColor – The color of text in a control when the user taps or clicks that control.

PressedFill:用户在点击或单击控件时,该控件的背景色。PressedFill – The background color of a control when the user taps or clicks that control.

SelectionSelection

以下属性在用户选定控件中的某项时起作用。These properties are in effect when the user selects an item in a control.

SelectionColor:列表中选定项的文本颜色或笔控件中选择工具的颜色。SelectionColor – The text color of a selected item or items in a list or the color of the selection tool in a pen control.

SelectionFill:列表中选定项的背景色或笔控件中选定区域的背景色。SelectionFill – The background color of a selected item or items in a list or a selected area of a pen control.