<Style TargetType="{x:Type TextBox}">
<Setter Property="Margin" Value="1"></Setter>
<Setter Property="Background" Value="{x:Null}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="ToolTip">
<Setter.Value>
<DockPanel Background="Gray">
<TextBlock Text="{Binding Source={ TextBox.Text}}"/>
</DockPanel>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Wheat"></Setter>
</Trigger>
</Style.Triggers>
</Style>
==========================================
"<TextBlock Text="{Binding Source={ TextBox.Text}}"/>"
I want to bind the text of a text field to a Textbox property, such as text or something else. but you know what I think is the higher dose. can you help me, thanks a lot
source
share