Skip to content

Commit 17719f6

Browse files
committed
Fix dead links
1 parent ea0e75f commit 17719f6

7 files changed

Lines changed: 14 additions & 9 deletions

File tree

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "hub/apps/windows-app-sdk/composition.md",
5+
"redirect_url": "/windows/apps/develop/composition/visual-layer",
6+
"redirect_document_id": false
7+
},
38
{
49
"source_path": "hub/apps/design/shell/tiles-and-notifications/notification-mirroring.md",
510
"redirect_url": "/previous-versions/windows/uwp/notifications/notification-mirroring",

hub/apps/develop/composition/composition-lighting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Depending on the type of light used, a light can have properties for attenuation
7676

7777
Property | Description
7878
--- | ---
79-
**Color** | The [Color](/uwp/api/windows.ui.color) of the light. Lighting color values are defined by [D3D](../graphics-concepts/light-properties.md) Diffuse, Ambient, and Specular that defines the color being emitted. Lighting uses RGBA values for lights; the alpha color component is not used.
79+
**Color** | The [Color](/uwp/api/windows.ui.color) of the light. Lighting color values are defined by [D3D](/windows/win32/direct3d9/light-properties) Diffuse, Ambient, and Specular that defines the color being emitted. Lighting uses RGBA values for lights; the alpha color component is not used.
8080
**Direction** | The direction of light. The direction in which the light is pointing is specified relative to its [CoordinateSpace](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.distantlight.coordinatespace) Visual.
8181
**Coordinate Space** | Every Visual has an implicit 3D coordinate space. X direction is from left to right. Y direction is from top to bottom. Z direction is a point out of the plane. The original point of this coordinate is the upper-left corner of the visual, and the unit is Device Independent Pixel (DIP). A light's offset is defined in this coordinate.
8282
**Inner and Outer Cones** | Spotlights emit a cone of light that has two parts: a bright inner cone and an outer cone. Composition allows you control over inner and outer cone angles and color.
@@ -155,8 +155,8 @@ CompositionBrush CreateNormalMapBrush(ICompositionSurface normalMapImage)
155155
## Related articles
156156

157157
- [Creating Materials and Lights in the Visual Layer](https://blogs.windows.com/buildingapps/2017/08/04/creating-materials-lights-visual-layer/)
158-
- [Lighting Overview](../graphics-concepts/lighting-overview.md)
158+
- [Lighting Overview](/windows/win32/direct3d9/lighting-overview)
159159
- [CompositionCapabilities API](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncapabilities)
160-
- [Mathematics of Lighting](../graphics-concepts/mathematics-of-lighting.md)
160+
- [Mathematics of Lighting](/windows/win32/direct3d9/mathematics-of-lighting)
161161
- [SceneLightingEffect](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.effects.scenelightingeffect)
162162
- [WindowsCompositionSamples GitHub Repo](https://github.com/microsoft/WindowsCompositionSamples)

hub/apps/develop/composition/composition-native-interop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ For performance reasons, when an application calls [**BeginDraw**](/windows/desk
4242

4343
The following code example illustrates an interoperation scenario for composition interop in a Windows App SDK context. The example combines types from the Windows Runtime-based surface area of Microsoft.UI.Composition, together with types from the interop headers, and code that renders text using the COM-based DirectWrite and Direct2D APIs. The example uses [**BeginDraw**](/windows/desktop/api/windows.ui.composition.interop/nf-windows-ui-composition-interop-icompositiondrawingsurfaceinterop-begindraw) and [**EndDraw**](/windows/desktop/api/windows.ui.composition.interop/nf-windows-ui-composition-interop-icompositiondrawingsurfaceinterop-enddraw) to make it seamless to interoperate between these technologies. The example uses DirectWrite to lay out the text, and then it uses Direct2D to render it. The composition graphics device accepts the Direct2D device directly at initialization time. This allows **BeginDraw** to return an **ID2D1DeviceContext** interface pointer, which is considerably more efficient than having the application create a Direct2D context to wrap a returned ID3D11Texture2D interface at each drawing operation.
4444

45-
To try out the C++/WinRT code example below, first create a new WinUI app project in Visual Studio (for requirements, see [Visual Studio support for C++/WinRT](../cpp-and-winrt-apis/intro-to-using-cpp-with-winrt.md#visual-studio-support-for-cwinrt-xaml-the-vsix-extension-and-the-nuget-package)). Replace the contents of your `pch.h` and `App.cpp` source code files with the code listings below, then build and run. The application renders the string "Hello, World!" in black text on a transparent background.
45+
To try out the C++/WinRT code example below, first create a new WinUI app project in Visual Studio (for requirements, see [Visual Studio support for C++/WinRT](/windows/uwp/cpp-and-winrt-apis/intro-to-using-cpp-with-winrt#visual-studio-support-for-cwinrt-xaml-the-vsix-extension-and-the-nuget-package)). Replace the contents of your `pch.h` and `App.cpp` source code files with the code listings below, then build and run. The application renders the string "Hello, World!" in black text on a transparent background.
4646

4747
```cppwinrt
4848
// NOTE: This example uses UWP-specific APIs. For WinUI, replace CoreWindow with your app's Window handle.

hub/apps/develop/composition/using-the-visual-layer-with-xaml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private void InitializeDropShadow(UIElement shadowHost, Shape shadowTarget)
191191
}
192192
```
193193

194-
The following listing shows the [C++/WinRT](../cpp-and-winrt-apis/index.md) equivalent of the previous C# code using the same XAML structure.
194+
The following listing shows the [C++/WinRT](/windows/uwp/cpp-and-winrt-apis/) equivalent of the previous C# code using the same XAML structure.
195195

196196
```cppwinrt
197197
#include <winrt/Microsoft.UI.Composition.h>

hub/apps/develop/composition/visual-layer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The **Microsoft.UI.Composition** compositor runs entirely within a Windows App S
7676

7777
An example of external content is the (**Microsoft.UI.Xaml.Controls**) [MediaPlayerElement](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mediaplayerelement). The Windows media stack provides to XAML an opaque media swap chain handle. XAML gives that handle to the compositor, which in turn hands it off to Windows (via **Windows.UI.Composition**) to display. Since the compositor can't see any of the pixels in the media swap chain, it can't composite that as part of the overall rendering for the window. Instead, it gives the media swap chain to Windows to render it below the compositor's rendering, with a hole cut out of the compositor's rendering in order to allow the media swap chain below it to be visible.
7878

79-
[![Diagram of rendering external content](../windows-app-sdk/images/external-content.png) ](../windows-app-sdk/images/external-content.png#lightbox)
79+
[![Diagram of rendering external content](../../windows-app-sdk/images/external-content.png) ](../../windows-app-sdk/images/external-content.png#lightbox)
8080

8181
In the Windows App SDK/WinUI, the following APIs all create external content:
8282

@@ -103,4 +103,4 @@ Explore the samples on GitHub: [WindowsAppSDK-Samples / SceneGraph](https://gith
103103
## Related topics
104104

105105
* [**Microsoft.UI.Composition API reference**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition)
106-
* [Using the Visual layer in desktop apps](../desktop/modernize/ui/visual-layer-in-desktop-apps.md)
106+
* [Using the Visual layer in desktop apps](../../desktop/modernize/ui/visual-layer-in-desktop-apps.md)

hub/apps/develop/composition/xaml-lighting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ struct MainPage : MainPageT<MainPage>
258258
You can then apply this light to any XAML UIElement or Brush to light them. This example shows different potential usages.
259259

260260
> [!Important]
261-
> For [C++/WinRT](../cpp-and-winrt-apis/intro-to-using-cpp-with-winrt.md), remove the two occurrences of `local:OrangeSpotLight.IsTarget="True"` from the markup below. The attached properties are already set in code-behind.
261+
> For [C++/WinRT](/windows/uwp/cpp-and-winrt-apis/intro-to-using-cpp-with-winrt), remove the two occurrences of `local:OrangeSpotLight.IsTarget="True"` from the markup below. The attached properties are already set in code-behind.
262262
263263
```xaml
264264
<StackPanel Width="100">

hub/apps/windows-app-sdk/migrate-to-windows-app-sdk/what-is-supported.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WinUI and the Windows App SDK are new technologies and, when compared to UWP, th
1717
| [Background tasks](/windows/uwp/launch-resume/create-and-register-a-winmain-background-task) | ✅ Supported; see [BackgroundTaskBuilder](/windows/windows-app-sdk/api/winrt/microsoft.windows.applicationmodel.background.backgroundtaskbuilder) (introduced in 1.7). |
1818
| Common UI controls | ✅ Supported |
1919
| [CameraCaptureUI](https://github.com/microsoft/WindowsAppSDK/pull/4721) | ✅ Supported; see [CameraCaptureUI](/windows/windows-app-sdk/api/winrt/microsoft.windows.media.capture) (introduced in 1.7). For alternative APIs, see [Using video capture](/windows/win32/multimedia/using-video-capture). |
20-
| [Composition/DirectX interop](https://github.com/microsoft/microsoft-ui-xaml/issues/5025) | ✅ Most Composition and Drawing features are supported (global composition effects aren't supported in 1.7); see [Enhance UI with the Visual layer](../composition.md). |
20+
| [Composition/DirectX interop](https://github.com/microsoft/microsoft-ui-xaml/issues/5025) | ✅ Most Composition and Drawing features are supported (global composition effects aren't supported in 1.7); see [Enhance UI with the Visual layer](../develop/composition/visual-layer.md). |
2121
| Distributing via Store | ✅ Supported |
2222
| Live Tiles (on Windows 10) | ✅ Supported |
2323
| [MapControl](/uwp/api/windows.ui.xaml.controls.maps.mapcontrol) | ✅ Supported; see [MapControl](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.mapcontrol) (introduced in 1.5). |

0 commit comments

Comments
 (0)