Skip to content

Commit f3668f4

Browse files
authored
Merge pull request #6306 from MicrosoftDocs/niels9001/remove-uwp-references
Remove UWP-specific sections from WinUI docs
2 parents 8f51369 + 4a570d7 commit f3668f4

66 files changed

Lines changed: 3 additions & 1042 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

hub/apps/develop/motion/connected-animation.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -299,15 +299,6 @@ void OnNavigatedTo(NavigationEventArgs e)
299299
- Don't wait on network requests or other long-running asynchronous operations in between preparing and starting a connected animation. You may need to pre-load the necessary information to run the transition ahead of time, or use a low-resolution placeholder image while a high-resolution image loads in the destination view.
300300
- Use [SuppressNavigationTransitionInfo](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.suppressnavigationtransitioninfo) to prevent a transition animation in a **Frame** if you are using **ConnectedAnimationService**, since connected animations aren't meant to be used simultaneously with the default navigation transitions. See [NavigationThemeTransition](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.navigationthemetransition) for more info on how to use navigation transitions.
301301

302-
## UWP and WinUI for UWP
303-
304-
[!INCLUDE [uwp-winui2-note](../../../includes/uwp-winui-2-note.md)]
305-
306-
> [!div class="checklist"]
307-
>
308-
> - **Platform APIs**: [ConnectedAnimation class](/uwp/api/windows.ui.xaml.media.animation.connectedanimation), [ConnectedAnimationService class](/uwp/api/windows.ui.xaml.media.animation.connectedanimationservice)
309-
> - [Open the WinUI for UWP Gallery app and see Implicit Transitions in action](winui2gallery://item/ConnectedAnimation). [!INCLUDE [winui-2-gallery](../../../includes/winui-2-gallery.md)]
310-
311302
## Related articles
312303

313304
[ConnectedAnimation](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.animation.connectedanimation)

hub/apps/develop/motion/parallax.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@ For the complete list of ways to customize parallax, see the ParallaxView class.
9999
- Consider using parallax in ListViewItems when ListViewItems contain an image
100100
- Don't use it everywhere, overuse can diminish its impact
101101

102-
## UWP and WinUI for UWP
103-
104-
[!INCLUDE [uwp-winui2-note](../../../includes/uwp-winui-2-note.md)]
105-
106-
> [!div class="checklist"]
107-
>
108-
> - **WinUI APIs:** [ParallaxView class](/uwp/api/Microsoft.UI.Xaml.Controls.Parallaxview), [VerticalShift property](/uwp/api/Microsoft.UI.Xaml.Controls.Parallaxview.VerticalShift), [HorizontalShift property](/uwp/api/Microsoft.UI.Xaml.Controls.Parallaxview.HorizontalShift)
109-
> - **Platform APIs**: [ParallaxView class](/uwp/api/windows.ui.xaml.Controls.Parallaxview), [VerticalShift property](/uwp/api/windows.ui.xaml.Controls.Parallaxview.VerticalShift), [HorizontalShift property](/uwp/api/windows.ui.xaml.Controls.Parallaxview.HorizontalShift)
110-
> - [Open the WinUI for UWP Gallery app and see ParallaxView in action](winui2gallery://item/ParallaxView). [!INCLUDE [winui-2-gallery](../../../includes/winui-2-gallery.md)]
111-
112102
## Related articles
113103

114104
- [ParallaxView class](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.Controls.Parallaxview)

hub/apps/develop/motion/xaml-property-animations.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -129,24 +129,6 @@ animation.Target = "Scale";
129129
destinationButton.StartAnimation(animation);
130130
```
131131

132-
## UWP and WinUI for UWP
133-
134-
[!INCLUDE [uwp-winui2-note](../../../includes/uwp-winui-2-note.md)]
135-
136-
> [!div class="checklist"]
137-
>
138-
> - **Platform APIs**: [CompositionAnimation class](/uwp/api/windows.ui.composition.compositionanimation), [UIElement class](/uwp/api/windows.ui.xaml.uielement)
139-
> - [Open the WinUI for UWP Gallery app and see Animation interop in action](winui2gallery://item/XamlCompInterop). [!INCLUDE [winui-2-gallery](../../../includes/winui-2-gallery.md)]
140-
141-
> [!NOTE]
142-
> To use these properties on UIElement, your UWP project target version must be 1809 or later. For more info about configuring your project version, see [Version adaptive apps](/windows/uwp/debug-test-perf/version-adaptive-apps).
143-
144-
To get the [Compositor](/uwp/api/windows.ui.composition.compositor) in a UWP app, use the [Window.Compositor](/uwp/api/windows.ui.xaml.window.compositor) property:
145-
146-
```csharp
147-
Compositor compositor = Window.Current.Compositor;
148-
```
149-
150132
## Related topics
151133

152134
- [Storyboarded animations](storyboarded-animations.md)

hub/apps/develop/platform/xaml/brushes.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -212,25 +212,4 @@ For [**ImageBrush**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.Media.
212212

213213
[**ImageSource**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imagebrush.imagesourceproperty) requires a [**BitmapImage**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.Media.Imaging.BitmapImage) (not a URI) when you define an [**ImageBrush**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.Media.ImageBrush) using code. If your source is a stream , use the [**SetSourceAsync**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapsource.setsourceasync) method to initialize the value. If your source is a URI, which includes content in your app that uses the **ms-appx** or **ms-resource** schemes, use the [**BitmapImage**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imaging.bitmapimage) constructor that takes a URI. You might also consider handling the [**ImageOpened**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.imagebrush.imageopened) event if there are any timing issues with retrieving or decoding the image source, where you might need alternate content to display until the image source is available.
214214

215-
For code examples, see [**ImageBrush**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.Media.ImageBrush) and [**XamlCompositionBrushBase**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamlcompositionbrushbase).
216-
217-
## UWP and WinUI for UWP
218-
219-
[!INCLUDE [uwp-winui2-note](../../../../includes/uwp-winui-2-note.md)]
220-
221-
Brush APIs exist in the [Windows.UI.Xaml.Controls](/uwp/api/Windows.UI.Xaml.media) and [Windows.UI.Xaml.Controls](/uwp/api/windows.ui.xaml.controls) namespaces.
222-
223-
> [!div class="checklist"]
224-
>
225-
> - **Platform APIs:** [Brush class](/uwp/api/windows.ui.xaml.media.brush)
226-
> - [Open the WinUI for UWP Gallery app and see RadialGradientBrush in action](winui2gallery:/item/RadialGradientBrush). [!INCLUDE [winui-2-gallery](../../../../includes/winui-2-gallery.md)]
227-
228-
We recommend using the latest [WinUI for UWP](/windows/uwp/get-started/winui2/) to get the most current styles, templates, and features for all controls.
229-
230-
### WebViewBrush (UWP only)
231-
232-
A [**WebViewBrush**](/uwp/api/windows.ui.xaml.controls.webviewbrush) is a special type of brush that can access the content normally viewed in a [**WebView**](/uwp/api/windows.ui.xaml.controls.webview) control. Instead of rendering the content in the rectangular **WebView** control area, **WebViewBrush** paints that content onto another element that has a [**Brush**](/uwp/api/windows.ui.xaml.Media.Brush)-type property for a render surface. **WebViewBrush** isn't appropriate for every brush scenario, but is useful for transitions of a **WebView**. For more info, see [**WebViewBrush**](/uwp/api/windows.ui.xaml.controls.webviewbrush).
233-
234-
If you create a [**WebViewBrush**](/uwp/api/windows.ui.xaml.controls.webviewbrush) in code, use the default constructor and then call other APIs before you attempt to use that brush for a UI property. You might need to call [**Redraw**](/uwp/api/windows.ui.xaml.controls.webviewbrush.redraw) if you've recently reset the [**SourceName**](/uwp/api/windows.ui.xaml.controls.webviewbrush.sourcename) property or if the content of the [**WebView**](/uwp/api/windows.ui.xaml.controls.webview) is also being changed with code.
235-
236-
For code examples, see [**WebViewBrush**](/uwp/api/windows.ui.xaml.controls.webviewbrush).
215+
For code examples, see [**ImageBrush**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.Media.ImageBrush) and [**XamlCompositionBrushBase**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.media.xamlcompositionbrushbase).

hub/apps/develop/ui/controls/animated-icon.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -215,25 +215,6 @@ private void Button_PointerExited(object sender, PointerRoutedEventArgs e)
215215
}
216216
```
217217

218-
## UWP and WinUI for UWP
219-
220-
[!INCLUDE [uwp-winui2-note](../../../../includes/uwp-winui-2-note.md)]
221-
222-
The AnimatedIcon for UWP apps requires WinUI for UWP. For more info, including installation instructions, see [WinUI for UWP](/windows/uwp/get-started/winui2/). APIs for this control exist in the [Microsoft.UI.Xaml.Controls](/windows/winui/api/microsoft.ui.xaml.controls) namespace.
223-
224-
> [!div class="checklist"]
225-
>
226-
> - **WinUI for UWP Apis:** [AnimatedIcon class](/windows/winui/api/microsoft.ui.xaml.controls.animatedicon)
227-
> - [Open the WinUI for UWP Gallery app and see the AnimatedIcon in action](winui2gallery:/item/AnimatedIcon). [!INCLUDE [winui-2-gallery](../../../../includes/winui-2-gallery.md)]
228-
229-
[!INCLUDE [muxc-alias-note](../../../../includes/muxc-alias-note.md)]
230-
231-
```xaml
232-
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
233-
234-
<muxc:AnimatedIcon />
235-
```
236-
237218
## Related articles
238219

239220
- [Icons in Windows apps](../../../design/style/icons.md)

hub/apps/develop/ui/controls/auto-suggest-box.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,6 @@ Here's an AutoSuggestBox with a 'find' icon.
139139

140140
![Example of auto-suggest control with a find icon.](images/controls-autosuggest-entrypoint.png)
141141

142-
## UWP and WinUI for UWP
143-
144-
[!INCLUDE [uwp-winui2-note](../../../../includes/uwp-winui-2-note.md)]
145-
146-
APIs for this control exist in the [Windows.UI.Xaml.Controls](/uwp/api/Windows.UI.Xaml.Controls) namespace.
147-
148-
> [!div class="checklist"]
149-
>
150-
> - **UWP APIs:** [AutoSuggestBox class](/uwp/api/Windows.ui.xaml.controls.autosuggestbox), [TextChanged event](/uwp/api/windows.ui.xaml.controls.autosuggestbox.textchanged), [SuggestionChose event](/uwp/api/windows.ui.xaml.controls.autosuggestbox.suggestionchosen), [QuerySubmitted event](/uwp/api/windows.ui.xaml.controls.autosuggestbox.querysubmitted)
151-
> - [Open the WinUI for UWP Gallery app and see the AutoSuggestBox in action](winui2gallery:/item/AutoSuggestBox). [!INCLUDE [winui-2-gallery](../../../../includes/winui-2-gallery.md)]
152-
153-
We recommend using the latest [WinUI for UWP](/windows/uwp/get-started/winui2/) to get the most current styles and templates for all controls. WinUI 2.2 or later includes a new template for this control that uses rounded corners. For more info, see [Corner radius](../../../design/style/rounded-corner.md).
154-
155142
## Related articles
156143

157144
- [Text controls](../../../design/controls/text-controls.md)

hub/apps/develop/ui/controls/breadcrumbbar.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -241,25 +241,6 @@ public readonly struct Crumb
241241
}
242242
```
243243

244-
## UWP and WinUI for UWP
245-
246-
[!INCLUDE [uwp-winui2-note](../../../../includes/uwp-winui-2-note.md)]
247-
248-
The BreadcrumbBar for UWP apps requires WinUI for UWP. For more info, including installation instructions, see [WinUI for UWP](/windows/uwp/get-started/winui2/). APIs for this control exist in the [Microsoft.UI.Xaml.Controls](/windows/winui/api/microsoft.ui.xaml.controls) namespace.
249-
250-
> [!div class="checklist"]
251-
>
252-
> - **WinUI for UWP Apis:** [BreadcrumbBar class](/windows/winui/api/microsoft.ui.xaml.controls.breadcrumbbar)
253-
> - [Open the WinUI for UWP Gallery app and see the BreadcrumbBar in action](winui2gallery:/item/BreadcrumbBar). [!INCLUDE [winui-2-gallery](../../../../includes/winui-2-gallery.md)]
254-
255-
[!INCLUDE [muxc-alias-note](../../../../includes/muxc-alias-note.md)]
256-
257-
```xaml
258-
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
259-
260-
<muxc:BreadcrumbBar />
261-
```
262-
263244
## Related articles
264245

265246
- [Navigation design basics](../../../design/basics/navigation-basics.md)

hub/apps/develop/ui/controls/buttons.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -548,30 +548,6 @@ private void ApplyListStyle(string listStyle)
548548
}
549549
```
550550

551-
## UWP and WinUI for UWP
552-
553-
[!INCLUDE [uwp-winui2-note](../../../../includes/uwp-winui-2-note.md)]
554-
555-
The DropDownButton, SplitButton, and ToggleSplitButton controls for UWP apps are included as part of WinUI for UWP. For more info, including installation instructions, see [WinUI for UWP](/windows/uwp/get-started/winui2/). APIs for these controls exist in both the [Windows.UI.Xaml.Controls](/uwp/api/Windows.UI.Xaml.Controls) and [Microsoft.UI.Xaml.Controls](/windows/winui/api/microsoft.ui.xaml.controls) namespaces.
556-
557-
> [!div class="checklist"]
558-
>
559-
> - **UWP APIs:** [Button class](/uwp/api/windows.ui.xaml.controls.button), [RepeatButton class](/uwp/api/windows.ui.xaml.controls.primitives.repeatbutton), [HyperlinkButton class](/uwp/api/windows.ui.xaml.controls.hyperlinkbutton), [DropDownButton](/uwp/api/windows.ui.xaml.controls.dropdownbutton), [SplitButton](/uwp/api/windows.ui.xaml.controls.splitbutton), [ToggleSplitButton](/uwp/api/windows.ui.xaml.controls.togglesplitbutton), [ToggleButton](/uwp/api/windows.ui.xaml.controls.primitives.togglebutton), [Click event](/uwp/api/windows.ui.xaml.controls.primitives.buttonbase.click), [Command property](/uwp/api/windows.ui.xaml.controls.primitives.buttonbase.command), [Content property](/uwp/api/windows.ui.xaml.controls.contentcontrol.content)
560-
> - **WinUI for UWP Apis:** [DropDownButton](/windows/winui/api/microsoft.ui.xaml.controls.dropdownbutton), [SplitButton](/windows/winui/api/microsoft.ui.xaml.controls.splitbutton), [ToggleSplitButton](/windows/winui/api/microsoft.ui.xaml.controls.togglesplitbutton)
561-
> - [Open the WinUI for UWP Gallery app and see the Button in action](winui2gallery:/item/Button). [!INCLUDE [winui-2-gallery](../../../../includes/winui-2-gallery.md)]
562-
563-
We recommend using the latest [WinUI for UWP](/windows/uwp/get-started/winui2/) to get the most current styles and templates for all controls. WinUI 2.2 or later includes a new template for these controls that uses rounded corners. For more info, see [Corner radius](../../../design/style/rounded-corner.md).
564-
565-
[!INCLUDE [muxc-alias-note](../../../../includes/muxc-alias-note.md)]
566-
567-
```xaml
568-
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
569-
570-
<muxc:DropDownButton />
571-
<muxc:SplitButton />
572-
<muxc:ToggleSplitButton />
573-
```
574-
575551
## Related articles
576552

577553
- [Button class](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.button)

hub/apps/develop/ui/controls/calendar-date-picker.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,6 @@ The default placeholder text is "select a date". You can remove this by setting
8686
PlaceholderText="Choose your arrival date"/>
8787
```
8888

89-
## UWP and WinUI for UWP
90-
91-
[!INCLUDE [uwp-winui2-note](../../../../includes/uwp-winui-2-note.md)]
92-
93-
APIs for this control exist in the [Windows.UI.Xaml.Controls](/uwp/api/Windows.UI.Xaml.Controls) namespace.
94-
95-
> [!div class="checklist"]
96-
>
97-
> - **UWP APIs:** [CalendarDatePicker class](/uwp/api/Windows.UI.Xaml.Controls.CalendarDatePicker), [Date property](/uwp/api/windows.ui.xaml.controls.calendardatepicker.date), [DateChanged event](/uwp/api/windows.ui.xaml.controls.calendardatepicker.datechanged)
98-
> - [Open the WinUI for UWP Gallery app and see the CalendarDatePicker in action](winui2gallery:/item/CalendarDatePicker). [!INCLUDE [winui-2-gallery](../../../../includes/winui-2-gallery.md)]
99-
100-
We recommend using the latest [WinUI for UWP](/windows/uwp/get-started/winui2/) to get the most current styles and templates for all controls. WinUI 2.2 or later includes a new template for this control that uses rounded corners. For more info, see [Corner radius](../../../design/style/rounded-corner.md).
101-
10289
## Related articles
10390

10491
- [Date and time controls](../../../design/controls/date-and-time.md)

hub/apps/develop/ui/controls/calendar-view.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,6 @@ private void CalendarView_CalendarViewDayItemChanging(CalendarView sender,
193193
}
194194
```
195195

196-
## UWP and WinUI for UWP
197-
198-
[!INCLUDE [uwp-winui2-note](../../../../includes/uwp-winui-2-note.md)]
199-
200-
APIs for this control exist in the [Windows.UI.Xaml.Controls](/uwp/api/Windows.UI.Xaml.Controls) namespace.
201-
202-
> [!div class="checklist"]
203-
>
204-
> - **UWP APIs:** [CalendarView class](/uwp/api/Windows.UI.Xaml.Controls.CalendarView), [SelectedDatesChanged event](/uwp/api/windows.ui.xaml.controls.calendarview.selecteddateschanged)
205-
> - [Open the WinUI for UWP Gallery app and see the CalendarView in action](winui2gallery:/item/CalendarView). [!INCLUDE [winui-2-gallery](../../../../includes/winui-2-gallery.md)]
206-
207-
We recommend using the latest [WinUI for UWP](/windows/uwp/get-started/winui2/) to get the most current styles and templates for all controls. WinUI 2.2 or later includes a new template for this control that uses rounded corners. For more info, see [Corner radius](../../../design/style/rounded-corner.md).
208-
209196
## Related articles
210197

211198
- [Date and time controls](../../../design/controls/date-and-time.md)

0 commit comments

Comments
 (0)