Hello,
We are using PropertyGrid as the following.
When change column width smaller, header text will be ommited. (ex. "Na...")
We would like to show tooltip of header text when it is ommited.
Would you please tell me how to do it?
Xaml:
<Window
x:Class="PropertyGridSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:grids="http://schemas.actiprosoftware.com/winfx/xaml/grids"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="800"
Height="450"
mc:Ignorable="d">
<Grid>
<grids:PropertyGrid
x:Name="MyPropertyGrid"
AreColumnHeadersVisible="True"
DataObject="{Binding RelativeSource={RelativeSource AncestorType=Window}}" />
</Grid>
</Window>
Code behind:
namespace PropertyGridSample
{
using ActiproSoftware.Windows.Controls.Grids;
using System.Windows;
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
foreach (var column in MyPropertyGrid.Columns.OfType<TreeListViewColumn>())
{
column.MinWidth = 20;
column.MaxWidth = double.NaN;
}
}
}
}