Listview Issues - A Need Hint

I am building a WPF application in C # using VS2010

I have a list containing items from the database, and each item contains a field called (Name) and another field called (time).

In the database, each element has a third field called (Description) too ...

Now I want: When I select an item from the list, a tooltip is displayed and contains data from the third field.

How can I use different hints in one list - one hint for each item - ??? How can I work with my database?

thank

+3
source share
1 answer

ListViewItem

<ListView ...>
    <ListView.ItemContainerStyle>
        <Style TargetType="{x:Type ListViewItem}">
            <Setter Property="ToolTip" Value="{Binding Path=Name}"/>
        </Style>
    </ListView.ItemContainerStyle>
    <!-- ... -->
</ListView>
+6

Source: https://habr.com/ru/post/1774946/


All Articles