10
내가 Value
속성 값이 아닙니다 설명 가능한 인라인 인 setter를 쓸 때마다, 나는 API는 이것을 허용 것이다, [ContentProperty("Value")]
으로 Setter
클래스를 표시하지 않는다는 사실 저주 :Setter.Value가 ContentProperty가 아닌 다른 좋은 이유가 있습니까?
<Setter Property="BitmapEffect">
<Setter.Value>
<OuterGlowBitmapEffect GlowColor="#AAC" Opacity="0.2" GlowSize="1.25" />
</Setter.Value>
</Setter>
을 .. . 이것을 다음으로 단순화하십시오.
<Setter Property="BitmapEffect">
<OuterGlowBitmapEffect GlowColor="#AAC" Opacity="0.2" GlowSize="1.25" />
</Setter>
제 질문은 다소 두 가지입니다. 첫째, API가 이렇게 구성되지 않은 이유는 무엇입니까? 두 번째로 WPF API를 제어하지 않더라도이 메타 데이터를 XamlReader
에서 사용할 수 없게 만드는 것이 있습니까?
ContentProperty와 좋은 점! 1up – Stimul8d