You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: windows.ui.composition/layervisual.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,8 @@ A LayerVisual is a special input type that can be used to select a tree of visua
28
28
| 1709 | 16299 | Shadow |
29
29
30
30
## -examples
31
-
Apply Effects to a LayerVisual
31
+
32
+
This example shows how to apply a [GaussianBlurEffect](https://microsoft.github.io/Win2D/WinUI3/html/T_Microsoft_Graphics_Canvas_Effects_GaussianBlurEffect.htm) to a LayerVisual.
:::image type="content" source="images/layer-visual-shadow.png" alt-text="A red square overlapping a blue square with a shadow applied to each square.":::
The effect to be applied to the flattened representation of the children of a [LayerVisual](layervisual.md).
14
-
15
13
14
+
Gets or sets the effect to be applied to the flattened representation of the children of a [LayerVisual](layervisual.md).
16
15
17
16
## -property-value
17
+
18
18
The effect to be applied to the flattened representation of the children of a [LayerVisual](layervisual.md).
19
19
20
20
## -remarks
@@ -23,4 +23,57 @@ This CompositionEffectBrush cannot take a [CompositionBackdropBrush](composition
23
23
24
24
## -examples
25
25
26
+
This example shows how to apply a [GaussianBlurEffect](https://microsoft.github.io/Win2D/WinUI3/html/T_Microsoft_Graphics_Canvas_Effects_GaussianBlurEffect.htm) to a LayerVisual.
:::image type="content" source="images/layer-visual-shadow.png" alt-text="A red square overlapping a blue square with a shadow applied to each square.":::
Copy file name to clipboardExpand all lines: windows.ui.core/corewindow_bounds.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,22 @@ public Windows.Foundation.Rect Bounds { get; }
10
10
# Windows.UI.Core.CoreWindow.Bounds
11
11
12
12
## -description
13
-
Gets the bounding rectangle of the window.
13
+
14
+
Gets a [Rect](../windows.foundation/rect.md) value that contains the origin, height, and width of the client area of the window, in device-independent pixels (DIPs).
14
15
15
16
## -property-value
16
-
The bounding rectangle of the window, in device-independent pixels (DIPs).
17
+
18
+
A value that reports the origin, height, and width of the client area of the application window.
17
19
18
20
## -remarks
21
+
22
+
The origin of the `Rect` is relative to the system window that includes both the _client_ and _non-client_ areas.
23
+
19
24
To convert from DIPs to physical pixels (and back), use these equations (where DPI is the dots per inch value for the screen):
<dl><dt>horizontalAlignmentMemberName</dt><dd>horizontalAlignmentMemberNameA named constant of the HorizontalAlignment enumeration, such as Stretch.</dd>
25
25
</dl>
26
+
26
27
## -property-value
27
-
One of the [HorizontalAlignment](../windows.ui.xaml/horizontalalignment.md) values. The default is **Left**.
28
+
One of the [HorizontalAlignment](../windows.ui.xaml/horizontalalignment.md) values. The default is `Center`.
28
29
29
30
## -remarks
30
-
Each control might apply this property differently based on the [Style](../windows.ui.xaml/style.md) setters for the control's implicit style, and its visual template. Also, the apparent "default value" of each individual control used in UI can be different. For example, a [Button](button.md) control starts with the value **Center**.
31
31
32
-
A value for the HorizontalContentAlignment property only affects layout behavior for a control when its template uses the HorizontalContentAlignment property as the source of a [HorizontalAlignment](../windows.ui.xaml/frameworkelement_horizontalalignment.md) value for presenters or content areas within. On other controls, setting HorizontalContentAlignment has no effect. For more info about visual templates for controls, see the reference for [Control.Template](control_template.md).
33
-
<!--link to TBW Styles and Templates overview-->
32
+
Each control might apply this property differently based on the [Style](../windows.ui.xaml/style.md) setters for the control's implicit style, and its visual template. Also, the apparent "default value" of each individual control used in UI can be different.
33
+
34
+
A value for the HorizontalContentAlignment property only affects layout behavior for a control when its template uses the HorizontalContentAlignment property as the source of a [HorizontalAlignment](../windows.ui.xaml/frameworkelement_horizontalalignment.md) value for presenters or content areas within. On other controls, setting HorizontalContentAlignment has no effect. For more info about visual templates for controls, see the reference for [Control.Template](control_template.md) and [Control templates](/windows/apps/design/style/xaml-control-templates)
34
35
35
36
## -examples
36
37
37
38
## -see-also
38
-
[VerticalContentAlignment](control_verticalcontentalignment.md), [FrameworkElement.HorizontalAlignment](../windows.ui.xaml/frameworkelement_horizontalalignment.md), [Alignment, margin, and padding](/windows/uwp/layout/alignment-margin-padding)
39
+
40
+
[VerticalContentAlignment](control_verticalcontentalignment.md), [FrameworkElement.HorizontalAlignment](../windows.ui.xaml/frameworkelement_horizontalalignment.md), [Alignment, margin, and padding](/windows/uwp/layout/alignment-margin-padding), [Control templates](/windows/apps/design/style/xaml-control-templates)
<dl><dt>verticalAlignmentValue</dt><dd>verticalAlignmentValueA named constant of the VerticalAlignment enumeration, such as Stretch.</dd>
25
25
</dl>
26
+
26
27
## -property-value
27
-
One of the [VerticalAlignment](../windows.ui.xaml/verticalalignment.md) values. The default is **Top**.
28
+
29
+
One of the [VerticalAlignment](../windows.ui.xaml/verticalalignment.md) values. The default is `Center`.
28
30
29
31
## -remarks
30
-
Each control might apply this property differently based on the [Style](../windows.ui.xaml/style.md) setters for the control's implicit style, and its visual template. Also, the apparent "default value" of each individual control used in UI can be different. For example, a [Button](button.md) control starts with the value **Center**.
31
32
32
-
A value for the VerticalContentAlignment property only affects layout behavior for a control when its template uses the VerticalContentAlignment property as the source of a [VerticalAlignment](../windows.ui.xaml/frameworkelement_verticalalignment.md) value for presenters or content areas within. On other controls, setting VerticalContentAlignment has no effect. For more info about visual templates for controls, see the reference for [Control.Template](control_template.md).
33
-
<!--link to TBW Styles and Templates overview-->
33
+
Each control might apply this property differently based on the [Style](../windows.ui.xaml/style.md) setters for the control's implicit style, and its visual template. Also, the apparent "default value" of each individual control used in UI can be different.
34
+
35
+
A value for the VerticalContentAlignment property only affects layout behavior for a control when its template uses the VerticalContentAlignment property as the source of a [VerticalAlignment](../windows.ui.xaml/frameworkelement_verticalalignment.md) value for presenters or content areas within. On other controls, setting VerticalContentAlignment has no effect. For more info about visual templates for controls, see the reference for [Control.Template](control_template.md) and [Control templates](/windows/apps/design/style/xaml-control-templates).
34
36
35
37
## -examples
36
38
37
39
## -see-also
38
-
[HorizontalContentAlignment](control_horizontalcontentalignment.md), [FrameworkElement.VerticalAlignment](../windows.ui.xaml/frameworkelement_verticalalignment.md), [Alignment, margin, and padding](/windows/uwp/layout/alignment-margin-padding)
40
+
41
+
[HorizontalContentAlignment](control_horizontalcontentalignment.md), [FrameworkElement.VerticalAlignment](../windows.ui.xaml/frameworkelement_verticalalignment.md), [Alignment, margin, and padding](/windows/uwp/layout/alignment-margin-padding), [Control templates](/windows/apps/design/style/xaml-control-templates)
Copy file name to clipboardExpand all lines: windows.ui.xaml.controls/datatemplateselector.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,12 @@ See Remarks
24
24
25
25
For more info about data templates, see the [DataTemplate](../windows.ui.xaml/datatemplate.md) class and [Item containers and templates](/windows/uwp/design/controls-and-patterns/item-containers-templates).
26
26
27
-
The base DataTemplateSelector class is not used as an object element in XAML. However, it is a common scenario to derive a custom DataTemplateSelector, map a xmlns prefix for the custom class and its namespace/assembly, and then refer to an instance of the custom class as defined in a [Resources](../windows.ui.xaml/frameworkelement_resources.md) block in XAML. This makes it possible to refer to the custom template selector class by **x:Key**, and use that reference to set the value of properties such as [ItemTemplateSelector](itemscontrol_itemtemplateselector.md) in XAML templates and visual states.
27
+
The base DataTemplateSelector class is not used as an object element in XAML. However, it is a common scenario to derive a custom DataTemplateSelector, map an `xmlns` prefix for the custom class and its namespace/assembly, and then refer to an instance of the custom class as defined in a [Resources](../windows.ui.xaml/frameworkelement_resources.md) block in XAML. This makes it possible to refer to the custom template selector class by `x:Key`, and use that reference to set the value of properties such as [ItemTemplateSelector](itemscontrol_itemtemplateselector.md) in XAML templates and visual states.
28
28
29
29
The callable methods of DataTemplateSelector are the two [SelectTemplate](datatemplateselector_selecttemplate_375443783.md) overloads. The overridable methods of DataTemplateSelector are the two [SelectTemplateCore](datatemplateselector_selecttemplatecore_402628248.md) overloads. To define an effective DataTemplateSelector subclass, provide implementations for [SelectTemplateCore(Object)](datatemplateselector_selecttemplatecore_402628248.md) and [SelectTemplateCore(Object, DependencyObject)](datatemplateselector_selecttemplatecore_711611086.md). All these methods return a [DataTemplate](../windows.ui.xaml/datatemplate.md) instance that's typically a specific choice that's appropriate for the inputs of the method that was called to obtain it.
30
30
31
31
App code typically doesn't call [SelectTemplate](datatemplateselector_selecttemplate_375443783.md) methods; the methods exists so that the infrastructure can call it while choosing the correct templates based on using a DataTemplateSelector instance from a property value such as [ItemsControl.ItemsTemplateSelector](itemscontrol_itemtemplateselector.md).
32
32
33
-
For example XAML that references a custom DataTemplateSelector as the [HeaderTemplateSelector](groupstyle_headertemplateselector.md) value, and example code that shows the overrides for [HeaderTemplateSelector](groupstyle_headertemplateselector.md) methods, see [How to group items in a list or grid](/previous-versions/windows/apps/hh780627(v=win.10)).
34
-
35
33
### Version history
36
34
37
35
| Windows version | SDK version | Value added |
@@ -42,4 +40,4 @@ For example XAML that references a custom DataTemplateSelector as the [HeaderTem
42
40
## -examples
43
41
44
42
## -see-also
45
-
[ItemTemplateSelector](itemscontrol_itemtemplateselector.md), [DataTemplate](../windows.ui.xaml/datatemplate.md), [ContentControl.ContentTemplateSelector](contentcontrol_contenttemplateselector.md), [GroupStyle.HeaderTemplateSelector](groupstyle_headertemplateselector.md), [How to group items in a list or grid](/previous-versions/windows/apps/hh780627(v=win.10)), [Adding ListView and GridView controls](/previous-versions/windows/apps/hh780618(v=win.10))
Copy file name to clipboardExpand all lines: windows.ui.xaml.controls/frame.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,5 @@ Private Sub OnNavigationFailed(sender As Object, e As NavigationFailedEventArgs)
244
244
EndSub
245
245
```
246
246
247
-
For a more detailed sample, see the [XAML Navigation sample](https://github.com/microsoft/Windows-universal-samples/tree/master/Samples/XamlNavigation).
0 commit comments