dotnet / dotnet/dotnet-api-docs

Is the returned Object always a `UIElement`

Open
#1,175 0 comments 0 reactions 0 assignees View on GitHub
area-WPF dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

The documentation mentions
>A DependencyObject that is the container element which is used to display the next item.

When it says the DependencyObject is a container element, does that means it is always a UIElement? and casting to it is safe?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: d8316ba8-bc82-0353-e185-a50224e6ff5b
* Version Independent ID: f533a50a-55fb-e2f2-f379-b9afe686ee8c
* Content: [IItemContainerGenerator.GenerateNext Method (System.Windows.Controls.Primitives)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.primitives.iitemcontainergenerator.generatenext?view=netframework-4.7.2#System_Windows_Controls_Primitives_IItemContainerGenerator_GenerateNext_System_Boolean__)
* Content Source: [xml/System.Windows.Controls.Primitives/IItemContainerGenerator.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Controls.Primitives/IItemContainerGenerator.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.