AdaptiveProgressBarBindableProperty.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // ******************************************************************
  2. // Copyright (c) Microsoft. All rights reserved.
  3. // This code is licensed under the MIT License (MIT).
  4. // THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  5. // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  6. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  7. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  8. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  9. // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  10. // THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
  11. // ******************************************************************
  12. namespace Microsoft.Toolkit.Uwp.Notifications
  13. {
  14. // Note that this code is only compiled for WinRT. It is not compiled in any of the other projects.
  15. #if WINRT
  16. /// <summary>
  17. /// An enumeration of the properties that support data binding on <see cref="AdaptiveProgressBar"/> .
  18. /// </summary>
  19. public enum AdaptiveProgressBarBindableProperty
  20. {
  21. /// <summary>
  22. /// An optional title string
  23. /// </summary>
  24. Title,
  25. /// <summary>
  26. /// The value of the progress bar.
  27. /// </summary>
  28. Value,
  29. /// <summary>
  30. /// An optional string to be displayed instead of the default percentage string. If this isn't provided, something like "70%" will be displayed.
  31. /// </summary>
  32. ValueStringOverride,
  33. /// <summary>
  34. /// An optional status string, which is displayed underneath the progress bar. If provided, this string should reflect the status of the download, like "Downloading..." or "Installing...".
  35. /// </summary>
  36. Status
  37. }
  38. #endif
  39. }