내부 바인딩 I가 다음 코드 조각 :스타일
<Style TargetType="{x:Type ribbon:Button}">
<Setter Property="ToolTip" Value="{Binding Label}" />
</Style>
이 잘 작동하지만하지 않는 이유는이 일을 올바른 방식으로 작동 또는 무엇 :
<Style TargetType="{x:Type ribbon:Button}">
<Setter Property="ToolTip">
<Setter.Value>
<ToolTip Content="{Binding Label}" />
</Setter.Value>
</Setter>
</Style>
같은 일을하는 이유는 게재 위치 등등과 같은 툴팁의 다른 속성을 변경하고 싶습니다. 두 번째 방법으로 만 가능합니다.
내가 당신 두번째 방법은 작동하지 않습니다 어떤 이유가 표시되지 않습니다. 둘 다 괜찮을거야. –