menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DependencyObjectExtensions - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DependencyObjectExtensions

    Represents an extension to find parent of an element.

    Inheritance
    System.Object
    DependencyObjectExtensions
    Namespace: Syncfusion.UI.Xaml.Schedule
    Assembly: Syncfusion.SfSchedule.UWP.dll
    Syntax
    public static class DependencyObjectExtensions : Object

    Methods

    FindElementOfType<T>(FrameworkElement)

    Searches the sub tree of an element (including that element) for an element of a particular type.

    Declaration
    public static T FindElementOfType<T>(this FrameworkElement element)
        where T : FrameworkElement
    Parameters
    Type Name Description
    Windows.UI.Xaml.FrameworkElement element
    Returns
    Type
    T
    Type Parameters
    Name
    T

    FindParentElementOfType<T>(FrameworkElement)

    Finds a specific parent element from visual tree by using element type.

    Declaration
    public static T FindParentElementOfType<T>(this FrameworkElement element)
        where T : class
    Parameters
    Type Name Description
    Windows.UI.Xaml.FrameworkElement element
    Returns
    Type
    T
    Type Parameters
    Name
    T
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved