Hi
I'm trying to get the tooltip for my cells to wrap the text but I can't figure out how. Can i go directly in the editor and set it somehow?
/S
<Style x:Key="Comment" TargetType="{x:Type Editors:XamTextEditor}" >
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Text, Converter={StaticResource stringToBoolConverter}}" Value="True">
<Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Text}"/>
</DataTrigger>
</Style>
<DataPresenter:Field Name="CommentTextDisplay">
<DataPresenter:Field.Settings>
<DataPresenter:FieldSettings>
<DataPresenter:FieldSettings.EditorStyle>
<Style BasedOn="{StaticResource Comment}" TargetType="{x:Type Editors:XamTextEditor}">
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="ValueConstraint">
<Setter.Value>
<Editors:ValueConstraint MaxLength="255"/>
</Setter.Value>
</Setter>
</DataPresenter:FieldSettings.EditorStyle>
</DataPresenter:FieldSettings>
</DataPresenter:Field.Settings>
</DataPresenter:Field>
Nevermind I fixed it :)
<Style TargetType="{x:Type ToolTip}">
<Setter Property="Template" >
<ControlTemplate TargetType="{x:Type ToolTip}">
<Border Margin="2" BorderThickness="1" BorderBrush="Black">
<TextBlock TextWrapping="Wrap" MaxWidth="150" Background="Beige" Text="{Binding Content, RelativeSource ={RelativeSource TemplatedParent}}"/>
</Border>
</ControlTemplate>