CINXE.COM

DependencyObject Class (Windows.UI.Xaml) - Windows apps | Microsoft Learn

<!DOCTYPE html><html class="hasSidebar hasPageActions hasBreadcrumb reference reference has-default-focus theme-light" lang="en-us" dir="ltr" data-authenticated="false" data-auth-status-determined="false" data-target="docs" x-ms-format-detection="none"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta property="og:title" content="DependencyObject Class (Windows.UI.Xaml) - Windows apps" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.dependencyobject?view=winrt-26100" /><meta property="og:description" content="Represents an object that participates in the dependency property system. DependencyObject is the immediate base class of many important UI-related classes, such as UIElement, Geometry, FrameworkTemplate, Style, and ResourceDictionary. For more info on how DependencyObject supports dependency properties, see Dependency properties overview. " /><meta property="og:image" content="https://learn.microsoft.com/en-us/media/open-graph-image.png" /> <meta property="og:image:alt" content="Microsoft Learn" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@MicrosoftLearn" /> <meta name="color-scheme" content="light dark"><meta name="adobe-target" content="true" /> <meta name="APILocation" content="windows.dll" /> <meta name="APIName" content="Windows.UI.Xaml.DependencyObject" /> <meta name="APIType" content="Assembly" /> <meta name="author" content="jwmsft" /> <meta name="breadcrumb_path" content="/uwp/api/breadcrumbs/toc.json" /> <meta name="default_moniker" content="winrt-26100" /> <meta name="depot_name" content="MSDN.winrt-api-build" /> <meta name="description" content="Represents an object that participates in the dependency property system. DependencyObject is the immediate base class of many important UI-related classes, such as UIElement, Geometry, FrameworkTemplate, Style, and ResourceDictionary. For more info on how DependencyObject supports dependency properties, see Dependency properties overview. " /> <meta name="document_id" content="6ef3eec3-b8f7-dd75-5399-50b9ebb6884f" /> <meta name="document_version_independent_id" content="323835e6-7d00-2aa5-fc45-1e0869fe4953" /> <meta name="feedback_help_link_type" content="get-product-support" /> <meta name="feedback_help_link_url" content="https://learn.microsoft.com/answers/tags/184/windows-app-sdk/" /> <meta name="feedback_product_url" content="https://github.com/microsoft/microsoft-ui-xaml/issues/new/choose" /> <meta name="feedback_system" content="Standard" /> <meta name="git_commit_id" content="1a828f749c8ea13311d912420608e8d1e5b397de" /> <meta name="gitcommit" content="https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build/commit/1a828f749c8ea13311d912420608e8d1e5b397de?path=/winrt-api-build/xml/Windows.UI.Xaml/DependencyObject.xml&amp;_a=contents" /> <meta name="keywords" content="windows 10, uwp, winrt, api" /> <meta name="locale" content="en-us" /> <meta name="monikers" content="winrt-10240" /> <meta name="monikers" content="winrt-10586" /> <meta name="monikers" content="winrt-14393" /> <meta name="monikers" content="winrt-15063" /> <meta name="monikers" content="winrt-16299" /> <meta name="monikers" content="winrt-17134" /> <meta name="monikers" content="winrt-17763" /> <meta name="monikers" content="winrt-18362" /> <meta name="monikers" content="winrt-19041" /> <meta name="monikers" content="winrt-20348" /> <meta name="monikers" content="winrt-22000" /> <meta name="monikers" content="winrt-22621" /> <meta name="monikers" content="winrt-23h2" /> <meta name="monikers" content="winrt-26100" /> <meta name="monikers" content="winrt-insider" /> <meta name="ms.assetid" content="Windows.UI.Xaml.DependencyObject" /> <meta name="ms.author" content="jimwalk" /> <meta name="ms.date" content="02/08/2017" /> <meta name="ms.service" content="uwp" /> <meta name="ms.subservice" content="winrt-reference" /> <meta name="ms.technology" content="winui" /> <meta name="ms.topic" content="managed-reference" /> <meta name="namespace" content="Windows.UI.Xaml" /> <meta name="original_content_git_url" content="https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build?path=/winrt-api-build/xml/Windows.UI.Xaml/DependencyObject.xml&amp;version=GBlive&amp;_a=contents" /> <meta name="page_kind" content="class" /> <meta name="page_type" content="dotnet" /> <meta name="products" content="https://authoring-docs-microsoft.poolparty.biz/devrel/caec7b7f-4941-4578-b79f-c63b1c1f5af4" /> <meta name="products" content="https://authoring-docs-microsoft.poolparty.biz/devrel/e0ffb20c-01c6-407b-a9bd-29111652a1dc" /> <meta name="products" content="https://authoring-docs-microsoft.poolparty.biz/devrel/e9b7979e-fb8b-40a7-a19f-c987950324dc" /> <meta name="ROBOTS" content="INDEX, FOLLOW" /> <meta name="schema" content="NetType" /> <meta name="search.mshattr.devlang" content="csharp vb cppcx cppwinrt" /> <meta name="site_name" content="Docs" /> <meta name="toc_rel" content="winrt-toc/toc.json" /> <meta name="TopicType" content="apiref" /> <meta name="uhfHeaderId" content="MSDocsHeader-WinDevCenter" /> <meta name="uid" content="Windows.UI.Xaml.DependencyObject" /> <meta name="updated_at" content="2024-10-15 02:51 PM" /> <meta name="persistent_id" content="e16d3b23-6afc-d790-8c6e-01c0266f3bda" /> <meta name="cmProducts" content="https://authoring-docs-microsoft.poolparty.biz/devrel/caec7b7f-4941-4578-b79f-c63b1c1f5af4" data-source="generated" /> <meta name="cmProducts" content="https://authoring-docs-microsoft.poolparty.biz/devrel/e0ffb20c-01c6-407b-a9bd-29111652a1dc" data-source="generated" /> <meta name="spProducts" content="https://authoring-docs-microsoft.poolparty.biz/devrel/754dea88-f800-4835-b6b5-280cb5d81e88" data-source="generated" /> <meta name="spProducts" content="https://authoring-docs-microsoft.poolparty.biz/devrel/3904bce4-d817-48cf-85fd-b6146fca83b7" data-source="generated" /> <meta name="scope" content="UWP" /><meta name="github_feedback_content_git_url" content="https://github.com/MicrosoftDocs/winrt-api/blob/docs/winrt-api-build/xml/Windows.UI.Xaml/DependencyObject.xml" /><link href="https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.dependencyobject?view=winrt-26100" rel="canonical"><title>DependencyObject Class (Windows.UI.Xaml) - Windows apps | Microsoft Learn</title><link rel="stylesheet" href="/static/assets/0.4.028726178/styles/site-ltr.css"> <script id="msdocs-script"> var msDocs = {environment: { supportLevel: 'production', accessLevel: 'online', reviewFeatures: false, systemContent: true, azurePortalHostname: 'portal.azure.com', legacyHosting: false, siteName: 'learn', },data: { timeOrigin: Date.now(), contentLocale: 'en-us', contentDir: 'ltr', userLocale: 'en-us', userDir: 'ltr', pageTemplate: 'Reference', brand: '', context: {}, hasBinaryRating: true, feedbackHelpLinkType:'get-product-support', feedbackHelpLinkUrl:'https://learn.microsoft.com/answers/tags/184/windows-app-sdk/', standardFeedback: true, showFeedbackReport: false, enableTutorialFeedback: false, feedbackSystem: 'Standard', feedbackGitHubRepo: '', feedbackProductUrl: 'https://github.com/microsoft/microsoft-ui-xaml/issues/new/choose',defaultDevLang: 'csharp',extendBreadcrumb: true,isEditDisplayable: false, hideViewSource: true, hasPageActions: true, hasPrintButton: true, hasBookmark: true, hasShare: true, isPermissioned: false, isPrivateUnauthorized: false,hasRecommendations: false,}, functions:{} }; </script><script src="https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js"></script> <script src="https://js.monitor.azure.com/scripts/c/ms.jsll-4.min.js"></script><script src="/static/assets/0.4.028726178/global/deprecation.js"></script><link rel="preconnect" href="//mscom.demdex.net" crossorigin> <link rel="dns-prefetch" href="//target.microsoft.com"> <link rel="dns-prefetch" href="//microsoftmscompoc.tt.omtrdc.net"> <link rel="preload" as="script" href="/static/third-party/adobe-target/at-js/2.9.0/at.js" integrity="sha384-1/viVM50hgc33O2gOgkWz3EjiD/Fy/ld1dKYXJRUyjNYVEjSUGcSN+iPiQF7e4cu" crossorigin="anonymous" id="adobe-target-script" type="application/javascript" /><script src="/static/assets/0.4.028726178/scripts/en-us/index-docs.js"></script></head> <body lang="en-us" dir="ltr"> <div class="header-holder has-default-focus"> <a href="#main" style="z-index: 1070" class="outline-color-text visually-hidden-until-focused position-fixed inner-focus focus-visible top-0 left-0 right-0 padding-xs text-align-center has-body-background" tabindex="1">Skip to main content</a><a href="#side-doc-outline" style="z-index: 1070" class="outline-color-text visually-hidden-until-focused position-fixed inner-focus focus-visible top-0 left-0 right-0 padding-xs text-align-center has-body-background" tabindex="2">Skip to in-page navigation</a><div hidden id="cookie-consent-holder" data-test-id="cookie-consent-container"></div> <div id="unsupported-browser" style=" background-color: white; color: black; padding: 16px; border-bottom: 1px solid grey;" hidden > <div style="max-width: 800px; margin: 0 auto;"> <p style="font-size: 24px">This browser is no longer supported.</p> <p style="font-size: 16px; margin-top: 16px;">Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.</p> <div style="margin-top: 12px;"> <a href="https://go.microsoft.com/fwlink/p/?LinkID=2092881 " style=" background-color: #0078d4; border: 1px solid #0078d4; color: white; padding: 6px 12px; border-radius: 2px; display: inline-block; ">Download Microsoft Edge</a> <a href="https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge" style=" background-color: white; padding: 6px 12px; border: 1px solid #505050; color: #171717; border-radius: 2px; display: inline-block; ">More info about Internet Explorer and Microsoft Edge</a> </div> </div> </div> <!-- liquid-tag banners global --> <!-- site header --> <header id="ms--site-header" data-test-id="site-header-wrapper" role="banner" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div id="ms--mobile-nav" class="site-header display-none-tablet padding-inline-none gap-none" data-bi-name="mobile-header" data-test-id="mobile-header"></div> <div id="ms--primary-nav" class="site-header display-none display-flex-tablet" data-bi-name="L1-header" data-test-id="primary-header"></div> <div id="ms--secondary-nav" class="site-header display-none display-flex-tablet" data-bi-name="L2-header" data-test-id="secondary-header"></div> </header><div id="content-header" class="content-header uhf-container has-padding has-default-focus border-bottom-none" data-bi-name="content-header"> <div class="content-header-controls margin-xxs margin-inline-sm-tablet"> <button type="button" class="contents-button button button-sm margin-right-xxs" data-bi-name="contents-expand" aria-haspopup="true" data-contents-button> <span class="icon"><span class="docon docon-menu" aria-hidden="true"></span></span> <span class="contents-expand-title">Table of contents</span> </button> <button type="button" class="ap-collapse-behavior ap-expanded button button-sm" data-bi-name="ap-collapse" aria-controls="action-panel"> <span class="icon"><span class="docon docon-exit-mode" aria-hidden="true"></span></span> <span>Exit focus mode</span> </button> </div> </div><div id="disclaimer-holder" class="has-overflow-hidden has-default-focus"> <!-- liquid-tag banners sectional --> </div> </div> <div class="mainContainer uhf-container has-default-focus" data-bi-name="body"> <div class="columns has-large-gaps is-gapless-mobile "><div id="left-container" class="left-container is-hidden-mobile column is-one-third-tablet is-one-quarter-desktop"> <nav id="affixed-left-container" class="margin-top-sm-tablet position-sticky display-flex flex-direction-column" aria-label="Primary"></nav> </div><!-- .primary-holder --> <section class="primary-holder column is-two-thirds-tablet is-three-quarters-desktop"> <!--div.columns --> <div class="columns is-gapless-mobile has-large-gaps "><div id="main-column" class="column is-full is-8-desktop"> <main id="main" class="" role="main" data-bi-name="content" lang="en-us" dir="ltr"><!-- article-header --> <div id="article-header" class="background-color-body margin-top-sm-tablet margin-bottom-xs display-none-print"> <div class="display-flex align-items-center "><details id="article-header-breadcrumbs-overflow-popover" class="popover" data-for="article-header-breadcrumbs"> <summary class="button button-clear button-primary button-sm inner-focus" aria-label="All breadcrumbs"> <span class="icon"> <span class="docon docon-more"></span> </span> </summary> <div id="article-header-breadcrumbs-overflow" class="popover-content padding-none"> </div> </details> <bread-crumbs id="article-header-breadcrumbs" data-test-id="article-header-breadcrumbs" class="overflow-hidden flex-grow-1 margin-right-sm margin-right-md-tablet margin-right-lg-desktop margin-left-negative-xxs padding-left-xxs"></bread-crumbs><div id="article-header-page-actions" class="opacity-none margin-left-auto display-flex flex-wrap-no-wrap align-items-stretch"><div class="language dropdown display-flex align-items-center"> <button class="dropdown-trigger button button-clear button-sm button-primary" aria-controls="language-menu" aria-expanded="false" title="Language" data-bi-name="language"> <span class="lang-title align-self-flex-start" dir="ltr">Language</span> <span class="icon" aria-hidden="true"> <span class="docon docon-chevron-down-light expanded-indicator"></span> </span> </button> <div class="dropdown-menu padding-xxs language-selector" name="language-selector" role="menu"> <ul data-bi-name="language-links" dir="ltr"><li> <a class="button button-clear button-sm button-block" data-bi-name="lang-csharp" tabindex="0" aria-selected="false"></a> </li><li> <a class="button button-clear button-sm button-block" data-bi-name="lang-vb" tabindex="0" aria-selected="false"></a> </li><li> <a class="button button-clear button-sm button-block" data-bi-name="lang-cppcx" tabindex="0" aria-selected="false"></a> </li><li> <a class="button button-clear button-sm button-block" data-bi-name="lang-cppwinrt" tabindex="0" aria-selected="false"></a> </li></ul> </div> </div><a id="lang-link-tablet" class="button button-primary button-clear button-sm display-none display-inline-flex-tablet" title="Read in English" data-bi-name="language-toggle" data-read-in-link hidden> <span class="icon margin-none" aria-hidden="true" data-read-in-link-icon> <span class="docon docon-locale-globe"></span> </span> <span class="is-visually-hidden" data-read-in-link-text>Read in English</span> </a><button type="button" class="collection button button-clear button-sm button-primary display-none display-inline-flex-tablet" data-list-type="collection" data-bi-name="collection" title="Add to collection"> <span class="icon margin-none" aria-hidden="true"> <span class="docon docon-circle-addition"></span> </span> <span class="collection-status is-visually-hidden">Save</span> </button> <details class="popover popover-right" id="article-header-page-actions-overflow"> <summary class="justify-content-flex-start button button-clear button-sm button-primary" aria-label="More actions" title="More actions"> <span class="icon" aria-hidden="true"> <span class="docon docon-more-vertical"></span> </span> </summary> <div class="popover-content padding-xs"><button data-page-action-item="overflow-mobile" type="button" class="justify-content-flex-start button-block button-sm has-inner-focus button button-clear display-none-tablet" data-bi-name="contents-expand" data-contents-button data-popover-close> <span class="icon"> <span class="docon docon-editor-list-bullet" aria-hidden="true"></span> </span><span class="contents-expand-title">Table of contents</span></button><a id="lang-link-overflow" class="justify-content-flex-start button-sm has-inner-focus button button-clear button-block display-none-tablet" title="Read in English" data-bi-name="language-toggle" data-page-action-item="overflow-mobile" data-check-hidden="true" data-read-in-link hidden > <span class="icon" aria-hidden="true" data-read-in-link-icon> <span class="docon docon-locale-globe"></span> </span> <span data-read-in-link-text>Read in English</span> </a><button type="button" class="collection justify-content-flex-start button button-clear button-sm has-inner-focus button-block display-none-tablet" data-list-type="collection" data-bi-name="collection" title="Save" data-page-action-item="overflow-mobile" data-check-hidden="true" data-popover-close> <span class="icon" aria-hidden="true"> <span class="docon docon-circle-addition"></span> </span> <span class="collection-status">Save</span> </button> <button type="button" class="collection justify-content-flex-start button button-clear button-sm has-inner-focus button-block display-none-tablet" data-list-type="plan" data-bi-name="plan" title="Add to Plan" data-page-action-item="overflow-mobile" data-check-hidden="true" data-popover-close hidden> <span class="icon" aria-hidden="true"> <span class="docon docon-circle-addition"></span> </span> <span class="plan-status">Add to Plan</span> </button><div aria-hidden="true" class="margin-none" data-page-action-item="overflow-all"></div> <hr class="display-none-tablet margin-bottom-xxs margin-top-xxs" /> <h4 class="font-size-sm padding-left-xxs">Share via</h4> <a class="button button-clear button-sm button-block has-inner-focus text-decoration-none justify-content-flex-start share-facebook" data-bi-name="facebook" data-page-action-item="overflow-all"> <span class="icon" aria-hidden="true"> <span class="docon docon-facebook-share font-size-md color-primary"></span> </span> <span class="margin-left-xxs">Facebook</span> </a> <a class="button button-clear button-sm has-inner-focus button-block text-decoration-none justify-content-flex-start share-twitter" data-bi-name="twitter" data-page-action-item="overflow-all"> <span class="icon" aria-hidden="true"> <span class="docon docon-xlogo-share font-size-xxs"></span> </span> <span class="margin-left-xxs">x.com</span> </a> <a class="button button-clear button-sm has-inner-focus button-block text-decoration-none justify-content-flex-start share-linkedin" data-bi-name="linkedin" data-page-action-item="overflow-all"> <span class="icon" aria-hidden="true"> <span class="docon docon-linked-in-logo font-size-sm color-primary"></span> </span> <span class="margin-left-xxs">LinkedIn</span> </a> <a class="button button-clear button-sm button-block has-inner-focus text-decoration-none justify-content-flex-start margin-bottom-xxs share-email" data-bi-name="email" data-page-action-item="overflow-all"> <span class="icon" aria-hidden="true"> <span class="docon docon-mail-message font-size-sm color-primary"></span> </span> <span class="margin-left-xxs">Email</span> </a><hr /> <button class="button button-block button-clear button-sm justify-content-flex-start has-inner-focus margin-top-xxs" title="Print" type="button" aria-label="Print" data-bi-name="print" data-page-action-item="overflow-all" data-popover-close data-print-page data-check-hidden="true"> <span class="icon" aria-hidden="true"> <span class="docon docon-print font-size-sm color-primary"></span> </span> <span class="margin-left-xxs">Print</span> </button> </div> </details> </div></div> </div> <!-- end article-header --><div> <button type="button" class="border contents-button button button-clear button-sm is-hidden-tablet has-inner-focus" data-bi-name="contents-expand" data-contents-button hidden> <span class="icon"> <span class="docon docon-editor-list-bullet" aria-hidden="true"></span> </span><span class="contents-expand-title">Table of contents</span></button> </div><!-- end mobile-contents button --> <div class="content "><!-- <content> --><h1>Dependency<wbr>Object Class</h1> <div class="display-flex-tablet justify-content-space-between-tablet"> <ul class="metadata page-metadata align-items-center" data-bi-name="page info"> <li>Reference</li> </ul> <div id="user-feedback" class="margin-block-xxs display-none-print" data-hide-on-archived=""> <button id="user-feedback-button" data-test-id="conceptual-feedback-button" class="button button-sm button-clear button-primary" type="button" data-bi-name="user-feedback-button" data-user-feedback-button=""> <span class="icon" aria-hidden="true"> <span class="docon docon-like"></span> </span> <span>Feedback</span> </button> </div> </div> <nav id="center-doc-outline" class="doc-outline is-hidden-desktop display-none-print margin-bottom-sm" data-bi-name="intopic toc" aria-label=""> <h2 class="title is-6 margin-block-xs"></h2> </nav> <h2 id="definition">Definition</h2> <div class="metadata"> <dl class="attributeList"> <dt>Namespace:</dt> <dd> <span class="break-text"> <a class="xref" href="windows.ui.xaml?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml</a> </span> </dd> </dl> </div><div class="alert is-primary is-hidden moniker-display-boilerplate"> <p class="alert-title"> <span class="docon docon-status-info-outline" aria-hidden="true"></span> Important </p> <p>Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.</p> </div> <div class="summaryHolder"> <div class="summary clearFix has-text-wrap"> <div class="inlineEditButton"> <a href="https://github.com/MicrosoftDocs/winrt-api/blob/docs//windows.ui.xaml/dependencyobject.md" data-bi-name="editType" data-linktype="external"><span class="docon docon-edit-outline" aria-hidden="true"></span>Edit</a> </div> <p>Represents an object that participates in the dependency property system.&nbsp;DependencyObject is the immediate base class of many important UI-related classes, such as <a href="windows.ui.xaml.uielement?view=winrt-26100" data-linktype="relative-path">UIElement</a>, <a href="windows.ui.xaml.media.geometry?view=winrt-26100" data-linktype="relative-path">Geometry</a>, <a href="windows.ui.xaml.frameworktemplate?view=winrt-26100" data-linktype="relative-path">FrameworkTemplate</a>, <a href="windows.ui.xaml.style?view=winrt-26100" data-linktype="relative-path">Style</a>, and <a href="windows.ui.xaml.resourcedictionary?view=winrt-26100" data-linktype="relative-path">ResourceDictionary</a>. For more info on how DependencyObject supports dependency properties, see <a href="/en-us/windows/uwp/xaml-platform/dependency-properties-overview" data-linktype="absolute-path">Dependency properties overview</a>.</p> </div> </div> <pre class="wrap" data-moniker=" winrt-10240 winrt-10586 winrt-14393 winrt-15063 winrt-16299 winrt-17134 winrt-17763 winrt-18362 winrt-19041 winrt-20348 winrt-22000 winrt-22621 winrt-23h2 winrt-26100 winrt-insider "><code class="cppcx lang-cppcx" dir="ltr">public ref class DependencyObject</code></pre> <pre class="wrap" data-moniker=" winrt-10240 winrt-10586 winrt-14393 winrt-15063 winrt-16299 winrt-17134 winrt-17763 winrt-18362 winrt-19041 winrt-20348 winrt-22000 winrt-22621 winrt-23h2 winrt-26100 winrt-insider "><code class="cppwinrt lang-cppwinrt" dir="ltr">/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)] /// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] /// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] class DependencyObject</code></pre> <pre class="wrap" data-moniker=" winrt-10240 winrt-10586 winrt-14393 winrt-15063 winrt-16299 winrt-17134 winrt-17763 winrt-18362 winrt-19041 winrt-20348 winrt-22000 winrt-22621 winrt-23h2 winrt-26100 winrt-insider "><code class="csharp lang-csharp" dir="ltr">[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)] [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] public class DependencyObject</code></pre> <pre class="wrap" data-moniker=" winrt-10240 winrt-10586 winrt-14393 winrt-15063 winrt-16299 winrt-17134 winrt-17763 winrt-18362 winrt-19041 winrt-20348 winrt-22000 winrt-22621 winrt-23h2 winrt-26100 winrt-insider "><code class="vb lang-vb" dir="ltr">Public Class DependencyObject</code></pre> <dl class="attributeList stack"> <dt>Inheritance</dt> <dd> <div class="pdlHolder"> <span class="pdl lang-csharp lang-vb"><a href="/en-us/dotnet/api/system.object" data-linktype="absolute-path">Object</a></span> <span class="pdl lang-cppcx">Platform::Object</span> <span class="pdl lang-cppwinrt">IInspectable</span> <span>DependencyObject</span> </div> </dd> </dl> <dl id="derived" class="attributeList stack"> <dt>Derived</dt> <dd> <div> <span class="break-text"> <a class="xref" href="windows.ui.xaml.automation.automationannotation?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Automation.AutomationAnnotation</a> </span> </div> <div> <span class="break-text"> <a class="xref" href="windows.ui.xaml.automation.peers.automationpeer?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Automation.Peers.AutomationPeer</a> </span> </div> <div> <span class="break-text"> <a class="xref" href="windows.ui.xaml.automation.peers.automationpeerannotation?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Automation.Peers.AutomationPeerAnnotation</a> </span> </div> <div> <span class="break-text"> <a class="xref" href="windows.ui.xaml.automation.provider.irawelementprovidersimple?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple</a> </span> </div> <div> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.autosuggestboxquerysubmittedeventargs?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.AutoSuggestBoxQuerySubmittedEventArgs</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.autosuggestboxsuggestionchoseneventargs?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.AutoSuggestBoxSuggestionChosenEventArgs</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.autosuggestboxtextchangedeventargs?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.AutoSuggestBoxTextChangedEventArgs</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.columndefinition?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.ColumnDefinition</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.datepickedeventargs?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.DatePickedEventArgs</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.datepickerflyoutitem?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.DatePickerFlyoutItem</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.iconsource?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.IconSource</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.inktoolbarcustompen?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.InkToolbarCustomPen</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.itemspickedeventargs?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.ItemsPickedEventArgs</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapcamera?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapCamera</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapcontroldatahelper?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapControlDataHelper</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapcustomexperience?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapCustomExperience</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapelement?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapElement</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapinputeventargs?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapInputEventArgs</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapitemscontrol?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapItemsControl</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.maplayer?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapLayer</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapmodel3d?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapModel3D</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.maprouteview?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapRouteView</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapscene?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapScene</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.mapstylesheet?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapStyleSheet</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.maptiledatasource?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapTileDataSource</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.maptilesource?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.MapTileSource</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.maps.streetsidepanorama?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Maps.StreetsidePanorama</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.navigationviewtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.NavigationViewTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.pickerconfirmedeventargs?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.PickerConfirmedEventArgs</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.appbarbuttontemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.AppBarButtonTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.appbartemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.AppBarTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.appbartogglebuttontemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.AppBarToggleButtonTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.calendarviewtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.CalendarViewTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.comboboxtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.commandbarflyoutcommandbartemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBarTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.commandbartemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.CommandBarTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.flyoutbase?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.FlyoutBase</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.gridviewitemtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.GridViewItemTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.jumplistitembackgroundconverter?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.JumpListItemBackgroundConverter</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.jumplistitemforegroundconverter?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.JumpListItemForegroundConverter</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.listviewitemtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.ListViewItemTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.menuflyoutitemtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.MenuFlyoutItemTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.menuflyoutpresentertemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.MenuFlyoutPresenterTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.progressbartemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.ProgressBarTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.progressringtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.ProgressRingTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.settingsflyouttemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.SettingsFlyoutTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.splitviewtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.SplitViewTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.toggleswitchtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.ToggleSwitchTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.primitives.tooltiptemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.Primitives.ToolTipTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.ratingiteminfo?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.RatingItemInfo</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.rowdefinition?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.RowDefinition</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.swipeitem?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.SwipeItem</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.swipeitems?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.SwipeItems</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.timepickedeventargs?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.TimePickedEventArgs</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.treeviewitemtemplatesettings?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.TreeViewItemTemplateSettings</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.controls.treeviewnode?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Controls.TreeViewNode</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.data.bindingbase?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Data.BindingBase</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.data.collectionviewsource?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Data.CollectionViewSource</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.data.relativesource?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Data.RelativeSource</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobjectcollection?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.DependencyObjectCollection</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.documents.contentlinkprovider?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Documents.ContentLinkProvider</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.documents.textelement?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Documents.TextElement</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.documents.texthighlighterbase?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Documents.TextHighlighterBase</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.frameworktemplate?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.FrameworkTemplate</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.input.inputscope?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Input.InputScope</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.input.inputscopename?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Input.InputScopeName</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.input.keyboardaccelerator?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Input.KeyboardAccelerator</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.input.xamluicommand?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Input.XamlUICommand</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.colorkeyframe?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.ColorKeyFrame</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.doublekeyframe?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.DoubleKeyFrame</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.easingfunctionbase?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.EasingFunctionBase</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.keyspline?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.KeySpline</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.navigationtransitioninfo?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.NavigationTransitionInfo</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.objectkeyframe?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.ObjectKeyFrame</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.pointkeyframe?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.PointKeyFrame</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.timeline?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.Timeline</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.animation.transition?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Animation.Transition</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.brush?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Brush</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.cachemode?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.CacheMode</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.generaltransform?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.GeneralTransform</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.geometry?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Geometry</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.gradientstop?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.GradientStop</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.imagesource?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.ImageSource</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.media3d.transform3d?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Media3D.Transform3D</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.pathfigure?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.PathFigure</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.pathsegment?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.PathSegment</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.projection?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Projection</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.shadow?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.Shadow</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.timelinemarker?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.TimelineMarker</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.media.xamllight?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Media.XamlLight</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.navigation.pagestackentry?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Navigation.PageStackEntry</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.printing.printdocument?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Printing.PrintDocument</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.propertypath?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.PropertyPath</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.resourcedictionary?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.ResourceDictionary</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.setterbase?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.SetterBase</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.statetriggerbase?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.StateTriggerBase</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.style?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.Style</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.triggeraction?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.TriggerAction</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.triggerbase?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.TriggerBase</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.uielement?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.UIElement</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.visualstate?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.VisualState</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.visualstategroup?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.VisualStateGroup</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.visualstatemanager?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.VisualStateManager</a> </span> </div> <div class="hiddenDerivedClass" hidden=""> <span class="break-text"> <a class="xref" href="windows.ui.xaml.visualtransition?view=winrt-26100" data-linktype="relative-path">Windows.UI.Xaml.VisualTransition</a> </span> </div> <div><a class="derivedClassesButton" href="#" title="Show all derived classes" data-linktype="self-bookmark">More…</a></div> </dd> </dl> <dl class="attributeList stack"> <dt>Attributes</dt> <dd> <div class="cdlHolder"> <span class="cdl break-text"> <a class="xref" href="windows.foundation.metadata.contractversionattribute?view=winrt-26100" title="Windows.Foundation.Metadata.ContractVersionAttribute" data-linktype="relative-path">ContractVersionAttribute</a></span> <span class="cdl break-text"> <a class="xref" href="windows.foundation.metadata.marshalingbehaviorattribute?view=winrt-26100" title="Windows.Foundation.Metadata.MarshalingBehaviorAttribute" data-linktype="relative-path">MarshalingBehaviorAttribute</a></span> <span class="cdl break-text"> <a class="xref" href="windows.foundation.metadata.threadingattribute?view=winrt-26100" title="Windows.Foundation.Metadata.ThreadingAttribute" data-linktype="relative-path">ThreadingAttribute</a></span> </div> </dd> </dl> <h4 class="propertyInfoTitle stack">Windows requirements</h4> <table class="attributeList width-auto"> <tbody><tr> <td>Device family</td> <td> <div class="pdl"> <span class="cdl">Windows 10 (introduced in 10.0.10240.0)<br></span> </div> </td> </tr> <tr> <td>API contract</td><td> <div class="pdl"> <span class="cdl">Windows.Foundation.UniversalApiContract (introduced in v1.0)<br></span> </div> </td> </tr> </tbody></table> <h2 id="examples">Examples</h2> <p>This example defines a class that derives from DependencyObject, and defines an attached property along with the identifier field. The scenario for this class is that it is a service class that declares an attached property that other UI elements can set in XAML The service potentially acts on the attached property values on those UI elements at run time.</p> <pre><code class="lang-csharp" name="DOMain">public abstract class AquariumServices : DependencyObject { public enum Buoyancy {Floats,Sinks,Drifts} public static readonly DependencyProperty BuoyancyProperty = DependencyProperty.RegisterAttached( "Buoyancy", typeof(Buoyancy), typeof(AquariumServices), new PropertyMetadata(Buoyancy.Floats) ); public static void SetBuoyancy(DependencyObject element, Buoyancy value) { element.SetValue(BuoyancyProperty, value); } public static Buoyancy GetBuoyancy(DependencyObject element) { return (Buoyancy)element.GetValue(BuoyancyProperty); } } </code></pre><pre><code class="lang-vb" name="DOMain">Public Class AquariumServices Inherits DependencyObject Public Enum Buoyancy Floats Sinks Drifts End Enum Public Shared ReadOnly BuoyancyProperty As DependencyProperty = _ DependencyProperty.RegisterAttached( "Buoyancy", _ GetType(Buoyancy), _ GetType(AquariumServices), _ New PropertyMetadata(Buoyancy.Floats)) Public Sub SetBuoyancy(element As DependencyObject, value As Buoyancy) element.SetValue(BuoyancyProperty, value) End Sub Public Function GetBuoyancy(element As DependencyObject) As Buoyancy GetBuoyancy = CType(element.GetValue(BuoyancyProperty), Buoyancy) End Function End Class </code></pre><pre><code class="lang-csharp" name="DOCheckClear">public static bool ClearSetProperty(DependencyObject targetObject, DependencyProperty targetDP) { if (targetObject == null || targetDP == null) { throw new ArgumentNullException(); } object localValue = targetObject.ReadLocalValue(targetDP); if (localValue == DependencyProperty.UnsetValue) { return false; } else { targetObject.ClearValue(targetDP); return true; } } </code></pre><pre><code class="lang-vb" name="DOCheckClear">Public Shared Function ClearSetProperty(targetObject As DependencyObject, targetDP As DependencyProperty) As Boolean If targetObject Is Nothing Or targetDP Is Nothing Then Throw New ArgumentNullException() End If Dim localValue As Object = targetObject.ReadLocalValue(targetDP) If localValue = DependencyProperty.UnsetValue Then ClearSetProperty = False Else targetObject.ClearValue(targetDP) ClearSetProperty = True End If End Function </code></pre> <p>This example shows a simple dependency property declaration. A call to <a href="windows.ui.xaml.dependencyobject.getvalue?view=winrt-26100#windows-ui-xaml-dependencyobject-getvalue(windows-ui-xaml-dependencyproperty)" data-linktype="relative-path">GetValue</a> constitutes the entirety of the <strong>get</strong> accessor implementation for the property wrapper of the new dependency property. A call to <a href="windows.ui.xaml.dependencyobject.setvalue?view=winrt-26100#windows-ui-xaml-dependencyobject-setvalue(windows-ui-xaml-dependencyproperty-system-object)" data-linktype="relative-path">SetValue</a> constitutes the entirety of the <strong>set</strong> accessor implementation. For more examples, see <a href="/en-us/windows/uwp/xaml-platform/custom-dependency-properties" data-linktype="absolute-path">Custom dependency properties</a>.</p> <pre><code class="lang-csharp" name="DOSimpleDP">public class Fish : Control { public static readonly DependencyProperty SpeciesProperty = DependencyProperty.Register( "Species", typeof(String), typeof(Fish), null ); public string Species { get { return (string)GetValue(SpeciesProperty); } set { SetValue(SpeciesProperty, (string)value); } } } </code></pre><pre><code class="lang-vb" name="DOSimpleDP">Public Class Fish Inherits Control Public Shared ReadOnly SpeciesProperty As DependencyProperty = _ DependencyProperty.Register( "Species", _ GetType(String), _ GetType(Fish), _ Nothing) Public Property Species As String Get Species = CType(GetValue(SpeciesProperty), String) End Get Set(value As String) SetValue(SpeciesProperty, value) End Set End Property End Class </code></pre> <h2 id="remarks">Remarks</h2> <p>The DependencyObject class enables dependency property system services on its many derived classes. For more info about the dependency property concept, see <a href="/en-us/windows/uwp/xaml-platform/dependency-properties-overview" data-linktype="absolute-path">Dependency properties overview</a>.</p> <p>The dependency property system's primary function is to compute the values of properties, and to provide system notification about values that have changed. Another key class that participates in the dependency property system is <a href="windows.ui.xaml.dependencyproperty?view=winrt-26100" data-linktype="relative-path">DependencyProperty</a>. <a href="windows.ui.xaml.dependencyproperty?view=winrt-26100" data-linktype="relative-path">DependencyProperty</a> enables the registration of dependency properties into the property system, whereas DependencyObject as a base class enables objects to use and set the dependency properties.</p> <p>Here are some notable services and characteristics that DependencyObject provides or supports:</p> <ul> <li>Dependency property hosting support for the existing Windows Runtime dependency properties.</li> <li>Custom dependency property hosting support. You register a dependency property by calling the <a href="windows.ui.xaml.dependencyproperty.register?view=winrt-26100#windows-ui-xaml-dependencyproperty-register(system-string-windows-ui-xaml-interop-typename-windows-ui-xaml-interop-typename-windows-ui-xaml-propertymetadata)" data-linktype="relative-path">Register</a> method and storing the method's return value as a public static property in your DependencyObject class.</li> <li>Attached property hosting support for the existing Windows Runtime attached properties.</li> <li>Custom attached property hosting support. You register a dependency property for the attached property usage by calling the <a href="windows.ui.xaml.dependencyproperty.registerattached?view=winrt-26100#windows-ui-xaml-dependencyproperty-registerattached(system-string-windows-ui-xaml-interop-typename-windows-ui-xaml-interop-typename-windows-ui-xaml-propertymetadata)" data-linktype="relative-path">RegisterAttached</a> method and storing the method's return value as a public static property in your class.</li> <li><strong>Get</strong> and <strong>Set</strong> utility methods for values of any dependency properties that exist on a DependencyObject. You use these when defining custom dependency property "wrappers" and can also use them from app code as an alternative to using existing "wrapper" properties.</li> <li>Advanced-scenario utility for examining metadata or property values (for example <a href="windows.ui.xaml.dependencyobject.getanimationbasevalue?view=winrt-26100#windows-ui-xaml-dependencyobject-getanimationbasevalue(windows-ui-xaml-dependencyproperty)" data-linktype="relative-path">GetAnimationBaseValue</a>).</li> <li>Enforcement of thread affinity to the main UI thread of the Windows Runtime for all DependencyObject instances.</li> <li>The <a href="windows.ui.xaml.dependencyobject.dispatcher?view=winrt-26100#windows-ui-xaml-dependencyobject-dispatcher" data-linktype="relative-path">Dispatcher</a> property for advanced threading scenarios. Getting the <a href="windows.ui.xaml.dependencyobject.dispatcher?view=winrt-26100#windows-ui-xaml-dependencyobject-dispatcher" data-linktype="relative-path">Dispatcher</a> value provides a reference to a <a href="windows.ui.core.coredispatcher?view=winrt-26100" data-linktype="relative-path">CoreDispatcher</a> object. With the <a href="windows.ui.core.coredispatcher?view=winrt-26100" data-linktype="relative-path">CoreDispatcher</a>, a worker thread can run code that use a DependencyObject but is not on the UI thread, because the <a href="windows.ui.core.coredispatcher?view=winrt-26100" data-linktype="relative-path">CoreDispatcher</a> can defer the execution to an asynchronous operation that won't block or otherwise interfere with the UI thread. See "<strong>DependencyObject</strong> and threading" section below.</li> <li>Basic data binding and styling support, by enabling properties to be set as expressions to be evaluated at some later point in an object's lifetime. These concepts are explained in more detail in <a href="/en-us/windows/uwp/xaml-platform/dependency-properties-overview" data-linktype="absolute-path">Dependency properties overview</a>. See also <a href="/en-us/windows/uwp/data-binding/data-binding-in-depth" data-linktype="absolute-path">Data binding in depth</a>.</li> </ul> <h3 id="dependencyobject-and-threading"><strong>DependencyObject</strong> and threading</h3> <p>All DependencyObject instances must be created on the UI thread that is associated with the current <a href="windows.ui.xaml.window?view=winrt-26100" data-linktype="relative-path">Window</a> for an app. This is enforced by the system, and there are two important implications of this for your code:</p> <ul> <li>Code that uses API from two DependencyObject instances will always be run on the same thread, which is always the UI thread. You don't typically run into threading issues in this scenario.</li> <li>Code that is not running on the main UI thread cannot access a DependencyObject directly because a DependencyObject has thread affinity to the UI thread only. Only code that runs on the UI thread can change or even read the value of a dependency property. For example a worker thread that you've initiated with a .NET <strong>Task</strong> or an explicit <a href="windows.system.threading.threadpool?view=winrt-26100" data-linktype="relative-path">ThreadPool</a> thread won't be able to read dependency properties or call other APIs.</li> </ul> <p>You aren't completely blocked from using a DependencyObject from a worker thread. But you must get a <a href="windows.ui.core.coredispatcher?view=winrt-26100" data-linktype="relative-path">CoreDispatcher</a> object (the value of <a href="windows.ui.xaml.dependencyobject.dispatcher?view=winrt-26100#windows-ui-xaml-dependencyobject-dispatcher" data-linktype="relative-path">DependencyObject.Dispatcher</a>) from a DependencyObject in order to get across the deliberate separation between the app UI thread and any other threads running on the system. The <a href="windows.ui.core.coredispatcher?view=winrt-26100" data-linktype="relative-path">CoreDispatcher</a> exposes the <a href="windows.ui.core.coredispatcher.runasync?view=winrt-26100#windows-ui-core-coredispatcher-runasync(windows-ui-core-coredispatcherpriority-windows-ui-core-dispatchedhandler)" data-linktype="relative-path">RunAsync</a> method. Call <a href="windows.ui.core.coredispatcher.runasync?view=winrt-26100#windows-ui-core-coredispatcher-runasync(windows-ui-core-coredispatcherpriority-windows-ui-core-dispatchedhandler)" data-linktype="relative-path">RunAsync</a> to run your awaitable code (an <a href="windows.foundation.iasyncaction?view=winrt-26100" data-linktype="relative-path">IAsyncAction</a>). If it's simple code you can use a lambda expression, otherwise you can implement as a delegate (<a href="windows.ui.core.dispatchedhandler?view=winrt-26100" data-linktype="relative-path">DispatchedHandler</a>). The system determines a time that your code can be run. Because it's enabling access across threads, <a href="windows.ui.xaml.dependencyobject.dispatcher?view=winrt-26100#windows-ui-xaml-dependencyobject-dispatcher" data-linktype="relative-path">DependencyObject.Dispatcher</a> is the only instance API of DependencyObject or any of its subclasses that can be accessed from a non-UI thread without throwing a cross-thread exception. All other DependencyObject APIs throw an exception if you attempt to call them from a worker thread or any other non-UI thread.</p> <p>Threading issues can usually be avoided in typical UI code. However, devices aren't usually associated with the UI thread. If you are using info obtained from a device to update the UI in real-time, you often must get a <a href="windows.ui.core.coredispatcher?view=winrt-26100" data-linktype="relative-path">CoreDispatcher</a> so that you can update the UI. Services are another case where the code you use to access the service might not be running on the UI thread.</p> <p>One code scenario where you might encounter DependencyObject-related threading issues if you are defining your own DependencyObject types and you attempt to use them for data sources, or other scenarios where a DependencyObject isn't necessarily appropriate (because the object is not directly related to the UI). For example, you might be attempting perf optimizations with background threads or other worker threads that are changing values of the objects prior to presentation, or in response to a device, service or other external input. Evaluate whether you really need dependency properties for your scenario; maybe standard properties are adequate.</p> <h3 id="dependencyobject-derived-classes"><strong>DependencyObject</strong> derived classes</h3> <p>DependencyObject is the parent class for several immediately derived classes that are all fundamental to the programming model you use for your app and its XAML UI. Here are some of the notable derived classes:</p> <ul> <li><a href="windows.ui.xaml.uielement?view=winrt-26100" data-linktype="relative-path">UIElement</a>: The base class for most visual objects that can process input in the UI. <a href="windows.ui.xaml.frameworkelement?view=winrt-26100" data-linktype="relative-path">FrameworkElement</a> is further in this hierarchy, as is <a href="windows.ui.xaml.controls.control?view=winrt-26100" data-linktype="relative-path">Control</a>, so there are hundreds of controls and other classes in the Windows Runtime that all have the <a href="windows.ui.xaml.uielement?view=winrt-26100" data-linktype="relative-path">UIElement</a> class in their class hierarchies.</li> <li>XAML style system support classes: <a href="windows.ui.xaml.frameworktemplate?view=winrt-26100" data-linktype="relative-path">FrameworkTemplate</a> (parent of <a href="windows.ui.xaml.controls.controltemplate?view=winrt-26100" data-linktype="relative-path">ControlTemplate</a>, <a href="windows.ui.xaml.datatemplate?view=winrt-26100" data-linktype="relative-path">DataTemplate</a>, <a href="windows.ui.xaml.controls.itemspaneltemplate?view=winrt-26100" data-linktype="relative-path">ItemsPanelTemplate</a>), <a href="windows.ui.xaml.style?view=winrt-26100" data-linktype="relative-path">Style</a>, <a href="windows.ui.xaml.setterbase?view=winrt-26100" data-linktype="relative-path">SetterBase</a> (parent of <a href="windows.ui.xaml.setter?view=winrt-26100" data-linktype="relative-path">Setter</a>), <a href="windows.ui.xaml.controls.primitives.tooltiptemplatesettings?view=winrt-26100" data-linktype="relative-path">ToolTipTemplateSettings</a> and other *<strong>TemplateSettings</strong>.</li> <li>Visual state model: <a href="windows.ui.xaml.media.animation.transition?view=winrt-26100" data-linktype="relative-path">Transition</a>, <a href="windows.ui.xaml.visualstate?view=winrt-26100" data-linktype="relative-path">VisualState</a>, <a href="windows.ui.xaml.visualstategroup?view=winrt-26100" data-linktype="relative-path">VisualStateGroup</a>, <a href="windows.ui.xaml.visualstatemanager?view=winrt-26100" data-linktype="relative-path">VisualStateManager</a>, <a href="windows.ui.xaml.visualtransition?view=winrt-26100" data-linktype="relative-path">VisualTransition</a>.</li> <li>Data binding support: <a href="windows.ui.xaml.data.bindingbase?view=winrt-26100" data-linktype="relative-path">BindingBase</a> (parent of <a href="windows.ui.xaml.data.binding?view=winrt-26100" data-linktype="relative-path">Binding</a>), <a href="windows.ui.xaml.data.collectionviewsource?view=winrt-26100" data-linktype="relative-path">CollectionViewSource</a>, <a href="windows.ui.xaml.propertypath?view=winrt-26100" data-linktype="relative-path">PropertyPath</a>, <a href="windows.ui.xaml.data.relativesource?view=winrt-26100" data-linktype="relative-path">RelativeSource</a>.</li> <li>Storyboarded animations: <a href="windows.ui.xaml.media.animation.timeline?view=winrt-26100" data-linktype="relative-path">Timeline</a> (parent of <a href="windows.ui.xaml.media.animation.storyboard?view=winrt-26100" data-linktype="relative-path">Storyboard</a>, typed animations, theme animations), typed keyframes (like <a href="windows.ui.xaml.media.animation.colorkeyframe?view=winrt-26100" data-linktype="relative-path">ColorKeyFrame</a>), <a href="windows.ui.xaml.media.animation.keyspline?view=winrt-26100" data-linktype="relative-path">KeySpline</a>, <a href="windows.ui.xaml.media.animation.easingfunctionbase?view=winrt-26100" data-linktype="relative-path">EasingFunctionBase</a>.</li> <li>XAML graphics and rendering primitives: <a href="windows.ui.xaml.media.brush?view=winrt-26100" data-linktype="relative-path">Brush</a>, <a href="windows.ui.xaml.media.geometry?view=winrt-26100" data-linktype="relative-path">Geometry</a>, <a href="windows.ui.xaml.media.generaltransform?view=winrt-26100" data-linktype="relative-path">GeneralTransform</a>, <a href="windows.ui.xaml.media.gradientstop?view=winrt-26100" data-linktype="relative-path">GradientStop</a>, <a href="windows.ui.xaml.media.pathfigure?view=winrt-26100" data-linktype="relative-path">PathFigure</a>, <a href="windows.ui.xaml.media.pathsegment?view=winrt-26100" data-linktype="relative-path">PathSegment</a>, <a href="windows.ui.xaml.media.projection?view=winrt-26100" data-linktype="relative-path">Projection</a>.</li> <li>Imaging and render surface interop: <a href="windows.ui.xaml.media.imagesource?view=winrt-26100" data-linktype="relative-path">ImageSource</a> (parent of <a href="windows.ui.xaml.media.imaging.bitmapsource?view=winrt-26100" data-linktype="relative-path">BitmapSource</a>, <a href="windows.ui.xaml.media.imaging.rendertargetbitmap?view=winrt-26100" data-linktype="relative-path">RenderTargetBitmap</a>, <a href="windows.ui.xaml.media.imaging.surfaceimagesource?view=winrt-26100" data-linktype="relative-path">SurfaceImageSource</a> and others).</li> <li><a href="windows.ui.xaml.window?view=winrt-26100" data-linktype="relative-path">Window</a>: represents the main app window.</li> <li><a href="windows.ui.xaml.controls.primitives.flyoutbase?view=winrt-26100" data-linktype="relative-path">FlyoutBase</a> (parent of <a href="windows.ui.xaml.controls.flyout?view=winrt-26100" data-linktype="relative-path">Flyout</a> and <a href="windows.ui.xaml.controls.menuflyout?view=winrt-26100" data-linktype="relative-path">MenuFlyout</a>).</li> <li><a href="windows.ui.xaml.resourcedictionary?view=winrt-26100" data-linktype="relative-path">ResourceDictionary</a>: defines keyed resources in XAML.</li> <li><a href="windows.ui.xaml.documents.textelement?view=winrt-26100" data-linktype="relative-path">TextElement</a>: parent of <a href="windows.ui.xaml.documents.block?view=winrt-26100" data-linktype="relative-path">Block</a> and <a href="windows.ui.xaml.documents.inline?view=winrt-26100" data-linktype="relative-path">Inline</a>, these in turn are base classes for text elements used for <a href="windows.ui.xaml.controls.textblock?view=winrt-26100" data-linktype="relative-path">TextBlock</a> content or the rich text elements.</li> <li><a href="windows.ui.xaml.automation.peers.automationpeer?view=winrt-26100" data-linktype="relative-path">AutomationPeer</a>: base class for Microsoft UI Automation peers that represent XAML controls to a Microsoft UI Automation listener. Also, <a href="windows.ui.xaml.automation.provider.irawelementprovidersimple?view=winrt-26100" data-linktype="relative-path">IRawElementProviderSimple</a>.</li> <li>Miscellaneous: <a href="windows.ui.xaml.uielement.cachemode?view=winrt-26100#windows-ui-xaml-uielement-cachemode" data-linktype="relative-path">CacheMode</a>, <a href="windows.ui.xaml.controls.columndefinition?view=winrt-26100" data-linktype="relative-path">ColumnDefinition</a>, <a href="windows.ui.xaml.dependencyobjectcollection?view=winrt-26100" data-linktype="relative-path">DependencyObjectCollection</a>, <a href="windows.ui.xaml.input.inputscope?view=winrt-26100" data-linktype="relative-path">InputScope</a>, <a href="windows.ui.xaml.input.inputscopename?view=winrt-26100" data-linktype="relative-path">InputScopeName</a>, <a href="windows.ui.xaml.navigation.pagestackentry?view=winrt-26100" data-linktype="relative-path">PageStackEntry</a>, <a href="windows.ui.xaml.printing.printdocument?view=winrt-26100" data-linktype="relative-path">PrintDocument</a>, <a href="windows.ui.xaml.controls.rowdefinition?view=winrt-26100" data-linktype="relative-path">RowDefinition</a>, <a href="windows.ui.xaml.media.timelinemarker?view=winrt-26100" data-linktype="relative-path">TimelineMarker</a>, <a href="windows.ui.xaml.triggeraction?view=winrt-26100" data-linktype="relative-path">TriggerAction</a>, <a href="windows.ui.xaml.triggerbase?view=winrt-26100" data-linktype="relative-path">TriggerBase</a>.</li> </ul> <h2 id="constructors"> Constructors </h2> <table class="table"> <tbody><tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.-ctor?view=winrt-26100#windows-ui-xaml-dependencyobject-ctor" data-linktype="relative-path">DependencyObject()</a> </span> </td> <td class="has-text-wrap"> <p>Provides base class initialization behavior for <a href="windows.ui.xaml.dependencyobject?view=winrt-26100" data-linktype="relative-path">DependencyObject</a> derived classes.</p> </td> </tr> </tbody></table> <h2 id="properties"> Properties </h2> <table class="table"> <tbody><tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.dispatcher?view=winrt-26100#windows-ui-xaml-dependencyobject-dispatcher" data-linktype="relative-path">Dispatcher</a> </span> </td> <td class="has-text-wrap"> <p>Gets the <a href="windows.ui.core.coredispatcher?view=winrt-26100" data-linktype="relative-path">CoreDispatcher</a> that this object is associated with. The <a href="windows.ui.core.coredispatcher?view=winrt-26100" data-linktype="relative-path">CoreDispatcher</a> represents a facility that can access the <a href="windows.ui.xaml.dependencyobject?view=winrt-26100" data-linktype="relative-path">DependencyObject</a> on the UI thread even if the code is initiated by a non-UI thread.</p> </td> </tr> </tbody></table> <h2 id="methods"> Methods </h2> <table class="table"> <tbody><tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.clearvalue?view=winrt-26100#windows-ui-xaml-dependencyobject-clearvalue(windows-ui-xaml-dependencyproperty)" data-linktype="relative-path">ClearValue(DependencyProperty)</a> </span> </td> <td class="has-text-wrap"> <p>Clears the local value of a dependency property.</p> </td> </tr> <tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.getanimationbasevalue?view=winrt-26100#windows-ui-xaml-dependencyobject-getanimationbasevalue(windows-ui-xaml-dependencyproperty)" data-linktype="relative-path">GetAnimationBaseValue(DependencyProperty)</a> </span> </td> <td class="has-text-wrap"> <p>Returns any base value established for a dependency property, which would apply in cases where an animation is not active.</p> </td> </tr> <tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.getvalue?view=winrt-26100#windows-ui-xaml-dependencyobject-getvalue(windows-ui-xaml-dependencyproperty)" data-linktype="relative-path">GetValue(DependencyProperty)</a> </span> </td> <td class="has-text-wrap"> <p>Returns the current effective value of a dependency property from a <a href="windows.ui.xaml.dependencyobject?view=winrt-26100" data-linktype="relative-path">DependencyObject</a>.</p> </td> </tr> <tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.readlocalvalue?view=winrt-26100#windows-ui-xaml-dependencyobject-readlocalvalue(windows-ui-xaml-dependencyproperty)" data-linktype="relative-path">ReadLocalValue(DependencyProperty)</a> </span> </td> <td class="has-text-wrap"> <p>Returns the local value of a dependency property, if a local value is set.</p> </td> </tr> <tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.registerpropertychangedcallback?view=winrt-26100#windows-ui-xaml-dependencyobject-registerpropertychangedcallback(windows-ui-xaml-dependencyproperty-windows-ui-xaml-dependencypropertychangedcallback)" data-linktype="relative-path">RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)</a> </span> </td> <td class="has-text-wrap"> <p>Registers a notification function for listening to changes to a specific <a href="windows.ui.xaml.dependencyproperty?view=winrt-26100" data-linktype="relative-path">DependencyProperty</a> on this <a href="windows.ui.xaml.dependencyobject?view=winrt-26100" data-linktype="relative-path">DependencyObject</a> instance.</p> </td> </tr> <tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.setvalue?view=winrt-26100#windows-ui-xaml-dependencyobject-setvalue(windows-ui-xaml-dependencyproperty-system-object)" data-linktype="relative-path">SetValue(DependencyProperty, Object)</a> </span> </td> <td class="has-text-wrap"> <p>Sets the local value of a dependency property on a <a href="windows.ui.xaml.dependencyobject?view=winrt-26100" data-linktype="relative-path">DependencyObject</a>.</p> </td> </tr> <tr> <td> <span class="break-text"> <a class="xref" href="windows.ui.xaml.dependencyobject.unregisterpropertychangedcallback?view=winrt-26100#windows-ui-xaml-dependencyobject-unregisterpropertychangedcallback(windows-ui-xaml-dependencyproperty-system-int64)" data-linktype="relative-path">UnregisterPropertyChangedCallback(DependencyProperty, Int64)</a> </span> </td> <td class="has-text-wrap"> <p>Cancels a change notification that was previously registered by calling <a href="windows.ui.xaml.dependencyobject.registerpropertychangedcallback?view=winrt-26100#windows-ui-xaml-dependencyobject-registerpropertychangedcallback(windows-ui-xaml-dependencyproperty-windows-ui-xaml-dependencypropertychangedcallback)" data-linktype="relative-path">RegisterPropertyChangedCallback</a>.</p> </td> </tr> </tbody></table> <h2>Applies to</h2> <div class="table-wrapper moniker-applies-to-table"> <table class="table table-complex has-row-header-background"> <thead> </thead> </table> </div> <h2 id="see-also">See also</h2> <ul> <li><a href="windows.ui.xaml.dependencyproperty?view=winrt-26100" class="no-loc" data-linktype="relative-path">DependencyProperty</a></li> <li><a href="/en-us/windows/uwp/xaml-platform/dependency-properties-overview" data-linktype="absolute-path">Dependency properties overview</a></li> <li><a href="/en-us/windows/uwp/xaml-platform/custom-dependency-properties" data-linktype="absolute-path">Custom dependency properties</a></li> <li><a href="/en-us/windows/uwp/xaml-platform/custom-attached-properties" data-linktype="absolute-path">Custom attached properties</a></li> <li><a href="/en-us/windows/uwp/xaml-platform/attached-properties-overview" data-linktype="absolute-path">Attached properties overview</a></li> </ul> </div><div id="ms--inline-notifications" class="margin-block-xs" data-bi-name="inline-notification"></div><div id="assertive-live-region" role="alert" aria-live="assertive" class="visually-hidden" aria-relevant="additions" aria-atomic="true"></div> <div id="polite-live-region" role="status" aria-live="polite" class="visually-hidden" aria-relevant="additions" aria-atomic="true"></div> <!-- </content> --> </main><!-- recommendations section --><!-- end recommendations section --> <!-- feedback section --><section id="site-user-feedback-footer" class="font-size-sm margin-top-md" data-test-id="site-user-feedback-footer" data-bi-name="site-feedback-section"> <hr class="hr" /> <h2 id="feedback" class="title is-3">Feedback</h2> <div class="display-flex flex-wrap-wrap align-items-center"> <p class="font-weight-semibold margin-xxs margin-left-none">Was this page helpful?</p> <div class="buttons"> <button class="thumb-rating-button like button button-primary button-sm" data-test-id="footer-rating-yes" data-binary-rating-response="rating-yes" type="button" title="This article is helpful" data-bi-name="button-rating-yes" aria-pressed="false" > <span class="icon" aria-hidden="true"> <span class="docon docon-like"></span> </span> <span>Yes</span> </button> <button class="thumb-rating-button dislike button button-primary button-sm" data-test-id="footer-rating-no" data-binary-rating-response="rating-no" type="button" title="This article is not helpful" data-bi-name="button-rating-no" aria-pressed="false" > <span class="icon" aria-hidden="true"> <span class="docon docon-dislike"></span> </span> <span>No</span> </button> </div> </div><div class="display-flex flex-wrap-wrap margin-top-xxs"><div> <a data-bi-name="provide-feedback-cta" class="has-external-link-indicator" href="https://github.com/microsoft/microsoft-ui-xaml/issues/new/choose" data-bi-name="product-feedback" > <span>Provide product feedback</span> </a><span class="margin-inline-xxs" aria-hidden="true">|</span></div><a href="https://learn.microsoft.com/answers/tags/184/windows-app-sdk/" class="has-external-link-indicator" data-bi-name="get-product-support"> <span>Get product support</span> </a></div> </section><!-- end feedback section --> <!-- feedback report section --><!-- end feedback report section --><div class="border-top is-visible-interactive has-default-focus margin-top-sm "><footer id="footer-interactive" data-bi-name="footer" class="footer-layout"><div class="display-flex gap-xs flex-wrap-wrap is-full-height padding-right-lg-desktop"><a data-mscc-ic="false" class="locale-selector-link button button-sm button-clear flex-shrink-0" href="#" data-bi-name="select-locale"> <span class="icon" aria-hidden="true"> <span class="docon docon-world"></span> </span> <span class="local-selector-link-text"></span></a><div class="ccpa-privacy-link" data-ccpa-privacy-link hidden> <a href="https://aka.ms/yourcaliforniaprivacychoices" class="button button-sm button-clear flex-shrink-0" data-mscc-ic="false" data-bi-name="your-privacy-choices" > <svg role="img" aria-label="California Consumer Privacy Act (CCPA) Opt-Out Icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 14" xml:space="preserve" height="16" width="43" focusable="false" > <title>California Consumer Privacy Act (CCPA) Opt-Out Icon</title> <path d="M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#fff"></path> <path d="M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#06f"></path> <path d="M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z" style="fill:#fff"></path> <path d="M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z" style="fill:#06f"></path> </svg> <span>Your Privacy Choices</span> </a> </div> <div class="flex-shrink-0"> <div class="dropdown has-caret-up"> <button class="dropdown-trigger button button-clear button-sm has-inner-focus theme-dropdown-trigger" aria-controls="theme-menu-interactive" aria-expanded="false" title="Theme" data-bi-name="theme"> <span class="icon"> <span class="docon docon-sun" aria-hidden="true"></span> </span> <span>Theme</span> <span class="icon expanded-indicator" aria-hidden="true"> <span class="docon docon-chevron-down-light"></span> </span> </button> <div class="dropdown-menu" id="theme-menu-interactive" role="menu"> <ul class="theme-selector padding-xxs" role="none"> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="light"> <span class="theme-light margin-right-xxs"> <span class="theme-selector-icon border display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>Light</span> </button> </li> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="dark"> <span class="theme-dark margin-right-xxs"> <span class="border theme-selector-icon display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>Dark</span> </button> </li> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="high-contrast"> <span class="theme-high-contrast margin-right-xxs"> <span class="border theme-selector-icon display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>High contrast</span> </button> </li> </ul> </div> </div> </div> </div> <ul class="links" data-bi-name="footerlinks"> <li class="manage-cookies-holder" hidden></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/previous-versions/" data-bi-name="archivelink">Previous Versions</a></li> <li><a class="external-link-indicator" data-mscc-ic="false" href="https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog" data-bi-name="bloglink">Blog</a></li> <li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/contribute/" data-bi-name="contributorGuide">Contribute</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">Privacy</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://www.microsoft.com/legal/intellectualproperty/Trademarks/" data-bi-name="trademarks">Trademarks</a></li><li>&copy; Microsoft 2024</li> </ul> </footer></div></div><div id="ms--additional-resources" class="right-container column is-4-desktop display-none display-block-desktop" data-bi-name="pageactions" role="complementary" aria-label="Additional resources" > <div id="affixed-right-container" class="margin-top-sm-tablet" data-bi-name="right-column"> <h2 id="ms--additional-resources-heading" class="title is-6 margin-top-md" hidden>Additional resources</h2> <section id="right-rail-events" data-bi-name="events-card" hidden></section> <section id="right-rail-training" data-bi-name="learning-resources-card" hidden></section> <section id="right-rail-recommendations" data-bi-name="recommendations" hidden></section> <nav id="side-doc-outline" class="doc-outline" data-bi-name="intopic toc" aria-label="In this article"> <h3>In this article</h3> </nav> <section id="right-rail-qna" class="margin-top-xxs" data-bi-name="qna-link-card" hidden></section> </div> </div></div> <!--end of div.columns --> </section> <!--end of .primary-holder --> <!-- interactive container --> <aside id="interactive-container" class="interactive-container is-visible-interactive column has-body-background-dark "> </aside> <!-- end of interactive container --> </div> </div> <!--end of .mainContainer --> <section class="border-top has-default-focus is-hidden-interactive margin-top-sm "><footer id="footer" data-bi-name="footer" class="footer-layout uhf-container has-padding" role="contentinfo"><div class="display-flex gap-xs flex-wrap-wrap is-full-height padding-right-lg-desktop"><a data-mscc-ic="false" class="locale-selector-link button button-sm button-clear flex-shrink-0" href="#" data-bi-name="select-locale"> <span class="icon" aria-hidden="true"> <span class="docon docon-world"></span> </span> <span class="local-selector-link-text"></span></a><div class="ccpa-privacy-link" data-ccpa-privacy-link hidden> <a href="https://aka.ms/yourcaliforniaprivacychoices" class="button button-sm button-clear flex-shrink-0" data-mscc-ic="false" data-bi-name="your-privacy-choices" > <svg role="img" aria-label="California Consumer Privacy Act (CCPA) Opt-Out Icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 14" xml:space="preserve" height="16" width="43" focusable="false" > <title>California Consumer Privacy Act (CCPA) Opt-Out Icon</title> <path d="M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#fff"></path> <path d="M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#06f"></path> <path d="M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z" style="fill:#fff"></path> <path d="M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z" style="fill:#06f"></path> </svg> <span>Your Privacy Choices</span> </a> </div> <div class="flex-shrink-0"> <div class="dropdown has-caret-up"> <button class="dropdown-trigger button button-clear button-sm has-inner-focus theme-dropdown-trigger" aria-controls="theme-menu" aria-expanded="false" title="Theme" data-bi-name="theme"> <span class="icon"> <span class="docon docon-sun" aria-hidden="true"></span> </span> <span>Theme</span> <span class="icon expanded-indicator" aria-hidden="true"> <span class="docon docon-chevron-down-light"></span> </span> </button> <div class="dropdown-menu" id="theme-menu" role="menu"> <ul class="theme-selector padding-xxs" role="none"> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="light"> <span class="theme-light margin-right-xxs"> <span class="theme-selector-icon border display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>Light</span> </button> </li> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="dark"> <span class="theme-dark margin-right-xxs"> <span class="border theme-selector-icon display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>Dark</span> </button> </li> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="high-contrast"> <span class="theme-high-contrast margin-right-xxs"> <span class="border theme-selector-icon display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>High contrast</span> </button> </li> </ul> </div> </div> </div> </div> <ul class="links" data-bi-name="footerlinks"> <li class="manage-cookies-holder" hidden></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/previous-versions/" data-bi-name="archivelink">Previous Versions</a></li> <li><a class="external-link-indicator" data-mscc-ic="false" href="https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog" data-bi-name="bloglink">Blog</a></li> <li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/contribute/" data-bi-name="contributorGuide">Contribute</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">Privacy</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://www.microsoft.com/legal/intellectualproperty/Trademarks/" data-bi-name="trademarks">Trademarks</a></li><li>&copy; Microsoft 2024</li> </ul> </footer> </section> <div id="action-panel" role="region" aria-label="Action Panel" class="action-panel has-default-focus" tabindex="-1"></div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10