Click here to Skip to main content
15,887,404 members
Home / Discussions / WPF
   

WPF

 
QuestionAt commands Pin
Pranay Dabholkar7-Dec-12 5:56
Pranay Dabholkar7-Dec-12 5:56 
AnswerRe: At commands Pin
Abhinav S9-Dec-12 20:14
Abhinav S9-Dec-12 20:14 
QuestionCurrency Converter Pin
pjank427-Dec-12 5:44
pjank427-Dec-12 5:44 
AnswerRe: Currency Converter Pin
Pete O'Hanlon7-Dec-12 6:58
mvePete O'Hanlon7-Dec-12 6:58 
GeneralRe: Currency Converter Pin
pjank427-Dec-12 7:38
pjank427-Dec-12 7:38 
QuestionWPF Binding TextBox to Dependency Property Pin
g_ap5-Dec-12 1:02
g_ap5-Dec-12 1:02 
AnswerRe: WPF Binding TextBox to Dependency Property Pin
Richard Deeming5-Dec-12 2:53
mveRichard Deeming5-Dec-12 2:53 
Questionhighlight list view - is--moueOver Pin
dominioYP3-Dec-12 10:07
dominioYP3-Dec-12 10:07 
hi men
I have a listView called lw1.
When I use lw1.selectedItem, I can check which item is selected.
But, how I can know which item is alone highlighted by mouse cursor?

note:http://dl.dropbox.com/u/45898865/Immagine.jpg[^]
in picture 1
gimppoi is selected with one click of mouse cursor
in picture 2
gimppoi is selected with one click of mouse cursor
poweooooooooo has alone mouse cursor over the line



good idea

I had tried it yesterday without success.

C#
private void buttonGV_Click(object sender, RoutedEventArgs e)
{
Attivita attivita = null;
for (int i = 0; i < listViewAttivita.Items.Count; i++ )
     if ( listViewAttivita.IsMouseOver )
         attivita = listViewAttivita.Items[i] as Attivita;


C#
if ( listViewAttivita.IsMouseOver )

this test is needless, because I want know which row is selected. That test told me if the mouse is over one of all ListView rows.


Can you tell me what I should search to understand which row has the mouse over?


this is the XAML part. Does it help?
HTML
<ListView ItemsSource= "{Binding AttivitaCollection, UpdateSourceTrigger=PropertyChanged}" Height="206" HorizontalAlignment="Left" Margin="12,33,0,0" Name="listViewAttivita" VerticalAlignment="Top" Width="auto" SelectionChanged="listViewAttivita_SelectionChanged">
    <ListView.Resources>
        <med:ImageConverter x:Key="imageConverter"/>
    </ListView.Resources>
    <ListView.View>
        <GridView>
            <GridViewColumn Header="Azioni registrate" Width="150" DisplayMemberBinding="{Binding nome, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <GridViewColumn Header="Stato" Width="auto" >
                <GridViewColumn.CellTemplate>
                    <DataTemplate>
                        <Button Width="24" Name="buttonGV" Click="buttonGV_Click" Height="24" Background="Transparent"  BorderBrush="Transparent">
                            <Image Source="{Binding Path=imgStato, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource imageConverter}}" />
                        </Button>
                    </DataTemplate>
                </GridViewColumn.CellTemplate>
            </GridViewColumn>
        </GridView>
    </ListView.View>
</ListView>





I already posted this message
http://www.codeproject.com/Messages/4441464/highlight-list-view.aspx[^]
AnswerRe: highlight list view - is--moueOver Pin
SledgeHammer013-Dec-12 11:52
SledgeHammer013-Dec-12 11:52 
QuestionWPF DrawingContext DrawText bug??? Pin
subakaev2-Dec-12 21:09
subakaev2-Dec-12 21:09 
GeneralRe: WPF DrawingContext DrawText bug??? Pin
TheIndra23-Nov-20 12:34
TheIndra23-Nov-20 12:34 
QuestionHow do you stop a WebBrowser object in WPF? Pin
Xarzu2-Dec-12 4:25
Xarzu2-Dec-12 4:25 
AnswerRe: How do you stop a WebBrowser object in WPF? Pin
Richard MacCutchan2-Dec-12 4:54
mveRichard MacCutchan2-Dec-12 4:54 
QuestionHow do you stop a WebBrowser object in WPF? Pin
Xarzu2-Dec-12 3:53
Xarzu2-Dec-12 3:53 
QuestionFlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 1:04
RugbyLeague30-Nov-12 1:04 
AnswerRe: FlowDocument - different coloured text in a word Pin
Pete O'Hanlon30-Nov-12 1:33
mvePete O'Hanlon30-Nov-12 1:33 
GeneralRe: FlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 1:50
RugbyLeague30-Nov-12 1:50 
AnswerRe: FlowDocument - different coloured text in a word Pin
Matt T Heffron30-Nov-12 7:46
professionalMatt T Heffron30-Nov-12 7:46 
GeneralRe: FlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 8:41
RugbyLeague30-Nov-12 8:41 
AnswerRe: FlowDocument - different coloured text in a word Pin
Matt T Heffron30-Nov-12 8:45
professionalMatt T Heffron30-Nov-12 8:45 
GeneralRe: FlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 8:48
RugbyLeague30-Nov-12 8:48 
GeneralRe: FlowDocument - different coloured text in a word Pin
RugbyLeague30-Nov-12 8:49
RugbyLeague30-Nov-12 8:49 
QuestionGrid.ColumnDefinition.setvalue Pin
caradri28-Nov-12 3:06
caradri28-Nov-12 3:06 
AnswerRe: Grid.ColumnDefinition.setvalue Pin
Matt T Heffron28-Nov-12 9:05
professionalMatt T Heffron28-Nov-12 9:05 
GeneralRe: Grid.ColumnDefinition.setvalue Pin
caradri28-Nov-12 20:12
caradri28-Nov-12 20:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.