winui-svelte 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/bindings/.dynwinrt-js-types +1333 -51
- package/dist/bindings/.dynwinrt-managed +1 -1
- package/dist/bindings/index.d.ts +95 -1
- package/dist/bindings/index.js +146 -2
- package/dist/bindings/index.mjs +4437 -4293
- package/dist/bindings/index.proxy.js +73 -1
- package/dist/components/generated/controls/AnimatedVisualPlayer.svelte.d.ts +2 -0
- package/dist/components/generated/controls/AnimatedVisualPlayer.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/AnimatedVisualPlayer.svelte.js.map +1 -1
- package/dist/components/generated/controls/Block.svelte.d.ts +6 -0
- package/dist/components/generated/controls/Block.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Block.svelte.js.map +1 -1
- package/dist/components/generated/controls/Border.svelte.d.ts +6 -0
- package/dist/components/generated/controls/Border.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Border.svelte.js.map +1 -1
- package/dist/components/generated/controls/ContentPresenter.svelte.d.ts +19 -1
- package/dist/components/generated/controls/ContentPresenter.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/ContentPresenter.svelte.js.map +1 -1
- package/dist/components/generated/controls/Control.svelte.d.ts +12 -0
- package/dist/components/generated/controls/Control.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Control.svelte.js.map +1 -1
- package/dist/components/generated/controls/EllipseGeometry.svelte.d.ts +4 -0
- package/dist/components/generated/controls/EllipseGeometry.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/EllipseGeometry.svelte.js.map +1 -1
- package/dist/components/generated/controls/FrameworkElement.svelte.d.ts +10 -0
- package/dist/components/generated/controls/FrameworkElement.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/FrameworkElement.svelte.js.map +1 -1
- package/dist/components/generated/controls/Glyphs.svelte.d.ts +2 -0
- package/dist/components/generated/controls/Glyphs.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Glyphs.svelte.js.map +1 -1
- package/dist/components/generated/controls/Grid.svelte.d.ts +6 -0
- package/dist/components/generated/controls/Grid.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Grid.svelte.js.map +1 -1
- package/dist/components/generated/controls/Hyperlink.svelte.d.ts +2 -0
- package/dist/components/generated/controls/Hyperlink.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Hyperlink.svelte.js.map +1 -1
- package/dist/components/generated/controls/Image.svelte.d.ts +2 -0
- package/dist/components/generated/controls/Image.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Image.svelte.js.map +1 -1
- package/dist/components/generated/controls/ItemsPresenter.svelte.d.ts +2 -0
- package/dist/components/generated/controls/ItemsPresenter.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/ItemsPresenter.svelte.js.map +1 -1
- package/dist/components/generated/controls/LinedFlowLayout.svelte.d.ts +2 -0
- package/dist/components/generated/controls/LinedFlowLayout.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/LinedFlowLayout.svelte.js.map +1 -1
- package/dist/components/generated/controls/MediaPlayerElement.svelte.d.ts +2 -0
- package/dist/components/generated/controls/MediaPlayerElement.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/MediaPlayerElement.svelte.js.map +1 -1
- package/dist/components/generated/controls/MediaPlayerPresenter.svelte.d.ts +2 -0
- package/dist/components/generated/controls/MediaPlayerPresenter.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/MediaPlayerPresenter.svelte.js.map +1 -1
- package/dist/components/generated/controls/RadialGradientBrush.svelte.d.ts +4 -0
- package/dist/components/generated/controls/RadialGradientBrush.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/RadialGradientBrush.svelte.js.map +1 -1
- package/dist/components/generated/controls/Rectangle.svelte.d.ts +4 -0
- package/dist/components/generated/controls/Rectangle.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Rectangle.svelte.js.map +1 -1
- package/dist/components/generated/controls/RelativePanel.svelte.d.ts +6 -0
- package/dist/components/generated/controls/RelativePanel.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/RelativePanel.svelte.js.map +1 -1
- package/dist/components/generated/controls/RichEditBox.svelte.d.ts +1 -1
- package/dist/components/generated/controls/RichTextBlock.svelte.d.ts +14 -2
- package/dist/components/generated/controls/RichTextBlock.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/RichTextBlock.svelte.js.map +1 -1
- package/dist/components/generated/controls/RichTextBlockOverflow.svelte.d.ts +4 -0
- package/dist/components/generated/controls/RichTextBlockOverflow.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/RichTextBlockOverflow.svelte.js.map +1 -1
- package/dist/components/generated/controls/ScrollView.svelte.d.ts +4 -0
- package/dist/components/generated/controls/ScrollView.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/ScrollView.svelte.js.map +1 -1
- package/dist/components/generated/controls/ScrollViewer.svelte.d.ts +4 -0
- package/dist/components/generated/controls/ScrollViewer.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/ScrollViewer.svelte.js.map +1 -1
- package/dist/components/generated/controls/Shape.svelte.d.ts +10 -0
- package/dist/components/generated/controls/Shape.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Shape.svelte.js.map +1 -1
- package/dist/components/generated/controls/StackPanel.svelte.d.ts +6 -0
- package/dist/components/generated/controls/StackPanel.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/StackPanel.svelte.js.map +1 -1
- package/dist/components/generated/controls/TextBlock.svelte.d.ts +14 -2
- package/dist/components/generated/controls/TextBlock.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/TextBlock.svelte.js.map +1 -1
- package/dist/components/generated/controls/TextBox.svelte.d.ts +1 -1
- package/dist/components/generated/controls/TextElement.svelte.d.ts +3 -1
- package/dist/components/generated/controls/TextElement.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/TextElement.svelte.js.map +1 -1
- package/dist/components/generated/controls/TickBar.svelte.d.ts +2 -0
- package/dist/components/generated/controls/TickBar.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/TickBar.svelte.js.map +1 -1
- package/dist/components/generated/controls/TileBrush.svelte.d.ts +2 -0
- package/dist/components/generated/controls/TileBrush.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/TileBrush.svelte.js.map +1 -1
- package/dist/components/generated/controls/UIElement.svelte.d.ts +7 -1
- package/dist/components/generated/controls/UIElement.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/UIElement.svelte.js.map +1 -1
- package/dist/components/generated/controls/Viewbox.svelte.d.ts +2 -0
- package/dist/components/generated/controls/Viewbox.svelte.d.ts.map +1 -1
- package/dist/components/generated/controls/Viewbox.svelte.js.map +1 -1
- package/dist/css/control.d.ts +2 -0
- package/dist/css/control.d.ts.map +1 -0
- package/dist/css/control.js +5 -0
- package/dist/css/control.js.map +1 -0
- package/dist/css/shape.d.ts +2 -0
- package/dist/css/shape.d.ts.map +1 -0
- package/dist/css/shape.js +5 -0
- package/dist/css/shape.js.map +1 -0
- package/dist/css/translate/lazy-groups.d.ts.map +1 -1
- package/dist/css/translate/lazy-groups.js +14 -0
- package/dist/css/translate/lazy-groups.js.map +1 -1
- package/dist/css/translate/shape-properties.d.ts +24 -0
- package/dist/css/translate/shape-properties.d.ts.map +1 -0
- package/dist/css/translate/shape-properties.js +207 -0
- package/dist/css/translate/shape-properties.js.map +1 -0
- package/dist/css/translate/text-control-properties.d.ts +21 -0
- package/dist/css/translate/text-control-properties.d.ts.map +1 -0
- package/dist/css/translate/text-control-properties.js +120 -0
- package/dist/css/translate/text-control-properties.js.map +1 -0
- package/dist/css/translate/unsupported-properties.d.ts.map +1 -1
- package/dist/css/translate/unsupported-properties.js +2 -0
- package/dist/css/translate/unsupported-properties.js.map +1 -1
- package/dist/css/validate/vscode-css-data.json +370 -0
- package/dist/css/validate/vscode-data.d.ts +2 -1
- package/dist/css/validate/vscode-data.d.ts.map +1 -1
- package/dist/css/validate/vscode-data.js +31 -1
- package/dist/css/validate/vscode-data.js.map +1 -1
- package/package.json +9 -1
- package/src/components/generated/controls/AnimatedVisualPlayer.svelte.ts +2 -0
- package/src/components/generated/controls/Block.svelte.ts +6 -0
- package/src/components/generated/controls/Border.svelte.ts +6 -0
- package/src/components/generated/controls/ContentPresenter.svelte.ts +19 -1
- package/src/components/generated/controls/Control.svelte.ts +12 -0
- package/src/components/generated/controls/EllipseGeometry.svelte.ts +4 -0
- package/src/components/generated/controls/FrameworkElement.svelte.ts +10 -0
- package/src/components/generated/controls/Glyphs.svelte.ts +2 -0
- package/src/components/generated/controls/Grid.svelte.ts +6 -0
- package/src/components/generated/controls/Hyperlink.svelte.ts +2 -0
- package/src/components/generated/controls/Image.svelte.ts +2 -0
- package/src/components/generated/controls/ItemsPresenter.svelte.ts +2 -0
- package/src/components/generated/controls/LinedFlowLayout.svelte.ts +2 -0
- package/src/components/generated/controls/MediaPlayerElement.svelte.ts +2 -0
- package/src/components/generated/controls/MediaPlayerPresenter.svelte.ts +2 -0
- package/src/components/generated/controls/RadialGradientBrush.svelte.ts +4 -0
- package/src/components/generated/controls/Rectangle.svelte.ts +4 -0
- package/src/components/generated/controls/RelativePanel.svelte.ts +6 -0
- package/src/components/generated/controls/RichEditBox.svelte.ts +1 -1
- package/src/components/generated/controls/RichTextBlock.svelte.ts +14 -2
- package/src/components/generated/controls/RichTextBlockOverflow.svelte.ts +4 -0
- package/src/components/generated/controls/ScrollView.svelte.ts +4 -0
- package/src/components/generated/controls/ScrollViewer.svelte.ts +4 -0
- package/src/components/generated/controls/Shape.svelte.ts +10 -0
- package/src/components/generated/controls/StackPanel.svelte.ts +6 -0
- package/src/components/generated/controls/TextBlock.svelte.ts +14 -2
- package/src/components/generated/controls/TextBox.svelte.ts +1 -1
- package/src/components/generated/controls/TextElement.svelte.ts +3 -1
- package/src/components/generated/controls/TickBar.svelte.ts +2 -0
- package/src/components/generated/controls/TileBrush.svelte.ts +2 -0
- package/src/components/generated/controls/UIElement.svelte.ts +7 -1
- package/src/components/generated/controls/Viewbox.svelte.ts +2 -0
- package/src/css/API.md +32 -0
- package/src/css/control.ts +5 -0
- package/src/css/shape.ts +5 -0
- package/src/css/translate/lazy-groups.ts +14 -0
- package/src/css/translate/shape-properties.ts +250 -0
- package/src/css/translate/text-control-properties.ts +135 -0
- package/src/css/translate/unsupported-properties.ts +2 -0
- package/src/css/validate/vscode-data.ts +38 -1
- package/web-types.json +460 -90
- package/dist/bindings/microsoft/ui/xaml/controls/SwapChainBackgroundPanel.d.ts +0 -731
- package/dist/bindings/microsoft/ui/xaml/controls/SwapChainBackgroundPanel.js +0 -2806
|
@@ -72,6 +72,8 @@ export interface ControlProps extends FrameworkElementProps {
|
|
|
72
72
|
/**
|
|
73
73
|
* Gets or sets the border thickness of a control.
|
|
74
74
|
*
|
|
75
|
+
* Also settable in CSS as `border-width`
|
|
76
|
+
*
|
|
75
77
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.borderthickness
|
|
76
78
|
*/
|
|
77
79
|
borderThickness?: ThicknessInput;
|
|
@@ -86,6 +88,8 @@ export interface ControlProps extends FrameworkElementProps {
|
|
|
86
88
|
/**
|
|
87
89
|
* Gets or sets the radius for the corners of the control's border. The degree to which the corners are rounded, expressed as values of the CornerRadius structure.
|
|
88
90
|
*
|
|
91
|
+
* Also settable in CSS as `border-radius`
|
|
92
|
+
*
|
|
89
93
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.cornerradius
|
|
90
94
|
*/
|
|
91
95
|
cornerRadius?: CornerRadiusInput;
|
|
@@ -124,6 +128,8 @@ export interface ControlProps extends FrameworkElementProps {
|
|
|
124
128
|
/**
|
|
125
129
|
* Gets or sets the degree to which a font is condensed or expanded on the screen. One of the values that specifies the degree to which a font is condensed or expanded on the screen. The default is Normal.
|
|
126
130
|
*
|
|
131
|
+
* Also settable in CSS as `font-stretch`
|
|
132
|
+
*
|
|
127
133
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.fontstretch
|
|
128
134
|
*/
|
|
129
135
|
fontStretch?: EnumInput<typeof FontStretch>;
|
|
@@ -158,6 +164,8 @@ export interface ControlProps extends FrameworkElementProps {
|
|
|
158
164
|
/**
|
|
159
165
|
* Gets or sets the horizontal alignment of the control's content. One of the HorizontalAlignment values. The default is Left.
|
|
160
166
|
*
|
|
167
|
+
* Also settable in CSS as `justify-content`
|
|
168
|
+
*
|
|
161
169
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.horizontalcontentalignment
|
|
162
170
|
*/
|
|
163
171
|
horizontalContentAlignment?: EnumInput<typeof HorizontalAlignment>;
|
|
@@ -188,6 +196,8 @@ export interface ControlProps extends FrameworkElementProps {
|
|
|
188
196
|
/**
|
|
189
197
|
* Gets or sets the padding inside a control. The amount of space between the content of a Control and its Margin or Border. The default is a Thickness with values of 0 on all four sides.
|
|
190
198
|
*
|
|
199
|
+
* Also settable in CSS as `padding`
|
|
200
|
+
*
|
|
191
201
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.padding
|
|
192
202
|
*/
|
|
193
203
|
padding?: ThicknessInput;
|
|
@@ -214,6 +224,8 @@ export interface ControlProps extends FrameworkElementProps {
|
|
|
214
224
|
/**
|
|
215
225
|
* Gets or sets the vertical alignment of the control's content. One of the VerticalAlignment values. The default is Top.
|
|
216
226
|
*
|
|
227
|
+
* Also settable in CSS as `align-items`
|
|
228
|
+
*
|
|
217
229
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.control.verticalcontentalignment
|
|
218
230
|
*/
|
|
219
231
|
verticalContentAlignment?: EnumInput<typeof VerticalAlignment>;
|
|
@@ -24,12 +24,16 @@ export interface EllipseGeometryProps extends GeometryProps {
|
|
|
24
24
|
/**
|
|
25
25
|
* Gets or sets the x-radius value of the EllipseGeometry.
|
|
26
26
|
*
|
|
27
|
+
* Also settable in CSS as `rx`
|
|
28
|
+
*
|
|
27
29
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.ellipsegeometry.radiusx
|
|
28
30
|
*/
|
|
29
31
|
radiusX?: number;
|
|
30
32
|
/**
|
|
31
33
|
* Gets or sets the y-radius value of the EllipseGeometry.
|
|
32
34
|
*
|
|
35
|
+
* Also settable in CSS as `ry`
|
|
36
|
+
*
|
|
33
37
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.ellipsegeometry.radiusy
|
|
34
38
|
*/
|
|
35
39
|
radiusY?: number;
|
|
@@ -75,6 +75,8 @@ export interface FrameworkElementProps extends UIElementProps {
|
|
|
75
75
|
/**
|
|
76
76
|
* Gets or sets the outer margin of the focus visual for a FrameworkElement. Provides margin values for the focus visual. The default is a Thickness with all properties (dimensions) equal to 0. A different runtime default is often provided by individual control templates.
|
|
77
77
|
*
|
|
78
|
+
* Also settable in CSS as `outline-offset`
|
|
79
|
+
*
|
|
78
80
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualmargin
|
|
79
81
|
*/
|
|
80
82
|
focusVisualMargin?: ThicknessInput;
|
|
@@ -83,12 +85,16 @@ export interface FrameworkElementProps extends UIElementProps {
|
|
|
83
85
|
*
|
|
84
86
|
* Accepts A color as text, one of WinUI's theme brushes (`ThemeBrush`), an app's own (`AppBrushes`), or a brush.
|
|
85
87
|
*
|
|
88
|
+
* Also settable in CSS as `outline-color`
|
|
89
|
+
*
|
|
86
90
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualprimarybrush
|
|
87
91
|
*/
|
|
88
92
|
focusVisualPrimaryBrush?: BrushInput | Snippet;
|
|
89
93
|
/**
|
|
90
94
|
* Gets or sets the thickness of the outer border of a HighVisibility or Reveal focus visual for a FrameworkElement.
|
|
91
95
|
*
|
|
96
|
+
* Also settable in CSS as `outline-width`
|
|
97
|
+
*
|
|
92
98
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualprimarythickness
|
|
93
99
|
*/
|
|
94
100
|
focusVisualPrimaryThickness?: ThicknessInput;
|
|
@@ -103,6 +109,8 @@ export interface FrameworkElementProps extends UIElementProps {
|
|
|
103
109
|
/**
|
|
104
110
|
* Gets or sets the thickness of the inner border of a HighVisibility or Reveal focus visual for a FrameworkElement. The thickness of the inner border of a HighVisibility focus visual. The default value is 1.
|
|
105
111
|
*
|
|
112
|
+
* Also settable in CSS as `outline-width`
|
|
113
|
+
*
|
|
106
114
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.focusvisualsecondarythickness
|
|
107
115
|
*/
|
|
108
116
|
focusVisualSecondaryThickness?: ThicknessInput;
|
|
@@ -131,6 +139,8 @@ export interface FrameworkElementProps extends UIElementProps {
|
|
|
131
139
|
/**
|
|
132
140
|
* Gets or sets the outer margin of a FrameworkElement. Provides margin values for the object. The default value is a default Thickness with all properties (dimensions) equal to 0.
|
|
133
141
|
*
|
|
142
|
+
* Also settable in CSS as `margin`
|
|
143
|
+
*
|
|
134
144
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.frameworkelement.margin
|
|
135
145
|
*/
|
|
136
146
|
margin?: ThicknessInput;
|
|
@@ -26,6 +26,8 @@ export interface GlyphsProps extends FrameworkElementProps {
|
|
|
26
26
|
*
|
|
27
27
|
* Accepts A color as text, one of WinUI's theme brushes (`ThemeBrush`), an app's own (`AppBrushes`), or a brush.
|
|
28
28
|
*
|
|
29
|
+
* Also settable in CSS as `fill`
|
|
30
|
+
*
|
|
29
31
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.glyphs.fill
|
|
30
32
|
*/
|
|
31
33
|
fill?: BrushInput | Snippet;
|
|
@@ -42,6 +42,8 @@ export interface GridProps extends PanelProps, GridExtras {
|
|
|
42
42
|
/**
|
|
43
43
|
* Gets or sets the border thickness of the panel. The border thickness of the panel, as a Thickness value.
|
|
44
44
|
*
|
|
45
|
+
* Also settable in CSS as `border-width`
|
|
46
|
+
*
|
|
45
47
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.borderthickness
|
|
46
48
|
*/
|
|
47
49
|
borderThickness?: ThicknessInput;
|
|
@@ -54,12 +56,16 @@ export interface GridProps extends PanelProps, GridExtras {
|
|
|
54
56
|
/**
|
|
55
57
|
* Gets or sets the radius for the corners of the panel's border. The degree to which the corners are rounded, expressed as values of the CornerRadius structure.
|
|
56
58
|
*
|
|
59
|
+
* Also settable in CSS as `border-radius`
|
|
60
|
+
*
|
|
57
61
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.cornerradius
|
|
58
62
|
*/
|
|
59
63
|
cornerRadius?: CornerRadiusInput;
|
|
60
64
|
/**
|
|
61
65
|
* Gets or sets the distance between the border and its child object. The dimensions of the space between the border and its child as a Thickness value. Thickness is a structure that stores dimension values using pixel measures.
|
|
62
66
|
*
|
|
67
|
+
* Also settable in CSS as `padding`
|
|
68
|
+
*
|
|
63
69
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.grid.padding
|
|
64
70
|
*/
|
|
65
71
|
padding?: ThicknessInput;
|
|
@@ -38,6 +38,8 @@ export interface HyperlinkProps extends SpanProps {
|
|
|
38
38
|
/**
|
|
39
39
|
* Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key. A value that determines the order of logical navigation for a device. The default value is MaxValue with the tab order based on declaration order in the XAML or child collections.
|
|
40
40
|
*
|
|
41
|
+
* Also settable in CSS as `tab-index`
|
|
42
|
+
*
|
|
41
43
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.hyperlink.tabindex
|
|
42
44
|
*/
|
|
43
45
|
tabIndex?: number;
|
|
@@ -38,6 +38,8 @@ export interface ImageProps extends FrameworkElementProps {
|
|
|
38
38
|
/**
|
|
39
39
|
* Gets or sets a value that describes how an Image should be stretched to fill the destination rectangle. A value of the Stretch enumeration that specifies how the source image is rendered, if the Height and/or Width of the Image are not explicitly specified. The default value is Uniform.
|
|
40
40
|
*
|
|
41
|
+
* Also settable in CSS as `object-fit`
|
|
42
|
+
*
|
|
41
43
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.image.stretch
|
|
42
44
|
*/
|
|
43
45
|
stretch?: EnumInput<typeof Stretch>;
|
|
@@ -57,6 +57,8 @@ export interface ItemsPresenterProps extends FrameworkElementProps {
|
|
|
57
57
|
/**
|
|
58
58
|
* Gets or sets the distance between the ItemsPresenter and its child objects. The dimensions of the space between the presenter and its children as a Thickness value. Thickness is a structure that stores dimension values using pixel measures.
|
|
59
59
|
*
|
|
60
|
+
* Also settable in CSS as `padding`
|
|
61
|
+
*
|
|
60
62
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.itemspresenter.padding
|
|
61
63
|
*/
|
|
62
64
|
padding?: ThicknessInput;
|
|
@@ -28,6 +28,8 @@ export interface LinedFlowLayoutProps extends VirtualizingLayoutProps {
|
|
|
28
28
|
/**
|
|
29
29
|
* Gets or sets the lines fixed height. The common height of all lines, and therefore of all items. The default is Double.NaN.
|
|
30
30
|
*
|
|
31
|
+
* Also settable in CSS as `line-height`
|
|
32
|
+
*
|
|
31
33
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.linedflowlayout.lineheight
|
|
32
34
|
*/
|
|
33
35
|
lineHeight?: number;
|
|
@@ -50,6 +50,8 @@ export interface MediaPlayerElementProps extends ControlProps {
|
|
|
50
50
|
/**
|
|
51
51
|
* Gets or sets a value that describes how an MediaPlayerElement should be stretched to fill the destination rectangle. A value of the Stretch enumeration that specifies how the source visual media is rendered. The default value is Uniform.
|
|
52
52
|
*
|
|
53
|
+
* Also settable in CSS as `object-fit`
|
|
54
|
+
*
|
|
53
55
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement.stretch
|
|
54
56
|
*/
|
|
55
57
|
stretch?: EnumInput<typeof Stretch>;
|
|
@@ -28,6 +28,8 @@ export interface MediaPlayerPresenterProps extends FrameworkElementProps {
|
|
|
28
28
|
/**
|
|
29
29
|
* Gets or sets a value that describes how an MediaPlayerPresenter should be stretched to fill the destination rectangle. A value of the Stretch enumeration that specifies how the source visual media is rendered. The default value is Uniform.
|
|
30
30
|
*
|
|
31
|
+
* Also settable in CSS as `object-fit`
|
|
32
|
+
*
|
|
31
33
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerpresenter.stretch
|
|
32
34
|
*/
|
|
33
35
|
stretch?: EnumInput<typeof Stretch>;
|
|
@@ -55,12 +55,16 @@ export interface RadialGradientBrushProps extends XamlCompositionBrushBaseProps
|
|
|
55
55
|
/**
|
|
56
56
|
* Gets or sets the X axis radius of the ellipse that contains the gradient. The X axis radius of the ellipse that contains the gradient. The default is 0.5.
|
|
57
57
|
*
|
|
58
|
+
* Also settable in CSS as `rx`
|
|
59
|
+
*
|
|
58
60
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.radialgradientbrush.radiusx
|
|
59
61
|
*/
|
|
60
62
|
radiusX?: number;
|
|
61
63
|
/**
|
|
62
64
|
* Gets or sets the Y axis radius of the ellipse that contains the gradient. The Y axis radius of the ellipse that contains the gradient. The default is 0.5.
|
|
63
65
|
*
|
|
66
|
+
* Also settable in CSS as `ry`
|
|
67
|
+
*
|
|
64
68
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.radialgradientbrush.radiusy
|
|
65
69
|
*/
|
|
66
70
|
radiusY?: number;
|
|
@@ -15,12 +15,16 @@ export interface RectangleProps extends ShapeProps {
|
|
|
15
15
|
/**
|
|
16
16
|
* Gets or sets the x-axis radius of the ellipse that is used to round the corners of the rectangle.
|
|
17
17
|
*
|
|
18
|
+
* Also settable in CSS as `rx`
|
|
19
|
+
*
|
|
18
20
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.rectangle.radiusx
|
|
19
21
|
*/
|
|
20
22
|
radiusX?: number;
|
|
21
23
|
/**
|
|
22
24
|
* Gets or sets the y-axis radius of the ellipse that is used to round the corners of the rectangle.
|
|
23
25
|
*
|
|
26
|
+
* Also settable in CSS as `ry`
|
|
27
|
+
*
|
|
24
28
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.rectangle.radiusy
|
|
25
29
|
*/
|
|
26
30
|
radiusY?: number;
|
|
@@ -40,18 +40,24 @@ export interface RelativePanelProps extends PanelProps {
|
|
|
40
40
|
/**
|
|
41
41
|
* Gets or sets the border thickness of the panel. The border thickness of the panel, as a Thickness value.
|
|
42
42
|
*
|
|
43
|
+
* Also settable in CSS as `border-width`
|
|
44
|
+
*
|
|
43
45
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.borderthickness
|
|
44
46
|
*/
|
|
45
47
|
borderThickness?: ThicknessInput;
|
|
46
48
|
/**
|
|
47
49
|
* Gets or sets the radius for the corners of the panel's border. The degree to which the corners are rounded, expressed as values of the CornerRadius structure.
|
|
48
50
|
*
|
|
51
|
+
* Also settable in CSS as `border-radius`
|
|
52
|
+
*
|
|
49
53
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.cornerradius
|
|
50
54
|
*/
|
|
51
55
|
cornerRadius?: CornerRadiusInput;
|
|
52
56
|
/**
|
|
53
57
|
* Gets or sets the distance between the border and its child object. The dimensions of the space between the border and its child as a Thickness value. Thickness is a structure that stores dimension values using pixel measures.
|
|
54
58
|
*
|
|
59
|
+
* Also settable in CSS as `padding`
|
|
60
|
+
*
|
|
55
61
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.relativepanel.padding
|
|
56
62
|
*/
|
|
57
63
|
padding?: ThicknessInput;
|
|
@@ -175,7 +175,7 @@ export interface RichEditBoxProps extends ControlProps {
|
|
|
175
175
|
/**
|
|
176
176
|
* Gets or sets a value that indicates how text wrapping occurs if a line of text extends beyond the available width of the RichEditBox. One of the TextWrapping enumeration values that specifies whether text is wrapped. The default is Wrap.
|
|
177
177
|
*
|
|
178
|
-
* Also settable in CSS as `
|
|
178
|
+
* Also settable in CSS as `text-wrap`
|
|
179
179
|
*
|
|
180
180
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richeditbox.textwrapping
|
|
181
181
|
*/
|
|
@@ -85,6 +85,8 @@ export interface RichTextBlockProps extends FrameworkElementProps {
|
|
|
85
85
|
/**
|
|
86
86
|
* Gets or sets the font stretch for the text content in this element. The requested font stretch, as a FontStretch constant. The default is Normal.
|
|
87
87
|
*
|
|
88
|
+
* Also settable in CSS as `font-stretch`
|
|
89
|
+
*
|
|
88
90
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblock.fontstretch
|
|
89
91
|
*/
|
|
90
92
|
fontStretch?: EnumInput<typeof FontStretch>;
|
|
@@ -137,24 +139,32 @@ export interface RichTextBlockProps extends FrameworkElementProps {
|
|
|
137
139
|
/**
|
|
138
140
|
* Gets or sets a value that determines whether text content of the RichTextBlock can be selected for clipboard or drag purposes, or for UI styling changes that indicate selected text.
|
|
139
141
|
*
|
|
142
|
+
* Also settable in CSS as `user-select`
|
|
143
|
+
*
|
|
140
144
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblock.istextselectionenabled
|
|
141
145
|
*/
|
|
142
146
|
isTextSelectionEnabled?: boolean;
|
|
143
147
|
/**
|
|
144
148
|
* Gets or sets the height of each line of content. The height of each line in pixels. A value of 0 indicates that the line height is determined automatically from the current font characteristics. The default is 0.
|
|
145
149
|
*
|
|
150
|
+
* Also settable in CSS as `line-height`
|
|
151
|
+
*
|
|
146
152
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblock.lineheight
|
|
147
153
|
*/
|
|
148
154
|
lineHeight?: number;
|
|
149
155
|
/**
|
|
150
156
|
* Gets or sets a value that indicates how a line box is determined for each line of text in the RichTextBlock.
|
|
151
157
|
*
|
|
158
|
+
* Also settable in CSS as `line-height`
|
|
159
|
+
*
|
|
152
160
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblock.linestackingstrategy
|
|
153
161
|
*/
|
|
154
162
|
lineStackingStrategy?: EnumInput<typeof LineStackingStrategy>;
|
|
155
163
|
/**
|
|
156
164
|
* Gets or sets the maximum lines of text shown in the RichTextBlock. The maximum lines of text shown in the RichTextBlock. The default is 0, which is a special value that represents "Auto" behavior. The value cannot be negative.
|
|
157
165
|
*
|
|
166
|
+
* Also settable in CSS as `line-clamp`
|
|
167
|
+
*
|
|
158
168
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblock.maxlines
|
|
159
169
|
*/
|
|
160
170
|
maxLines?: number;
|
|
@@ -173,6 +183,8 @@ export interface RichTextBlockProps extends FrameworkElementProps {
|
|
|
173
183
|
/**
|
|
174
184
|
* Gets or sets a value that indicates the thickness of padding space between the boundaries of the content area and the content displayed by a RichTextBlock. A Thickness structure that specifies the amount of padding to apply.
|
|
175
185
|
*
|
|
186
|
+
* Also settable in CSS as `padding`
|
|
187
|
+
*
|
|
176
188
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblock.padding
|
|
177
189
|
*/
|
|
178
190
|
padding?: ThicknessInput;
|
|
@@ -199,7 +211,7 @@ export interface RichTextBlockProps extends FrameworkElementProps {
|
|
|
199
211
|
/**
|
|
200
212
|
* Gets or sets a value that indicates what decorations are applied to the text. A value of the enumeration. The default is None.
|
|
201
213
|
*
|
|
202
|
-
* Also settable in CSS as `text-decoration
|
|
214
|
+
* Also settable in CSS as `text-decoration`
|
|
203
215
|
*
|
|
204
216
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblock.textdecorations
|
|
205
217
|
*/
|
|
@@ -233,7 +245,7 @@ export interface RichTextBlockProps extends FrameworkElementProps {
|
|
|
233
245
|
/**
|
|
234
246
|
* Gets or sets a value that indicates whether text wrapping occurs if a line of text extends beyond the available width of the RichTextBlock. One of the TextWrapping enumeration values that specifies whether text is wrapped. The default is Wrap.
|
|
235
247
|
*
|
|
236
|
-
* Also settable in CSS as `
|
|
248
|
+
* Also settable in CSS as `text-wrap`
|
|
237
249
|
*
|
|
238
250
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblock.textwrapping
|
|
239
251
|
*/
|
|
@@ -23,6 +23,8 @@ export interface RichTextBlockOverflowProps extends FrameworkElementProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* Gets or sets the maximum lines of text shown in the RichTextBlockOverflow. The maximum lines of text shown in the RichTextBlockOverflow. The default is 0, which is a special value that represents "Auto" behavior. The value cannot be negative.
|
|
25
25
|
*
|
|
26
|
+
* Also settable in CSS as `line-clamp`
|
|
27
|
+
*
|
|
26
28
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblockoverflow.maxlines
|
|
27
29
|
*/
|
|
28
30
|
maxLines?: number;
|
|
@@ -35,6 +37,8 @@ export interface RichTextBlockOverflowProps extends FrameworkElementProps {
|
|
|
35
37
|
/**
|
|
36
38
|
* Gets or sets a value that indicates the thickness of padding space between the boundaries of the content area and the content displayed by a RichTextBlockOverflow. A Thickness structure that specifies the amount of padding to apply.
|
|
37
39
|
*
|
|
40
|
+
* Also settable in CSS as `padding`
|
|
41
|
+
*
|
|
38
42
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.richtextblockoverflow.padding
|
|
39
43
|
*/
|
|
40
44
|
padding?: ThicknessInput;
|
|
@@ -81,6 +81,8 @@ export interface ScrollViewProps extends ControlProps {
|
|
|
81
81
|
/**
|
|
82
82
|
* Gets or sets a value that indicates whether a scroll controller should be displayed for the horizontal scrolling direction.
|
|
83
83
|
*
|
|
84
|
+
* Also settable in CSS as `overflow-x`
|
|
85
|
+
*
|
|
84
86
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.horizontalscrollbarvisibility
|
|
85
87
|
*/
|
|
86
88
|
horizontalScrollBarVisibility?: EnumInput<typeof ScrollingScrollBarVisibility>;
|
|
@@ -129,6 +131,8 @@ export interface ScrollViewProps extends ControlProps {
|
|
|
129
131
|
/**
|
|
130
132
|
* Gets or sets a value that indicates whether a scroll controller should be displayed for the vertical scrolling direction.
|
|
131
133
|
*
|
|
134
|
+
* Also settable in CSS as `overflow-y`
|
|
135
|
+
*
|
|
132
136
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollview.verticalscrollbarvisibility
|
|
133
137
|
*/
|
|
134
138
|
verticalScrollBarVisibility?: EnumInput<typeof ScrollingScrollBarVisibility>;
|
|
@@ -60,6 +60,8 @@ export interface ScrollViewerProps extends ContentControlProps {
|
|
|
60
60
|
/**
|
|
61
61
|
* Gets or sets a value that indicates whether a horizontal ScrollBar should be displayed. A ScrollBarVisibility value that indicates whether a horizontal ScrollBar should be displayed. The default value is Disabled.
|
|
62
62
|
*
|
|
63
|
+
* Also settable in CSS as `overflow-x`
|
|
64
|
+
*
|
|
63
65
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.horizontalscrollbarvisibility
|
|
64
66
|
*/
|
|
65
67
|
horizontalScrollBarVisibility?: EnumInput<typeof ScrollBarVisibility>;
|
|
@@ -174,6 +176,8 @@ export interface ScrollViewerProps extends ContentControlProps {
|
|
|
174
176
|
/**
|
|
175
177
|
* Gets or sets a value that indicates whether a vertical ScrollBar should be displayed. A ScrollBarVisibility value that indicates whether a vertical ScrollBar should be displayed. The default value is Visible.
|
|
176
178
|
*
|
|
179
|
+
* Also settable in CSS as `overflow-y`
|
|
180
|
+
*
|
|
177
181
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.scrollviewer.verticalscrollbarvisibility
|
|
178
182
|
*/
|
|
179
183
|
verticalScrollBarVisibility?: EnumInput<typeof ScrollBarVisibility>;
|
|
@@ -20,12 +20,16 @@ export interface ShapeProps extends FrameworkElementProps {
|
|
|
20
20
|
*
|
|
21
21
|
* Accepts A color as text, one of WinUI's theme brushes (`ThemeBrush`), an app's own (`AppBrushes`), or a brush.
|
|
22
22
|
*
|
|
23
|
+
* Also settable in CSS as `fill`
|
|
24
|
+
*
|
|
23
25
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.fill
|
|
24
26
|
*/
|
|
25
27
|
fill?: BrushInput | Snippet;
|
|
26
28
|
/**
|
|
27
29
|
* Gets or sets a Stretch enumeration value that describes how the shape fills its allocated space. One of the Stretch enumeration values. The default value at run time depends on the type of Shape.
|
|
28
30
|
*
|
|
31
|
+
* Also settable in CSS as `object-fit`
|
|
32
|
+
*
|
|
29
33
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.stretch
|
|
30
34
|
*/
|
|
31
35
|
stretch?: EnumInput<typeof Stretch>;
|
|
@@ -44,6 +48,8 @@ export interface ShapeProps extends FrameworkElementProps {
|
|
|
44
48
|
*
|
|
45
49
|
* Accepts A list of numbers (a dash pattern): numbers or text, or a `DoubleCollection`.
|
|
46
50
|
*
|
|
51
|
+
* Also settable in CSS as `stroke-dasharray`
|
|
52
|
+
*
|
|
47
53
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokedasharray
|
|
48
54
|
*/
|
|
49
55
|
strokeDashArray?: DoubleCollectionInput;
|
|
@@ -56,6 +62,8 @@ export interface ShapeProps extends FrameworkElementProps {
|
|
|
56
62
|
/**
|
|
57
63
|
* Gets or sets a value that specifies the distance within the dash pattern where a dash begins. A value that represents the distance within the dash pattern where a dash begins. The default value is 0.
|
|
58
64
|
*
|
|
65
|
+
* Also settable in CSS as `stroke-dashoffset`
|
|
66
|
+
*
|
|
59
67
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokedashoffset
|
|
60
68
|
*/
|
|
61
69
|
strokeDashOffset?: number;
|
|
@@ -74,6 +82,8 @@ export interface ShapeProps extends FrameworkElementProps {
|
|
|
74
82
|
/**
|
|
75
83
|
* Gets or sets a limit on the ratio of the miter length to half the StrokeThickness of a Shape element. The limit on the ratio of the miter length to the StrokeThickness of a Shape element. This value is always a positive number that is greater than or equal to 1.
|
|
76
84
|
*
|
|
85
|
+
* Also settable in CSS as `stroke-miterlimit`
|
|
86
|
+
*
|
|
77
87
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.shapes.shape.strokemiterlimit
|
|
78
88
|
*/
|
|
79
89
|
strokeMiterLimit?: number;
|
|
@@ -46,12 +46,16 @@ export interface StackPanelProps extends PanelProps {
|
|
|
46
46
|
/**
|
|
47
47
|
* Gets or sets the border thickness of the panel. The border thickness of the panel, as a Thickness value.
|
|
48
48
|
*
|
|
49
|
+
* Also settable in CSS as `border-width`
|
|
50
|
+
*
|
|
49
51
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.borderthickness
|
|
50
52
|
*/
|
|
51
53
|
borderThickness?: ThicknessInput;
|
|
52
54
|
/**
|
|
53
55
|
* Gets or sets the radius for the corners of the panel's border. The degree to which the corners are rounded, expressed as values of the CornerRadius structure.
|
|
54
56
|
*
|
|
57
|
+
* Also settable in CSS as `border-radius`
|
|
58
|
+
*
|
|
55
59
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.cornerradius
|
|
56
60
|
*/
|
|
57
61
|
cornerRadius?: CornerRadiusInput;
|
|
@@ -66,6 +70,8 @@ export interface StackPanelProps extends PanelProps {
|
|
|
66
70
|
/**
|
|
67
71
|
* Gets or sets the distance between the border and its child object. The dimensions of the space between the border and its child as a Thickness value. Thickness is a structure that stores dimension values using pixel measures.
|
|
68
72
|
*
|
|
73
|
+
* Also settable in CSS as `padding`
|
|
74
|
+
*
|
|
69
75
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.stackpanel.padding
|
|
70
76
|
*/
|
|
71
77
|
padding?: ThicknessInput;
|
|
@@ -85,6 +85,8 @@ export interface TextBlockProps extends FrameworkElementProps {
|
|
|
85
85
|
/**
|
|
86
86
|
* Gets or sets the font stretch for the text content in this element. The requested font stretch, as a FontStretch constant. The default is Normal.
|
|
87
87
|
*
|
|
88
|
+
* Also settable in CSS as `font-stretch`
|
|
89
|
+
*
|
|
88
90
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.fontstretch
|
|
89
91
|
*/
|
|
90
92
|
fontStretch?: EnumInput<typeof FontStretch>;
|
|
@@ -137,24 +139,32 @@ export interface TextBlockProps extends FrameworkElementProps {
|
|
|
137
139
|
/**
|
|
138
140
|
* Gets or sets a value that indicates whether text selection is enabled in the TextBlock, either through user action or calling selection-related API.
|
|
139
141
|
*
|
|
142
|
+
* Also settable in CSS as `user-select`
|
|
143
|
+
*
|
|
140
144
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.istextselectionenabled
|
|
141
145
|
*/
|
|
142
146
|
isTextSelectionEnabled?: boolean;
|
|
143
147
|
/**
|
|
144
148
|
* Gets or sets the height of each line of content. The height of each line in pixels. A value of 0 indicates that the line height is determined automatically from the current font characteristics. The default is 0.
|
|
145
149
|
*
|
|
150
|
+
* Also settable in CSS as `line-height`
|
|
151
|
+
*
|
|
146
152
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.lineheight
|
|
147
153
|
*/
|
|
148
154
|
lineHeight?: number;
|
|
149
155
|
/**
|
|
150
156
|
* Gets or sets a value that indicates how a line box is determined for each line of text in the TextBlock.
|
|
151
157
|
*
|
|
158
|
+
* Also settable in CSS as `line-height`
|
|
159
|
+
*
|
|
152
160
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.linestackingstrategy
|
|
153
161
|
*/
|
|
154
162
|
lineStackingStrategy?: EnumInput<typeof LineStackingStrategy>;
|
|
155
163
|
/**
|
|
156
164
|
* Gets or sets the maximum number of lines of text shown in the TextBlock. The maximum number of lines of text shown in the TextBlock. The default is 0, which is a special value that represents "Auto" behavior. The value cannot be negative.
|
|
157
165
|
*
|
|
166
|
+
* Also settable in CSS as `line-clamp`
|
|
167
|
+
*
|
|
158
168
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.maxlines
|
|
159
169
|
*/
|
|
160
170
|
maxLines?: number;
|
|
@@ -167,6 +177,8 @@ export interface TextBlockProps extends FrameworkElementProps {
|
|
|
167
177
|
/**
|
|
168
178
|
* Gets or sets a value that indicates the thickness of padding space between the boundaries of the content area and the content displayed by a TextBlock. A Thickness structure that specifies the amount of padding to apply.
|
|
169
179
|
*
|
|
180
|
+
* Also settable in CSS as `padding`
|
|
181
|
+
*
|
|
170
182
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.padding
|
|
171
183
|
*/
|
|
172
184
|
padding?: ThicknessInput;
|
|
@@ -199,7 +211,7 @@ export interface TextBlockProps extends FrameworkElementProps {
|
|
|
199
211
|
/**
|
|
200
212
|
* Gets or sets a value that indicates what decorations are applied to the text. A value of the enumeration. The default is None.
|
|
201
213
|
*
|
|
202
|
-
* Also settable in CSS as `text-decoration
|
|
214
|
+
* Also settable in CSS as `text-decoration`
|
|
203
215
|
*
|
|
204
216
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textdecorations
|
|
205
217
|
*/
|
|
@@ -227,7 +239,7 @@ export interface TextBlockProps extends FrameworkElementProps {
|
|
|
227
239
|
/**
|
|
228
240
|
* Gets or sets how the TextBlock wraps text. A value that indicates how the TextBlock wraps text. The default is NoWrap.
|
|
229
241
|
*
|
|
230
|
-
* Also settable in CSS as `
|
|
242
|
+
* Also settable in CSS as `text-wrap`
|
|
231
243
|
*
|
|
232
244
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textblock.textwrapping
|
|
233
245
|
*/
|
|
@@ -194,7 +194,7 @@ export interface TextBoxProps extends ControlProps {
|
|
|
194
194
|
/**
|
|
195
195
|
* Gets or sets how line breaking occurs if a line of text extends beyond the available width of the text box. One of the TextWrapping values. The default is NoWrap.
|
|
196
196
|
*
|
|
197
|
-
* Also settable in CSS as `
|
|
197
|
+
* Also settable in CSS as `text-wrap`
|
|
198
198
|
*
|
|
199
199
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.textbox.textwrapping
|
|
200
200
|
*/
|
|
@@ -73,6 +73,8 @@ export interface TextElementProps {
|
|
|
73
73
|
/**
|
|
74
74
|
* Gets or sets the glyph width of the font in a family to select. One of the FontStretch constant names, specifying the desired font stretch. The default is Normal.
|
|
75
75
|
*
|
|
76
|
+
* Also settable in CSS as `font-stretch`
|
|
77
|
+
*
|
|
76
78
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.fontstretch
|
|
77
79
|
*/
|
|
78
80
|
fontStretch?: EnumInput<typeof FontStretch>;
|
|
@@ -143,7 +145,7 @@ export interface TextElementProps {
|
|
|
143
145
|
/**
|
|
144
146
|
* Gets or sets a value that indicates what decorations are applied to the text. A value of the enumeration. The default is None.
|
|
145
147
|
*
|
|
146
|
-
* Also settable in CSS as `text-decoration
|
|
148
|
+
* Also settable in CSS as `text-decoration`
|
|
147
149
|
*
|
|
148
150
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.documents.textelement.textdecorations
|
|
149
151
|
*/
|
|
@@ -19,6 +19,8 @@ export interface TickBarProps extends FrameworkElementProps {
|
|
|
19
19
|
*
|
|
20
20
|
* Accepts A color as text, one of WinUI's theme brushes (`ThemeBrush`), an app's own (`AppBrushes`), or a brush.
|
|
21
21
|
*
|
|
22
|
+
* Also settable in CSS as `fill`
|
|
23
|
+
*
|
|
22
24
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.primitives.tickbar.fill
|
|
23
25
|
*/
|
|
24
26
|
fill?: BrushInput | Snippet;
|
|
@@ -28,6 +28,8 @@ export interface TileBrushProps extends BrushProps {
|
|
|
28
28
|
/**
|
|
29
29
|
* Gets or sets a value that specifies how the content of this TileBrush stretches to fit its tiles. A value that specifies how this TileBrush content is projected onto its base tile. The default value is Fill.
|
|
30
30
|
*
|
|
31
|
+
* Also settable in CSS as `object-fit`
|
|
32
|
+
*
|
|
31
33
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.tilebrush.stretch
|
|
32
34
|
*/
|
|
33
35
|
stretch?: EnumInput<typeof Stretch>;
|
|
@@ -651,6 +651,8 @@ export interface UIElementProps {
|
|
|
651
651
|
/**
|
|
652
652
|
* Gets or sets transform information that affects the rendering position of a UIElement. Describes the specifics of the desired render transform. The default value is null.
|
|
653
653
|
*
|
|
654
|
+
* Also settable in CSS as `transform`
|
|
655
|
+
*
|
|
654
656
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.rendertransform
|
|
655
657
|
*/
|
|
656
658
|
renderTransform?: UIElement["renderTransform"] | Snippet;
|
|
@@ -699,6 +701,8 @@ export interface UIElementProps {
|
|
|
699
701
|
/**
|
|
700
702
|
* Gets or sets the shadow effect cast by the element.
|
|
701
703
|
*
|
|
704
|
+
* Also settable in CSS as `box-shadow`
|
|
705
|
+
*
|
|
702
706
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.shadow
|
|
703
707
|
*/
|
|
704
708
|
shadow?: UIElement["shadow"] | Snippet;
|
|
@@ -711,6 +715,8 @@ export interface UIElementProps {
|
|
|
711
715
|
/**
|
|
712
716
|
* Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls using the _Tab_ key. A value that determines the order of logical navigation for a device. The default value is MaxValue with the tab order based on declaration order in the XAML or child collections.
|
|
713
717
|
*
|
|
718
|
+
* Also settable in CSS as `tab-index`
|
|
719
|
+
*
|
|
714
720
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.tabindex
|
|
715
721
|
*/
|
|
716
722
|
tabIndex?: number;
|
|
@@ -755,7 +761,7 @@ export interface UIElementProps {
|
|
|
755
761
|
/**
|
|
756
762
|
* Gets or sets the visibility of a UIElement. A UIElement that is not visible is not rendered and does not communicate its desired size to layout. A value of the enumeration. The default value is Visible.
|
|
757
763
|
*
|
|
758
|
-
* Also settable in CSS as `
|
|
764
|
+
* Also settable in CSS as `visibility`
|
|
759
765
|
*
|
|
760
766
|
* @see https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.visibility
|
|
761
767
|
*/
|