-
- 13167066551
- Posts: 1
- Joined:
How to block a mouse event when downloading?
How to block a mouse event when downloading?
-
-
sfernandez
Site Admin
- Posts: 3264
- Joined:
Re: How to block a mouse event when downloading?
It depends at what level you want to handle this, but there is a simple and common way to avoid user interacting with the UI, just show a panel that intercepts all input over the normal controls:
When you want to disable input just set Visibility="Visible" for the "DisableInput" panel and it will catch all input.
Code: Select all
<UserControl x:Class="Test.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
...
<Grid x:Name="LayoutRoot">
<!-- application UI controls -->
<Grid x:Name="DisableInput" Background="#80000000" Visibility="Collapsed"/>
<ProgressBar x:Name="DownloadBar" Visibility="Collapsed" .../>
</UserControl>
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 5 guests