[WPF ListView] Get Count of ListView and Control ListView Scroll


WPF Mouse Hooking and Display the time, mouse position as occurring a mouse left click event


- MainWindow.xaml

<Window x:Class="Macro.MainWindow"

        Title="MainWindow" Height="350" Width="525">

    <Grid>

        <ListView x:Name="lvControl" HorizontalAlignment="Left" Height="271" Margin="25,29,0,0" VerticalAlignment="Top" Width="473">

            <ListView.View>

                <GridView>

                    <GridViewColumn Header="Time" Width="100" DisplayMemberBinding="{Binding Time}"/>

                    <GridViewColumn Header="Control" Width="100" DisplayMemberBinding="{Binding Control}"/>

                    <GridViewColumn Header="Key" Width="100" DisplayMemberBinding="{Binding Key}"/>

                    <GridViewColumn Header="Event" Width="100" DisplayMemberBinding="{Binding Event}"/>

                </GridView>

            </ListView.View>

        </ListView>

    </Grid>

</Window>


- MainWindow.xaml.cs


- Result


WPF ListView Binding


- MainWindow.xaml

<Window x:Class="Macro.MainWindow"

        Title="MainWindow" Height="350" Width="525">

    <Grid>

        <ListView x:Name="lvControl" HorizontalAlignment="Left" Height="271" Margin="25,29,0,0" VerticalAlignment="Top" Width="473">

            <ListView.View>

                <GridView>

                    <GridViewColumn Header="Time" Width="100" DisplayMemberBinding="{Binding Time}"/>

                    <GridViewColumn Header="Control" Width="100" DisplayMemberBinding="{Binding Control}"/>

                    <GridViewColumn Header="Key" Width="100" DisplayMemberBinding="{Binding Key}"/>

                </GridView>

            </ListView.View>

        </ListView>

    </Grid>

</Window>


- MainWindow.xaml.cs




WPF Mouse Moving and Keyboard Input Hooking


[WPF Key Input] WPF Keyboard Input Hooking



-Reference

https://stackoverflow.com/questions/4266378/how-do-i-capture-key-down-in-wpf


-Reference

https://msdn.microsoft.com/ko-kr/library/system.enum.getvalues(v=vs.110).aspx



-Reference



[WPF Mouse Control] Get the mouse position and Set the position in WPF

현재 마우스 절대 좌표를 구한 후 X좌표 축으로 마우스 커서 움직이게 하기



-Reference

https://social.msdn.microsoft.com/Forums/vstudio/en-US/6be8299a-9616-43f4-a72f-799da1193889/how-to-set-the-mouse-position-in-wpf?forum=wpf

[SetCursorPos] http://slaner.tistory.com/39


- Reference


+ Recent posts