---
title: "x:Name x:Key  Name区别"
author: "jcair"
date: "2015-06-25T15:40:45Z"
tags: []
categories: ["编程语言"]
slug: "x-name-x-key-name"
draft: false
lastmod: "2015-06-25T15:40:45Z"
id: 2222047
url: "https://jcair.iteye.com/blog/2222047"
---

x:Name x:Key  Name区别

1、x:Key 只能在资源中；
="{StaticResource ResourceKey=FQCustomDataGrid}"
ResourceKey用的是key，不能是name

2、