-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ActivityIndicatorHandler in WinUI #761
Conversation
element.SetBinding(GetForegroundProperty(element), binding); | ||
} | ||
|
||
internal static IEnumerable<T?> GetDescendantsByName<T>(this DependencyObject parent, string elementName) where T : DependencyObject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal static IEnumerable<T?> GetDescendantsByName<T>(this DependencyObject parent, string elementName) where T : DependencyObject | |
internal static IEnumerable<T> GetDescendantsByName<T>(this DependencyObject parent, string elementName) where T : DependencyObject |
return foregroundProperty; | ||
} | ||
|
||
internal static IEnumerable<T?> GetChildren<T>(this DependencyObject parent) where T : DependencyObject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internal static IEnumerable<T?> GetChildren<T>(this DependencyObject parent) where T : DependencyObject | |
internal static IEnumerable<T> GetChildren<T>(this DependencyObject parent) where T : DependencyObject |
Co-authored-by: Hadrian Tang <hadrianwttang@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using System.Linq; | ||
using System.Reflection; | ||
|
||
namespace Microsoft.Maui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this public ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was internal in Xamarin.Forms, should we changed it?, any reason to not be public?
public static void UpdateIsRunning(this MauiActivityIndicator mauiActivityIndicator, IActivityIndicator activityIndicator) | ||
{ | ||
// TODO: Use IView Opacity if the ActivityIndicator is running. | ||
mauiActivityIndicator.ElementOpacity = activityIndicator.IsRunning ? 1 : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No other way to do this? @PureWeen any ideas?
|
||
namespace Microsoft.Maui | ||
{ | ||
public static class FrameworkElementExtensions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this to be public ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was internal in Xamarin.Forms, should we changed it?, any reason to not be public?
@rmarinho Fixed the issue you described. |
* Implement ActivityIndicatorHandler in WinUI * Fix build error * Enable nullable in ActivityIndicatorExtensions * Added nullable enable flag in WinUI ActivityIndicatorHandler * Fix build error * Apply suggestions from code review Co-authored-by: Hadrian Tang <hadrianwttang@outlook.com> * Fix merge * Fixed ResourceDictionary error * Move extensions to be internal Co-authored-by: Rui Marinho <me@ruimarinho.net> Co-authored-by: Hadrian Tang <hadrianwttang@outlook.com>
Description of Change
Implement ActivityIndicatorHandler in WinUI.
PR Checklist
Does this PR touch anything that might effect accessibility?
No