I am writing a GUI application to work on a touch device using VB.NET and WPF - it should be full-screen at all times, for example, a kiosk application; the window should not be resized or moved. The window contains a ListBox that users are currently viewing by dragging it across the list. The problem that I see is that when the user drags the list, the whole window moves a bit, exposing the desktop under it, and then returns to the place after the user stops. I could not figure out how to keep the window still, while still allowing users to drag and drop the ListBox to see all the items in the list. Here is a slightly simplified version of my code:
<Window
x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"
WindowStyle="None"
WindowState="Maximized"
WindowStartupLocation="CenterScreen"
KeyboardNavigation.TabNavigation="None"
Topmost="True"
Focusable="False"
ResizeMode="NoResize"
ShowInTaskbar="False"
MaxHeight="1080px"
MaxWidth="1920px">
<Grid>
<ListBox
x:Name="docList"
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Hidden"
BorderThickness="0">
<TextBlock Text="Item1" />
<TextBlock Text="Item2" />
<TextBlock Text="Item3" />
<TextBlock Text="Item4" />
<TextBlock Text="Item5" />
<TextBlock Text="Item6" />
</ListBox>
</Grid>
</Window>