Navigation :
Introduction
FAQ
Setup, deployment & projects
Getting started
Examples
Catel.Core
Catel.MVVM
Catel.Fody
Catel.ReSharper
Tips & tricks
API reference
-
Catel.Cores
--
Catel
---
Catel.Android
---
Catel.ApiCop
---
Catel.Caching
---
Catel.Collections
---
Catel.ComponentModel
---
Catel.Configuration
---
Catel.Core
---
Catel.Data
---
Catel.ExceptionHandling
---
Catel.IO
---
Catel.IoC
---
Catel.Logging
---
Catel.Messaging
---
Catel.Pooling
---
Catel.Reflection
---
Catel.Runtime
---
Catel.Scoping
---
Catel.Services
---- AccelerometerSensorListener
---- AccelerometerService
---- AccelerometerValue
---- AccelerometerValueChangedEventArgs
---- ApplicationClosingEventArgs
---- AutoCompletionService
---- CameraOperationCompletedEventArgs
---- CameraService
---- CameraServiceBase
---- CameraType
---- ContentReadyEventArgs
---- DispatcherService
---- ExportMode
---- FileServiceBase
---- FlashMode
---- IAccelerometerService
---- IAccelerometerValue
---- IAutoCompletionService
---- ICameraService
---- IDispatcherService
---- IDispatcherServiceExtensions
---- IFileSupport
---- ILanguageService
---- ILanguageSource
---- ILocation
---- ILocationService
---- IMessageService
---- INavigationRootService
---- INavigationService
---- IObjectConverterService
---- IObjectConverterServiceExtensions
---- IOpenFileService
---- IPleaseWaitService
---- IPleaseWaitServiceExtensions
---- IProcessService
---- IRollingInMemoryLogService
---- ISaveFileService
---- ISchedulerService
---- ISelectDirectoryService
---- ISensorService
---- IService
---- IStartUpInfoProvider
---- IStartUpInfoProviderExtensions
---- IState
---- IStateService
---- IStateServiceExtensions
---- IUIVisualizerService
---- IUIVisualizerServiceExtensions
---- IVibrateService
---- IViewExportService
---- IViewModelService
---- IViewModelWrapperService
---- IWrapControlService
---- LanguageResourceKey
---- LanguageResourceSource
---- LanguageService
---- LanguageServiceBase
---- Location
---- LocationChangedEventArgs
---- LocationListener
---- LocationService
---- LocationServiceBase
---- MessageButton
---- MessageImage
---- MessageResult
---- MessageService
---- NamingConvention
---- NavigationHelper
---- NavigationRootService
---- NavigationService
---- NavigationServiceBase
---- ObjectConverterService
---- OpenFileService
---- PageNotRegisteredException
---- PleaseWaitService
---- PleaseWaitWorkDelegate
---- ProcessCompletedDelegate
---- ProcessService
---- RollingInMemoryLogService
---- SaveFileService
---- SchedulerService
---- SelectDirectoryService
---- SensorServiceBase
---- ServiceBase
---- Size
---- StartUpInfoProvider
---- StateService
---- UICompletedEventArgs
---- UIVisualizerService
---- VibrateService
---- ViewExportService
---- ViewModelServiceBase
---- ViewModelWrapperService
---- ViewModelWrapperServiceBase
---- WindowNotRegisteredException
---- WrapControlService
---- WrapControlServiceControlNames
---- WrapControlServiceWrapOptions
---- WrapOptions
---
Catel.Test
---
Catel.Text
---
Catel.Threading
--- ApplicationExtensions
--- Argument
--- AsyncEventHandler
--- AsyncEventHandlerExtensions
--- ByteArrayExtensions
--- CatelEnvironment
--- CompositeFilter
--- CompositePredicate
--- CoreModule
--- DesignTimeCodeAttribute
--- DesignTimeHelper
--- DesignTimeInitializer
--- Disposable
--- DisposableToken
--- Enum
--- EnvironmentHelper
--- EventHandlerExtensions
--- ExceptionExtensions
--- ExceptionFactory
--- ExpressionHelper
--- FastDateTime
--- HashHelper
--- IBindableEnum
--- ICommandManagerExtensions
--- ICompositeFilter
--- IDisposableToken
--- IExecute
--- IExecuteWithObject
--- IFluent
--- INotifyPropertyChangedExtensions
--- IUniqueIdentifyable
--- IWeakAction
--- IWeakEventListener
--- IWeakFunc
--- IWeakReference
--- JsonExtensions
--- KnownPlatforms
--- LanguageHelper
--- MVVMModule
--- MustBeImplementedException
--- NotSupportedInPlatformException
--- ObjectHelper
--- ObjectToStringHelper
--- OpenInstanceActionHandler
--- OpenInstanceEventHandler
--- ParallelHelper
--- Platforms
--- ProcessExtensions
--- ProgressContext
--- ResourceHelper
--- SerializationJsonModule
--- StringExtensions
--- StringToObjectHelper
--- SupportedPlatforms
--- TagHelper
--- ThemeHelper
--- ThreadHelper
--- UniqueIdentifierHelper
--- UriExtensions
--- WeakAction
--- WeakActionBase
--- WeakEventListener
--- WeakFunc
--
Systems
-
Catel.MVVMs
-
Catel.Serialization.Jsons
IPleaseWaitServiceExtensions
Name
Value
Assembly
Catel.Core
Namespace
Catel.Services
Available on
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public static class IPleaseWaitServiceExtensions
IPleaseWaitService extensions.
Methods
HideTemporarily(IPleaseWaitService pleaseWaitService)
Hides the please wait service temporarily by storing the show counter and restoring it afterwards.
Returns
IDisposable.
PushInScope(IPleaseWaitService pleaseWaitService, string status)
Calls String) and returns a disposable token. As soon as the token is disposed, it will call Pop. This is a great way to safely show a busy indicator and ensure that the indicator hides, even when an exception occurs.
Parameters
Name
Description
pleaseWaitService
The please wait service.
status
The status to change the text to.
Returns
IDisposable.
Examples
<![CDATA[ using (pleaseWaitService.PushInScope()) { // some code that might throw exceptions } ]]>
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion
Please enable JavaScript to view the comments powered by Disqus.