Welcome to the Xceed Community | Help
Community Search  
More Search Options

Displaying tooltips

Sort Posts: Previous Next
  •  10-09-2008, 9:02 AM Post no. 28174

    Displaying tooltips

    The following example demonstrates how to display the entire content of a cell in a tool tip.

    <Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">
      <Grid.Resources>
        <xcdg:DataGridCollectionViewSource x:Key="cvs_orders"
                                        Source="{Binding Source={x:Static Application.Current},  Path=Orders}"/>

        <Style TargetType="{x:Type xcdg:DataCell}">
          <Setter Property="ToolTip"
                  Value="{Binding RelativeSource={RelativeSource Self}, Path=Content}"/>
        </Style>
      </Grid.Resources>

      <xcdg:DataGridControl x:Name="OrdersGrid"
                           ItemsSource="{Binding Source={StaticResource cvs_orders}}"/>       
    </Grid>
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.