diff --git a/src/Controls/src/Core/ActionSheetArguments.cs b/src/Controls/src/Core/ActionSheetArguments.cs
index 230d32fe1e5a..3a558dbe98d0 100644
--- a/src/Controls/src/Core/ActionSheetArguments.cs
+++ b/src/Controls/src/Core/ActionSheetArguments.cs
@@ -44,7 +44,6 @@ public ActionSheetArguments(string title, string cancel, string destruction, IEn
///
public string Title { get; private set; }
- ///
public FlowDirection FlowDirection { get; set; }
///
@@ -53,4 +52,4 @@ public void SetResult(string result)
Result.TrySetResult(result);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/AlertArguments.cs b/src/Controls/src/Core/AlertArguments.cs
index 7126663f6bad..d1e39db871c5 100644
--- a/src/Controls/src/Core/AlertArguments.cs
+++ b/src/Controls/src/Core/AlertArguments.cs
@@ -36,7 +36,6 @@ public AlertArguments(string title, string message, string accept, string cancel
///
public TaskCompletionSource Result { get; }
- ///
public FlowDirection FlowDirection { get; set; }
///
@@ -50,4 +49,4 @@ public void SetResult(bool result)
Result.TrySetResult(result);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Animation.cs b/src/Controls/src/Core/Animation.cs
index 0722205bae41..397f5f03e13f 100644
--- a/src/Controls/src/Core/Animation.cs
+++ b/src/Controls/src/Core/Animation.cs
@@ -2,20 +2,32 @@
using System.Collections;
using System.Collections.Generic;
using BaseAnimation = Microsoft.Maui.Animations.Animation;
+
namespace Microsoft.Maui.Controls
{
- ///
+ ///
+ /// Encapsulates an animation, a collection of functions that modify properties over a user-perceptible time period.
+ ///
public class Animation : BaseAnimation
{
bool _finishedTriggered;
- ///
+ ///
+ /// Creates a new object with default values.
+ ///
public Animation()
{
Easing = Easing.Linear;
}
- ///
+ ///
+ /// Creates a new object with the specified parameters.
+ ///
+ /// An action that is called with successive animation values.
+ /// The fraction into the current animation at which to start the animation.
+ /// The fraction into the current animation at which to end the animation.
+ /// The easing function to use to transition in, out, or in and out of the animation.
+ /// An action to call when the animation is finished.
public Animation(Action callback, double start = 0.0f, double end = 1.0f, Easing easing = null, Action finished = null) : base(callback, start, end - start, easing, finished)
{
@@ -23,8 +35,12 @@ public Animation(Action callback, double start = 0.0f, double end = 1.0f
Func transform = AnimationExtensions.Interpolate(start, end);
Step = f => callback(transform(f));
}
-
- ///
+ ///
+ /// Adds an object to this that begins at and finishes at .
+ ///
+ /// The fraction into this animation at which the added child animation will begin animating.
+ /// The fraction into this animation at which the added child animation will stop animating.
+ /// The animation to add.
public void Add(double beginAt, double finishAt, Animation animation)
{
if (beginAt < 0 || beginAt > 1)
@@ -41,13 +57,25 @@ public void Add(double beginAt, double finishAt, Animation animation)
childrenAnimations.Add(animation);
}
- ///
+ ///
+ /// Runs the animation with the supplied parameters.
+ ///
+ /// The owning animation that will be animated.
+ /// The name, or handle, that is used to access and track the animation and its state.
+ /// The time, in milliseconds, between frames.
+ /// The number of milliseconds over which to interpolate the animation.
+ /// The easing function to use to transition in, out, or in and out of the animation.
+ /// An action to call when the animation is finished.
+ /// A function that should return true if the animation should continue.
public void Commit(IAnimatable owner, string name, uint rate = 16, uint length = 250, Easing easing = null, Action finished = null, Func repeat = null)
{
owner.Animate(name, this, rate, length, easing, finished, repeat);
}
- ///
+ ///
+ /// Returns a callback that recursively runs the eased animation step on this object and those of its children that have begun and not finished.
+ ///
+ /// A callback that recursively runs the eased animation step on this object and those of its children that have begun and not finished.
public Action GetCallback()
{
Action result = f =>
@@ -78,21 +106,30 @@ public Action GetCallback()
internal void ResetChildren() => this.Reset();
- ///
public override void Reset()
{
base.Reset();
_finishedTriggered = false;
}
- ///
+ ///
+ /// Adds an object to this that begins at and finishes at .
+ ///
+ /// The fraction into this animation at which the added child animation will begin animating.
+ /// The fraction into this animation at which the added child animation will stop animating.
+ /// The animation to add.
public Animation Insert(double beginAt, double finishAt, Animation animation)
{
Add(beginAt, finishAt, animation);
return this;
}
- ///
+ ///
+ /// Adds to the children of this object and sets the start and end times of to and , respectively.
+ ///
+ /// The animation to add.
+ /// The fraction into this animation at which the added child animation will begin animating.
+ /// The fraction into this animation at which the added child animation will stop animating.
public Animation WithConcurrent(Animation animation, double beginAt = 0.0f, double finishAt = 1.0f)
{
animation.StartDelay = beginAt;
@@ -101,7 +138,15 @@ public Animation WithConcurrent(Animation animation, double beginAt = 0.0f, doub
return this;
}
- ///
+ ///
+ /// Creates a new object with the specified , and adds it to the children of this object.
+ ///
+ /// An action that is called with successive animation values.
+ /// The fraction into the current animation at which to start the animation.
+ /// The fraction into the current animation at which to end the animation.
+ /// The easing function to use to transition in, out, or in and out of the animation.
+ /// The fraction into this animation at which the added child animation will begin animating.
+ /// The fraction into this animation at which the added child animation will stop animating.
public Animation WithConcurrent(Action callback, double start = 0.0f, double end = 1.0f, Easing easing = null, double beginAt = 0.0f, double finishAt = 1.0f)
{
var child = new Animation(callback, start, end, easing);
@@ -111,7 +156,9 @@ public Animation WithConcurrent(Action callback, double start = 0.0f, do
return this;
}
- ///
+ ///
+ /// Specifies if this animation is currently enabled.
+ ///
public bool IsEnabled
{
get
diff --git a/src/Controls/src/Core/AnimationExtensions.cs b/src/Controls/src/Core/AnimationExtensions.cs
index 117f97e2d6b1..32f814b21319 100644
--- a/src/Controls/src/Core/AnimationExtensions.cs
+++ b/src/Controls/src/Core/AnimationExtensions.cs
@@ -47,7 +47,6 @@ static AnimationExtensions()
s_tweeners = new Dictionary();
}
- ///
public static int Add(this IAnimationManager animationManager, Action step)
{
var id = s_currentTweener++;
@@ -61,7 +60,6 @@ public static int Add(this IAnimationManager animationManager, Action st
animation.Commit(animationManager);
return id;
}
- ///
public static int Insert(this IAnimationManager animationManager, Func step)
{
var id = s_currentTweener++;
@@ -75,7 +73,6 @@ public static int Insert(this IAnimationManager animationManager, Func
public static void Remove(this IAnimationManager animationManager, int tickerId)
{
var animation = s_tweeners[tickerId];
diff --git a/src/Controls/src/Core/Application.cs b/src/Controls/src/Core/Application.cs
index 47a695f25530..8a5680e7a203 100644
--- a/src/Controls/src/Core/Application.cs
+++ b/src/Controls/src/Core/Application.cs
@@ -180,7 +180,6 @@ public AppTheme UserAppTheme
public AppTheme RequestedTheme => UserAppTheme != AppTheme.Unspecified ? UserAppTheme : PlatformAppTheme;
static Color? _accentColor;
- ///
public static Color? AccentColor
{
get => _accentColor ??= GetAccentColor();
@@ -385,4 +384,4 @@ protected internal virtual void CleanUp()
IReadOnlyList IVisualTreeElement.GetVisualChildren() => this.Windows;
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/AutomationProperties.cs b/src/Controls/src/Core/AutomationProperties.cs
index 251fa613f151..e5efa0b30827 100644
--- a/src/Controls/src/Core/AutomationProperties.cs
+++ b/src/Controls/src/Core/AutomationProperties.cs
@@ -9,7 +9,6 @@ public class AutomationProperties
///
public static readonly BindableProperty IsInAccessibleTreeProperty = BindableProperty.Create("IsInAccessibleTree", typeof(bool?), typeof(AutomationProperties), null);
- ///
public static readonly BindableProperty ExcludedWithChildrenProperty = BindableProperty.Create("ExcludedWithChildren", typeof(bool?), typeof(AutomationProperties), null);
///
@@ -30,7 +29,6 @@ public static string GetHelpText(BindableObject bindable)
return (bool?)bindable.GetValue(IsInAccessibleTreeProperty);
}
- ///
public static bool? GetExcludedWithChildren(BindableObject bindable)
{
return (bool?)bindable.GetValue(ExcludedWithChildrenProperty);
@@ -61,7 +59,6 @@ public static void SetIsInAccessibleTree(BindableObject bindable, bool? value)
bindable.SetValue(IsInAccessibleTreeProperty, value);
}
- ///
public static void SetExcludedWithChildren(BindableObject bindable, bool? value)
{
bindable.SetValue(ExcludedWithChildrenProperty, value);
diff --git a/src/Controls/src/Core/BindableObjectExtensions.cs b/src/Controls/src/Core/BindableObjectExtensions.cs
index 6edd507fc1c6..12c9da451776 100644
--- a/src/Controls/src/Core/BindableObjectExtensions.cs
+++ b/src/Controls/src/Core/BindableObjectExtensions.cs
@@ -42,7 +42,6 @@ public static void SetBinding(this BindableObject self, BindableProperty targetP
self.SetBinding(targetProperty, binding);
}
- ///
public static T GetPropertyIfSet(this BindableObject bindableObject, BindableProperty bindableProperty, T returnIfNotSet)
{
if (bindableObject == null)
@@ -54,7 +53,6 @@ public static T GetPropertyIfSet(this BindableObject bindableObject, Bindable
return returnIfNotSet;
}
- ///
public static void SetAppTheme(this BindableObject self, BindableProperty targetProperty, T light, T dark) => self.SetBinding(targetProperty, new AppThemeBinding { Light = light, Dark = dark });
///
diff --git a/src/Controls/src/Core/BindablePropertyConverter.cs b/src/Controls/src/Core/BindablePropertyConverter.cs
index 5867278ff79d..b9396053636a 100644
--- a/src/Controls/src/Core/BindablePropertyConverter.cs
+++ b/src/Controls/src/Core/BindablePropertyConverter.cs
@@ -14,11 +14,9 @@ namespace Microsoft.Maui.Controls
[Xaml.ProvideCompiled("Microsoft.Maui.Controls.XamlC.BindablePropertyConverter")]
public sealed class BindablePropertyConverter : TypeConverter, IExtendedTypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> true;
@@ -74,7 +72,6 @@ object IExtendedTypeConverter.ConvertFromInvariantString(string value, IServiceP
throw new XamlParseException($"Can't resolve {value}. Syntax is [[prefix:]Type.]PropertyName.", lineinfo);
}
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -144,7 +141,6 @@ Type FindTypeForVisualState(IProvideParentValues parentValueProvider, IXmlLineIn
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not BindableProperty bp)
@@ -152,4 +148,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return $"{bp.DeclaringType.Name}.{bp.PropertyName}";
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Binding.cs b/src/Controls/src/Core/Binding.cs
index 0b6504c3fe65..88ae866bfa99 100644
--- a/src/Controls/src/Core/Binding.cs
+++ b/src/Controls/src/Core/Binding.cs
@@ -9,7 +9,6 @@ namespace Microsoft.Maui.Controls
///
public sealed class Binding : BindingBase
{
- ///
public const string SelfPath = ".";
IValueConverter _converter;
object _converterParameter;
diff --git a/src/Controls/src/Core/BrushTypeConverter.cs b/src/Controls/src/Core/BrushTypeConverter.cs
index 2a17821ba747..579d6ac789f9 100644
--- a/src/Controls/src/Core/BrushTypeConverter.cs
+++ b/src/Controls/src/Core/BrushTypeConverter.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
@@ -28,15 +28,12 @@ public class BrushTypeConverter : TypeConverter
readonly ColorTypeConverter _colorTypeConverter = new ColorTypeConverter();
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> false;
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -73,7 +70,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
=> throw new NotSupportedException();
@@ -411,4 +407,4 @@ bool TryParseOffsets(string[] parts, out float[] result)
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Button.cs b/src/Controls/src/Core/Button.cs
index 48d02da0ef3d..323049630144 100644
--- a/src/Controls/src/Core/Button.cs
+++ b/src/Controls/src/Core/Button.cs
@@ -8,69 +8,107 @@
namespace Microsoft.Maui.Controls
{
- ///
+ ///
+ /// A button that reacts to touch events.
+ ///
public partial class Button : View, IFontElement, ITextElement, IBorderElement, IButtonController, IElementConfiguration, IPaddingElement, IImageController, IViewController, IButtonElement, IImageElement
{
const double DefaultSpacing = 10;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty CommandProperty = ButtonElement.CommandProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty CommandParameterProperty = ButtonElement.CommandParameterProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty ContentLayoutProperty = BindableProperty.Create(
nameof(ContentLayout), typeof(ButtonContentLayout), typeof(Button), new ButtonContentLayout(ButtonContentLayout.ImagePosition.Left, DefaultSpacing),
propertyChanged: (bindable, oldVal, newVal) => ((Button)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged));
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty TextProperty = BindableProperty.Create(
nameof(Text), typeof(string), typeof(Button), null,
propertyChanged: (bindable, oldVal, newVal) => ((Button)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged));
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty TextColorProperty = TextElement.TextColorProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty CharacterSpacingProperty = TextElement.CharacterSpacingProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty FontFamilyProperty = FontElement.FontFamilyProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty FontSizeProperty = FontElement.FontSizeProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty TextTransformProperty = TextElement.TextTransformProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty BorderWidthProperty = BindableProperty.Create(nameof(BorderWidth), typeof(double), typeof(Button), -1d);
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty BorderColorProperty = BorderElement.BorderColorProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(int), typeof(Button), defaultValue: BorderElement.DefaultCornerRadius);
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty ImageSourceProperty = ImageElement.ImageSourceProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty PaddingProperty = PaddingElement.PaddingProperty;
- ///
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty LineBreakModeProperty = BindableProperty.Create(
nameof(LineBreakMode), typeof(LineBreakMode), typeof(Button), LineBreakMode.NoWrap,
propertyChanged: (bindable, oldvalue, newvalue) => ((Button)bindable).InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged));
- ///
+ ///
+ /// Gets or sets the padding for the button. This is a bindable property.
+ ///
public Thickness Padding
{
get { return (Thickness)GetValue(PaddingElement.PaddingProperty); }
@@ -79,7 +117,10 @@ public Thickness Padding
Thickness IPaddingElement.PaddingDefaultValueCreator() => new Thickness(double.NaN);
- ///
+ ///
+ /// Determines how is shown when the length is overflowing the size of this button.
+ /// This is a bindable property.
+ ///
public LineBreakMode LineBreakMode
{
get { return (LineBreakMode)GetValue(LineBreakModeProperty); }
@@ -91,78 +132,108 @@ void IPaddingElement.OnPaddingPropertyChanged(Thickness oldValue, Thickness newV
InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
}
-
internal static readonly BindablePropertyKey IsPressedPropertyKey = BindableProperty.CreateReadOnly(nameof(IsPressed), typeof(bool), typeof(Button), default(bool));
- ///
+
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty IsPressedProperty = IsPressedPropertyKey.BindableProperty;
-
readonly Lazy> _platformConfigurationRegistry;
- ///
+ ///
+ /// Gets or sets a color that describes the border stroke color of the button. This is a bindable property.
+ ///
+ /// This property has no effect if is set to 0. On Android this property will not have an effect unless is set to a non-default color.
public Color BorderColor
{
get { return (Color)GetValue(BorderElement.BorderColorProperty); }
set { SetValue(BorderElement.BorderColorProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the corner radius for the button, in device-independent units. This is a bindable property.
+ ///
public int CornerRadius
{
get { return (int)GetValue(CornerRadiusProperty); }
set { SetValue(CornerRadiusProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the width of the border, in device-independent units. This is a bindable property.
+ ///
+ /// Set this value to a non-zero value in order to have a visible border.
public double BorderWidth
{
get { return (double)GetValue(BorderWidthProperty); }
set { SetValue(BorderWidthProperty, value); }
}
- ///
+ ///
+ /// Gets or sets an object that controls the position of the button image and the spacing between the button's image and the button's text.
+ /// This is a bindable property.
+ ///
public ButtonContentLayout ContentLayout
{
get { return (ButtonContentLayout)GetValue(ContentLayoutProperty); }
set { SetValue(ContentLayoutProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the command to invoke when the button is activated. This is a bindable property.
+ ///
+ /// This property is used to associate a command with an instance of a button. This property is most often set in the MVVM pattern to bind callbacks back into the ViewModel. is controlled by the if set.
public ICommand Command
{
get { return (ICommand)GetValue(CommandProperty); }
set { SetValue(CommandProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the parameter to pass to the property.
+ /// The default value is . This is a bindable property.
+ ///
public object CommandParameter
{
get { return GetValue(CommandParameterProperty); }
set { SetValue(CommandParameterProperty, value); }
}
- ///
+ ///
+ /// Allows you to display a bitmap image on the Button. This is a bindable property.
+ ///
+ /// For more options have a look at .
public ImageSource ImageSource
{
get { return (ImageSource)GetValue(ImageSourceProperty); }
set { SetValue(ImageSourceProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the text displayed as the content of the button.
+ /// The default value is . This is a bindable property.
+ ///
+ /// Changing the text of a button will trigger a layout cycle.
public string Text
{
get { return (string)GetValue(TextProperty); }
set { SetValue(TextProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the for the text of the button. This is a bindable property.
+ ///
public Color TextColor
{
get { return (Color)GetValue(TextElement.TextColorProperty); }
set { SetValue(TextElement.TextColorProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the spacing between each of the characters of when displayed on the button.
+ /// This is a bindable property.
+ ///
public double CharacterSpacing
{
get { return (double)GetValue(TextElement.CharacterSpacingProperty); }
@@ -174,21 +245,32 @@ bool IButtonElement.IsEnabledCore
set { SetValueCore(IsEnabledProperty, value); }
}
- ///
+ ///
+ /// Internal method to trigger the event.
+ /// Should not be called manually outside of .NET MAUI.
+ ///
[EditorBrowsable(EditorBrowsableState.Never)]
public void SendClicked() => ButtonElement.ElementClicked(this, this);
- ///
+ ///
+ /// Gets whether or not the button is currently pressed.
+ ///
public bool IsPressed => (bool)GetValue(IsPressedProperty);
[EditorBrowsable(EditorBrowsableState.Never)]
void IButtonElement.SetIsPressed(bool isPressed) => SetValue(IsPressedPropertyKey, isPressed);
- ///
+ ///
+ /// Internal method to trigger the event.
+ /// Should not be called manually outside of .NET MAUI.
+ ///
[EditorBrowsable(EditorBrowsableState.Never)]
public void SendPressed() => ButtonElement.ElementPressed(this, this);
- ///
+ ///
+ /// Internal method to trigger the event.
+ /// Should not be called manually outside of .NET MAUI.
+ ///
[EditorBrowsable(EditorBrowsableState.Never)]
public void SendReleased() => ButtonElement.ElementReleased(this, this);
@@ -201,21 +283,28 @@ bool IButtonElement.IsEnabledCore
[EditorBrowsable(EditorBrowsableState.Never)]
void IButtonElement.PropagateUpReleased() => Released?.Invoke(this, EventArgs.Empty);
- ///
+ ///
+ /// Gets or sets a value that indicates whether the font for the text of this button is bold, italic, or neither.
+ /// This is a bindable property.
+ ///
public FontAttributes FontAttributes
{
get { return (FontAttributes)GetValue(FontAttributesProperty); }
set { SetValue(FontAttributesProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the font family for the text of this entry. This is a bindable property.
+ ///
public string FontFamily
{
get { return (string)GetValue(FontFamilyProperty); }
set { SetValue(FontFamilyProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the size of the font for the text of this entry. This is a bindable property.
+ ///
[System.ComponentModel.TypeConverter(typeof(FontSizeConverter))]
public double FontSize
{
@@ -223,26 +312,45 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
+ ///
+ /// Determines whether or not the font of this entry should scale automatically according to the operating system settings. Default value is .
+ /// This is a bindable property.
+ ///
+ /// Typically this should always be enabled for accessibility reasons.
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
set => SetValue(FontAutoScalingEnabledProperty, value);
}
- ///
+ ///
+ /// Applies text transformation to the displayed on this button.
+ /// This is a bindable property.
+ ///
public TextTransform TextTransform
{
get => (TextTransform)GetValue(TextTransformProperty);
set => SetValue(TextTransformProperty, value);
}
+ ///
+ /// Occurs when the button is clicked/tapped.
+ ///
public event EventHandler Clicked;
+
+ ///
+ /// Occurs when the button is pressed.
+ ///
public event EventHandler Pressed;
+ ///
+ /// Occurs when the button is released.
+ ///
public event EventHandler Released;
- ///
+ ///
+ /// Initializes a new instance of the class.
+ ///
public Button()
{
_platformConfigurationRegistry = new Lazy>(() => new PlatformConfigurationRegistry(this));
@@ -347,14 +455,26 @@ void IImageController.SetIsLoading(bool isLoading)
void ITextElement.OnTextTransformChanged(TextTransform oldValue, TextTransform newValue)
=> InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
- ///
+ ///
+ /// Applies the to .
+ ///
+ /// For internal use by the .NET MAUI platform mostly.
+ /// The text to transform.
+ /// The transform to apply to .
+ /// The transformed text.
public virtual string UpdateFormsText(string source, TextTransform textTransform)
=> TextTransformUtilites.GetTransformedText(source, textTransform);
+ ///
+ /// Represents the layout of the button content whenever an image is shown.
+ ///
[DebuggerDisplay("Image Position = {Position}, Spacing = {Spacing}")]
[System.ComponentModel.TypeConverter(typeof(ButtonContentTypeConverter))]
public sealed class ButtonContentLayout
{
+ ///
+ /// Enumerates values that determine the position of the image on the button.
+ ///
public enum ImagePosition
{
Left,
@@ -363,19 +483,37 @@ public enum ImagePosition
Bottom
}
+ ///
+ /// Initializes a new instance of the this class.
+ ///
+ /// The position of the image.
+ /// The spacing for the button content.
public ButtonContentLayout(ImagePosition position, double spacing)
{
Position = position;
Spacing = spacing;
}
+ ///
+ /// Gets the position of the image on the button.
+ ///
public ImagePosition Position { get; }
+ ///
+ /// Gets the spacing for the button content.
+ ///
public double Spacing { get; }
+ ///
+ /// Gets the string representation of this object.
+ ///
+ /// Prints out the values of and .
public override string ToString() => $"Image Position = {Position}, Spacing = {Spacing}";
}
+ ///
+ /// A converter to convert a string to a object.
+ ///
public sealed class ButtonContentTypeConverter : TypeConverter
{
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
diff --git a/src/Controls/src/Core/ButtonElement.cs b/src/Controls/src/Core/ButtonElement.cs
index 978a9e245872..eeadfdc49723 100644
--- a/src/Controls/src/Core/ButtonElement.cs
+++ b/src/Controls/src/Core/ButtonElement.cs
@@ -6,8 +6,14 @@ namespace Microsoft.Maui.Controls
{
static class ButtonElement
{
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(IButtonElement.Command), typeof(ICommand), typeof(IButtonElement), null, propertyChanging: OnCommandChanging, propertyChanged: OnCommandChanged);
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty CommandParameterProperty = BindableProperty.Create(nameof(IButtonElement.CommandParameter), typeof(object), typeof(IButtonElement), null,
propertyChanged: (bindable, oldvalue, newvalue) => CommandCanExecuteChanged(bindable, EventArgs.Empty));
@@ -29,8 +35,15 @@ static void OnCommandChanging(BindableObject bo, object o, object n)
}
}
+ ///
+ /// The string identifier for the pressed visual state of this control.
+ ///
public const string PressedVisualState = "Pressed";
+ ///
+ /// A method to signal that the property has been changed.
+ ///
+ /// The object initiating this event.
public static void CommandChanged(IButtonElement sender)
{
if (sender.Command != null)
@@ -43,6 +56,11 @@ public static void CommandChanged(IButtonElement sender)
}
}
+ ///
+ /// A method to signal that the might have changed and needs to be reevaluated.
+ ///
+ /// The object initiating this event.
+ /// Arguments associated with this event.
public static void CommandCanExecuteChanged(object sender, EventArgs e)
{
IButtonElement ButtonElementManager = (IButtonElement)sender;
@@ -53,6 +71,12 @@ public static void CommandCanExecuteChanged(object sender, EventArgs e)
}
}
+ ///
+ /// A method to signal that this element was clicked/tapped.
+ /// By calling this, the and clicked events are triggered.
+ ///
+ /// The element that was interacted with.
+ /// The button element implementation to trigger the commands and events on.
public static void ElementClicked(VisualElement visualElement, IButtonElement ButtonElementManager)
{
if (visualElement.IsEnabled == true)
@@ -62,6 +86,12 @@ public static void ElementClicked(VisualElement visualElement, IButtonElement Bu
}
}
+ ///
+ /// A method to signal that this element was pressed.
+ /// By calling this, is set to , the visual state is changed and events are triggered.
+ ///
+ /// The element that was interacted with.
+ /// The button element implementation to trigger the commands and events on.
public static void ElementPressed(VisualElement visualElement, IButtonElement ButtonElementManager)
{
if (visualElement.IsEnabled == true)
@@ -72,6 +102,12 @@ public static void ElementPressed(VisualElement visualElement, IButtonElement Bu
}
}
+ ///
+ /// A method to signal that this element was released.
+ /// By calling this, is set to , the visual state is changed and events are triggered.
+ ///
+ /// The element that was interacted with.
+ /// The button element implementation to trigger the commands and events on.
public static void ElementReleased(VisualElement visualElement, IButtonElement ButtonElementManager)
{
if (visualElement.IsEnabled == true)
diff --git a/src/Controls/src/Core/ColumnDefinitionCollectionTypeConverter.cs b/src/Controls/src/Core/ColumnDefinitionCollectionTypeConverter.cs
index eb9836e96d95..5486fb358852 100644
--- a/src/Controls/src/Core/ColumnDefinitionCollectionTypeConverter.cs
+++ b/src/Controls/src/Core/ColumnDefinitionCollectionTypeConverter.cs
@@ -10,15 +10,12 @@ namespace Microsoft.Maui.Controls
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.ColumnDefinitionCollectionTypeConverter")]
public class ColumnDefinitionCollectionTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -37,7 +34,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not ColumnDefinitionCollection cdc)
@@ -46,4 +42,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return string.Join(", ", cdc.Select(cd => converter.ConvertToInvariantString(cd.Width)));
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Command.cs b/src/Controls/src/Core/Command.cs
index 34f38277d6ee..7e47b9a427b0 100644
--- a/src/Controls/src/Core/Command.cs
+++ b/src/Controls/src/Core/Command.cs
@@ -4,7 +4,6 @@
namespace Microsoft.Maui.Controls
{
- ///
public sealed class Command : Command
{
///
diff --git a/src/Controls/src/Core/DatePicker.cs b/src/Controls/src/Core/DatePicker.cs
index 8c218692a52a..a04cb9a2b085 100644
--- a/src/Controls/src/Core/DatePicker.cs
+++ b/src/Controls/src/Core/DatePicker.cs
@@ -39,7 +39,6 @@ public partial class DatePicker : View, IFontElement, ITextElement, IElementConf
///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
readonly Lazy> _platformConfigurationRegistry;
@@ -120,7 +119,6 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
diff --git a/src/Controls/src/Core/DecorableTextElement.cs b/src/Controls/src/Core/DecorableTextElement.cs
index 60a0296ad1a7..64369742ff4e 100644
--- a/src/Controls/src/Core/DecorableTextElement.cs
+++ b/src/Controls/src/Core/DecorableTextElement.cs
@@ -12,15 +12,12 @@ static class DecorableTextElement
///
public class TextDecorationConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -47,7 +44,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
return result;
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not TextDecorations td)
diff --git a/src/Controls/src/Core/DependencyService.cs b/src/Controls/src/Core/DependencyService.cs
index 8702c0aac87f..5b13042c41d4 100644
--- a/src/Controls/src/Core/DependencyService.cs
+++ b/src/Controls/src/Core/DependencyService.cs
@@ -18,7 +18,6 @@ public static class DependencyService
static readonly List DependencyTypes = new List();
static readonly Dictionary DependencyImplementations = new Dictionary();
- ///
public static T Resolve<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(DependencyFetchTarget fallbackFetchTarget = DependencyFetchTarget.GlobalInstance) where T : class
{
var result = DependencyResolver.Resolve(typeof(T)) as T;
@@ -26,7 +25,6 @@ public static class DependencyService
return result ?? Get(fallbackFetchTarget);
}
- ///
public static T Get<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(DependencyFetchTarget fetchTarget = DependencyFetchTarget.GlobalInstance) where T : class
{
Initialize();
@@ -62,7 +60,6 @@ public static class DependencyService
return (T)Activator.CreateInstance(dependencyImplementation.ImplementorType);
}
- ///
public static void Register<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T>() where T : class
{
Type type = typeof(T);
@@ -70,7 +67,6 @@ public static class DependencyService
DependencyTypes.Add(type);
}
- ///
public static void Register<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] TImpl>() where T : class where TImpl : class, T
{
Type targetType = typeof(T);
@@ -82,7 +78,6 @@ public static class DependencyService
DependencyImplementations[targetType] = new DependencyData { ImplementorType = implementorType };
}
- ///
public static void RegisterSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T>(T instance) where T : class
{
Type targetType = typeof(T);
@@ -126,7 +121,6 @@ static void Initialize()
}
}
- ///
public static void Register(Assembly[] assemblies)
{
lock (s_initializeLock)
diff --git a/src/Controls/src/Core/DoubleCollection.cs b/src/Controls/src/Core/DoubleCollection.cs
index 696f6408c0f2..52dc22574b50 100644
--- a/src/Controls/src/Core/DoubleCollection.cs
+++ b/src/Controls/src/Core/DoubleCollection.cs
@@ -11,7 +11,6 @@ public sealed class DoubleCollection : ObservableCollection
public DoubleCollection()
{ }
- ///
public DoubleCollection(double[] values)
: base(values)
{
diff --git a/src/Controls/src/Core/DoubleCollectionConverter.cs b/src/Controls/src/Core/DoubleCollectionConverter.cs
index f27558cf7a9c..9580e81e8783 100644
--- a/src/Controls/src/Core/DoubleCollectionConverter.cs
+++ b/src/Controls/src/Core/DoubleCollectionConverter.cs
@@ -8,15 +8,12 @@ namespace Microsoft.Maui.Controls
///
public class DoubleCollectionConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -35,7 +32,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
return doubleCollection;
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not DoubleCollection dc)
@@ -43,4 +39,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return string.Join(", ", dc);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Editor.cs b/src/Controls/src/Core/Editor.cs
index a06f76ada1ce..abdd87bb67fc 100644
--- a/src/Controls/src/Core/Editor.cs
+++ b/src/Controls/src/Core/Editor.cs
@@ -19,7 +19,6 @@ public partial class Editor : InputView, IEditorController, IFontElement, ITextA
///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
///
@@ -37,20 +36,16 @@ public partial class Editor : InputView, IEditorController, IFontElement, ITextA
///
public static readonly BindableProperty IsTextPredictionEnabledProperty = BindableProperty.Create(nameof(IsTextPredictionEnabled), typeof(bool), typeof(Editor), true, BindingMode.Default);
- ///
public static readonly BindableProperty CursorPositionProperty = BindableProperty.Create(nameof(CursorPosition), typeof(int), typeof(Editor), 0, validateValue: (b, v) => (int)v >= 0);
- ///
public static readonly BindableProperty SelectionLengthProperty = BindableProperty.Create(nameof(SelectionLength), typeof(int), typeof(Editor), 0, validateValue: (b, v) => (int)v >= 0);
///
public static readonly BindableProperty AutoSizeProperty = BindableProperty.Create(nameof(AutoSize), typeof(EditorAutoSizeOption), typeof(Editor), defaultValue: EditorAutoSizeOption.Disabled, propertyChanged: (bindable, oldValue, newValue)
=> ((Editor)bindable)?.UpdateAutoSizeOption());
- ///
public static readonly BindableProperty HorizontalTextAlignmentProperty = TextAlignmentElement.HorizontalTextAlignmentProperty;
- ///
public static readonly BindableProperty VerticalTextAlignmentProperty = BindableProperty.Create(nameof(VerticalTextAlignment), typeof(TextAlignment), typeof(Editor), TextAlignment.Start);
readonly Lazy> _platformConfigurationRegistry;
@@ -76,14 +71,12 @@ public bool IsTextPredictionEnabled
set { SetValue(IsTextPredictionEnabledProperty, value); }
}
- ///
public int CursorPosition
{
get { return (int)GetValue(CursorPositionProperty); }
set { SetValue(CursorPositionProperty, value); }
}
- ///
public int SelectionLength
{
get { return (int)GetValue(SelectionLengthProperty); }
@@ -105,21 +98,18 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
public TextAlignment HorizontalTextAlignment
{
get { return (TextAlignment)GetValue(HorizontalTextAlignmentProperty); }
set { SetValue(HorizontalTextAlignmentProperty, value); }
}
- ///
public TextAlignment VerticalTextAlignment
{
get { return (TextAlignment)GetValue(VerticalTextAlignmentProperty); }
set { SetValue(VerticalTextAlignmentProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
@@ -182,7 +172,6 @@ protected override void OnTextChanged(string oldValue, string newValue)
}
}
- ///
public void OnHorizontalTextAlignmentPropertyChanged(TextAlignment oldValue, TextAlignment newValue)
{
}
diff --git a/src/Controls/src/Core/ElementTemplate.cs b/src/Controls/src/Core/ElementTemplate.cs
index 745371237028..4964bfd81d7a 100644
--- a/src/Controls/src/Core/ElementTemplate.cs
+++ b/src/Controls/src/Core/ElementTemplate.cs
@@ -34,7 +34,6 @@ internal ElementTemplate(
internal ElementTemplate(Func loadTemplate) : this() => LoadTemplate = loadTemplate ?? throw new ArgumentNullException("loadTemplate");
- ///
public Func LoadTemplate { get; set; }
void IElementDefinition.AddResourcesChangedListener(Action onchanged)
@@ -104,4 +103,4 @@ void OnResourcesChanged(object sender, ResourcesChangedEventArgs e)
handler(this, e);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Entry.cs b/src/Controls/src/Core/Entry.cs
index 6fcc7b77e457..2f3a3c125cb6 100644
--- a/src/Controls/src/Core/Entry.cs
+++ b/src/Controls/src/Core/Entry.cs
@@ -5,113 +5,161 @@
namespace Microsoft.Maui.Controls
{
- ///
+ ///
+ /// Entry is a single line text entry. It is best used for collecting small discrete pieces of information, like usernames and passwords.
+ ///
public partial class Entry : InputView, IFontElement, ITextAlignmentElement, IEntryController, IElementConfiguration
{
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty ReturnTypeProperty = BindableProperty.Create(nameof(ReturnType), typeof(ReturnType), typeof(Entry), ReturnType.Default);
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty ReturnCommandProperty = BindableProperty.Create(nameof(ReturnCommand), typeof(ICommand), typeof(Entry), default(ICommand));
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty ReturnCommandParameterProperty = BindableProperty.Create(nameof(ReturnCommandParameter), typeof(object), typeof(Entry), default(object));
- ///
+ ///
public new static readonly BindableProperty PlaceholderProperty = InputView.PlaceholderProperty;
- ///
+ ///
public new static readonly BindableProperty PlaceholderColorProperty = InputView.PlaceholderColorProperty;
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty IsPasswordProperty = BindableProperty.Create(nameof(IsPassword), typeof(bool), typeof(Entry), default(bool));
- ///
+ ///
public new static readonly BindableProperty TextProperty = InputView.TextProperty;
- ///
+ ///
public new static readonly BindableProperty TextColorProperty = InputView.TextColorProperty;
- ///
+ ///
public new static readonly BindableProperty KeyboardProperty = InputView.KeyboardProperty;
- ///
+ ///
public new static readonly BindableProperty CharacterSpacingProperty = InputView.CharacterSpacingProperty;
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty HorizontalTextAlignmentProperty = TextAlignmentElement.HorizontalTextAlignmentProperty;
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty VerticalTextAlignmentProperty = TextAlignmentElement.VerticalTextAlignmentProperty;
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty FontFamilyProperty = FontElement.FontFamilyProperty;
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty FontSizeProperty = FontElement.FontSizeProperty;
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty IsTextPredictionEnabledProperty = BindableProperty.Create(nameof(IsTextPredictionEnabled), typeof(bool), typeof(Entry), true, BindingMode.OneTime);
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty CursorPositionProperty = BindableProperty.Create(nameof(CursorPosition), typeof(int), typeof(Entry), 0, validateValue: (b, v) => (int)v >= 0);
- ///
+ ///
+ /// Backing store for the property.
+ ///
public static readonly BindableProperty SelectionLengthProperty = BindableProperty.Create(nameof(SelectionLength), typeof(int), typeof(Entry), 0, validateValue: (b, v) => (int)v >= 0);
- ///
- public static readonly BindableProperty ClearButtonVisibilityProperty = BindableProperty.Create(nameof(ClearButtonVisibility), typeof(ClearButtonVisibility), typeof(Entry), ClearButtonVisibility.Never);
+ ///
+ /// Backing store for the property.
+ ///
+ public static readonly BindableProperty ClearButtonVisibilityProperty = BindableProperty.Create(nameof(SelectionLength), typeof(ClearButtonVisibility), typeof(Entry), ClearButtonVisibility.Never);
readonly Lazy> _platformConfigurationRegistry;
- ///
+ ///
+ /// Creates a new object with default values.
+ ///
public Entry()
{
_platformConfigurationRegistry = new Lazy>(() => new PlatformConfigurationRegistry(this));
}
- ///
+ ///
+ /// Gets or sets the horizontal text alignment. This is a bindable property.
+ ///
public TextAlignment HorizontalTextAlignment
{
get { return (TextAlignment)GetValue(TextAlignmentElement.HorizontalTextAlignmentProperty); }
set { SetValue(TextAlignmentElement.HorizontalTextAlignmentProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the vertical text alignment. This is a bindable property.
+ ///
public TextAlignment VerticalTextAlignment
{
get { return (TextAlignment)GetValue(TextAlignmentElement.VerticalTextAlignmentProperty); }
set { SetValue(TextAlignmentElement.VerticalTextAlignmentProperty, value); }
}
- ///
+ ///
+ /// Gets or sets a value that indicates if the entry should visually obscure typed text.
+ /// Value is if the element is a password box; otherwise, . Default value is .
+ /// This is a bindable property.
+ ///
+ /// Toggling this value does not reset the contents of the entry, therefore it is advisable to be careful about setting to false, as it may contain sensitive information.
public bool IsPassword
{
get { return (bool)GetValue(IsPasswordProperty); }
set { SetValue(IsPasswordProperty, value); }
}
- ///
+ ///
+ /// Gets or sets a value that indicates whether the font for the text of this entry is bold, italic, or neither.
+ /// This is a bindable property.
+ ///
public FontAttributes FontAttributes
{
get { return (FontAttributes)GetValue(FontAttributesProperty); }
set { SetValue(FontAttributesProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the font family for the text of this entry. This is a bindable property.
+ ///
public string FontFamily
{
get { return (string)GetValue(FontFamilyProperty); }
set { SetValue(FontFamilyProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the size of the font for the text of this entry. This is a bindable property.
+ ///
[System.ComponentModel.TypeConverter(typeof(FontSizeConverter))]
public double FontSize
{
@@ -119,56 +167,78 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
+ ///
+ /// Determines whether or not the font of this entry should scale automatically according to the operating system settings. Default value is .
+ /// This is a bindable property.
+ ///
+ /// Typically this should always be enabled for accessibility reasons.
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
set => SetValue(FontAutoScalingEnabledProperty, value);
}
- ///
+ ///
+ /// Determines whether text prediction and automatic text correction is enabled. Default value is .
+ ///
public bool IsTextPredictionEnabled
{
get { return (bool)GetValue(IsTextPredictionEnabledProperty); }
set { SetValue(IsTextPredictionEnabledProperty, value); }
}
- ///
+ ///
+ /// Determines what the return key on the on-screen keyboard should look like. This is a bindable property.
+ ///
public ReturnType ReturnType
{
get => (ReturnType)GetValue(ReturnTypeProperty);
set => SetValue(ReturnTypeProperty, value);
}
- ///
+ ///
+ /// Gets or sets the position of the cursor. The value must be more than or equal to 0 and less or equal to the length of .
+ /// This is a bindable property.
+ ///
public int CursorPosition
{
get { return (int)GetValue(CursorPositionProperty); }
set { SetValue(CursorPositionProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the length of the selection. The selection will start at .
+ /// This is a bindable property.
+ ///
public int SelectionLength
{
get { return (int)GetValue(SelectionLengthProperty); }
set { SetValue(SelectionLengthProperty, value); }
}
- ///
+ ///
+ /// Gets or sets the command to run when the user presses the return key, either physically or on the on-screen keyboard.
+ /// This is a bindable property.
+ ///
public ICommand ReturnCommand
{
get => (ICommand)GetValue(ReturnCommandProperty);
set => SetValue(ReturnCommandProperty, value);
}
- ///
+ ///
+ /// Gets or sets the parameter object for the that can be used to provide extra information.
+ /// This is a bindable property.
+ ///
public object ReturnCommandParameter
{
get => GetValue(ReturnCommandParameterProperty);
set => SetValue(ReturnCommandParameterProperty, value);
}
- ///
+ ///
+ /// Determines the behavior of the clear text button on this entry. This is a bindable property.
+ ///
public ClearButtonVisibility ClearButtonVisibility
{
get => (ClearButtonVisibility)GetValue(ClearButtonVisibilityProperty);
@@ -196,9 +266,15 @@ void HandleFontChanged()
InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
}
+ ///
+ /// Occurs when the user finalizes the text in an entry with the return key.
+ ///
public event EventHandler Completed;
- ///
+ ///
+ /// Internal method to trigger and .
+ /// Should not be called manually outside of .NET MAUI.
+ ///
[EditorBrowsable(EditorBrowsableState.Never)]
public void SendCompleted()
{
diff --git a/src/Controls/src/Core/EnumerableExtensions.cs b/src/Controls/src/Core/EnumerableExtensions.cs
index b7fbb51606a2..ed8ac3c84962 100644
--- a/src/Controls/src/Core/EnumerableExtensions.cs
+++ b/src/Controls/src/Core/EnumerableExtensions.cs
@@ -6,7 +6,6 @@ namespace Microsoft.Maui.Controls.Internals
{
static class EnumerableExtensions
{
- ///
public static bool HasChildGesturesFor(this IEnumerable elements, Func predicate = null) where T : GestureRecognizer
{
if (elements == null)
@@ -26,7 +25,6 @@ public static bool HasChildGesturesFor(this IEnumerable eleme
return false;
}
- ///
public static IEnumerable GetChildGesturesFor(this IEnumerable elements, Func predicate = null) where T : GestureRecognizer
{
if (elements == null)
@@ -44,7 +42,6 @@ public static IEnumerable GetChildGesturesFor(this IEnumerable
public static IEnumerable GetGesturesFor(this IEnumerable gestures, Func predicate = null) where T : GestureRecognizer
{
if (gestures == null)
@@ -63,4 +60,4 @@ public static IEnumerable GetGesturesFor(this IEnumerable
public sealed class FileImageSourceConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> true;
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -25,7 +22,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FileImageSource)));
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not FileImageSource fis)
@@ -33,4 +29,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return fis.File;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/FontAttributes.cs b/src/Controls/src/Core/FontAttributes.cs
index f6a5986e2020..7f83e97651ee 100644
--- a/src/Controls/src/Core/FontAttributes.cs
+++ b/src/Controls/src/Core/FontAttributes.cs
@@ -20,15 +20,12 @@ public enum FontAttributes
///
public sealed class FontAttributesConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -65,7 +62,6 @@ static FontAttributes ParseSingleAttribute(string part, string originalvalue)
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", originalvalue, typeof(FontAttributes)));
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not FontAttributes attr)
@@ -80,4 +76,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return string.Join("' ", parts);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/FontElement.cs b/src/Controls/src/Core/FontElement.cs
index ce969d1e4f52..291bc5d996c7 100644
--- a/src/Controls/src/Core/FontElement.cs
+++ b/src/Controls/src/Core/FontElement.cs
@@ -4,19 +4,31 @@ namespace Microsoft.Maui.Controls
{
static class FontElement
{
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty FontFamilyProperty =
BindableProperty.Create("FontFamily", typeof(string), typeof(IFontElement), default(string),
propertyChanged: OnFontFamilyChanged);
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty FontSizeProperty =
BindableProperty.Create("FontSize", typeof(double), typeof(IFontElement), 0d,
propertyChanged: OnFontSizeChanged,
defaultValueCreator: FontSizeDefaultValueCreator);
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty FontAttributesProperty =
BindableProperty.Create("FontAttributes", typeof(FontAttributes), typeof(IFontElement), FontAttributes.None,
propertyChanged: OnFontAttributesChanged);
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty FontAutoScalingEnabledProperty =
BindableProperty.Create("FontAutoScalingEnabled", typeof(bool), typeof(IFontElement), true,
propertyChanged: OnFontAutoScalingEnabledChanged);
diff --git a/src/Controls/src/Core/FontImageSource.cs b/src/Controls/src/Core/FontImageSource.cs
index cda24a27d37b..d9b9015ba9a1 100644
--- a/src/Controls/src/Core/FontImageSource.cs
+++ b/src/Controls/src/Core/FontImageSource.cs
@@ -53,12 +53,10 @@ public double Size
set => SetValue(SizeProperty, value);
}
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty =
BindableProperty.Create("FontAutoScalingEnabled", typeof(bool), typeof(FontImageSource), false,
propertyChanged: (b, o, n) => ((FontImageSource)b).OnSourceChanged());
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
diff --git a/src/Controls/src/Core/FontSizeConverter.cs b/src/Controls/src/Core/FontSizeConverter.cs
index 86bed03450ec..463684ba259f 100644
--- a/src/Controls/src/Core/FontSizeConverter.cs
+++ b/src/Controls/src/Core/FontSizeConverter.cs
@@ -9,11 +9,9 @@ namespace Microsoft.Maui.Controls
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.FontSizeTypeConverter")]
public class FontSizeConverter : TypeConverter, IExtendedTypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
@@ -63,7 +61,6 @@ object IExtendedTypeConverter.ConvertFromInvariantString(string value, IServiceP
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(double)));
}
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -102,7 +99,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(double)));
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not double d)
@@ -110,4 +106,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return $"{d.ToString(CultureInfo.InvariantCulture)}";
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/GestureRecognizer.cs b/src/Controls/src/Core/GestureRecognizer.cs
index 3003249a4db1..800c7f1ecab9 100644
--- a/src/Controls/src/Core/GestureRecognizer.cs
+++ b/src/Controls/src/Core/GestureRecognizer.cs
@@ -3,9 +3,8 @@ namespace Microsoft.Maui.Controls
///
public class GestureRecognizer : Element, IGestureRecognizer
{
- ///
public GestureRecognizer()
{
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/GridLengthTypeConverter.cs b/src/Controls/src/Core/GridLengthTypeConverter.cs
index 94d5c17b3876..6d2b09ae7f5c 100644
--- a/src/Controls/src/Core/GridLengthTypeConverter.cs
+++ b/src/Controls/src/Core/GridLengthTypeConverter.cs
@@ -5,19 +5,15 @@
namespace Microsoft.Maui.Controls
{
- ///
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.GridLengthTypeConverter")]
public class GridLengthTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> true;
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -38,7 +34,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new FormatException();
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not GridLength length)
@@ -50,4 +45,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return $"{length.Value.ToString(CultureInfo.InvariantCulture)}";
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/HandlerImpl/Button/Button.Impl.cs b/src/Controls/src/Core/HandlerImpl/Button/Button.Impl.cs
index dba82d634754..c5ac6ca268e5 100644
--- a/src/Controls/src/Core/HandlerImpl/Button/Button.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Button/Button.Impl.cs
@@ -3,7 +3,6 @@
namespace Microsoft.Maui.Controls
{
- ///
public partial class Button : IButton, ITextButton, IImageButton
{
bool _wasImageLoading;
diff --git a/src/Controls/src/Core/HandlerImpl/Button/Button.Standard.cs b/src/Controls/src/Core/HandlerImpl/Button/Button.Standard.cs
index d4fecd3af70a..61ac03b18625 100644
--- a/src/Controls/src/Core/HandlerImpl/Button/Button.Standard.cs
+++ b/src/Controls/src/Core/HandlerImpl/Button/Button.Standard.cs
@@ -1,11 +1,19 @@
namespace Microsoft.Maui.Controls
{
- ///
public partial class Button
{
- ///
+ ///
+ /// Maps the abstract property to the platform implementation.
+ ///
+ /// The handler associated to this control.
+ /// The abstract control that is being mapped.
public static void MapText(ButtonHandler handler, Button button) { }
+ ///
+ /// Maps the abstract property to the platform implementation.
+ ///
+ /// The handler associated to this control.
+ /// The abstract control that is being mapped.
public static void MapLineBreakMode(ButtonHandler handler, Button button) { }
public static void MapText(IButtonHandler handler, Button button) { }
diff --git a/src/Controls/src/Core/HandlerImpl/Button/Button.cs b/src/Controls/src/Core/HandlerImpl/Button/Button.cs
index d0ae91344830..79400f10c100 100644
--- a/src/Controls/src/Core/HandlerImpl/Button/Button.cs
+++ b/src/Controls/src/Core/HandlerImpl/Button/Button.cs
@@ -6,12 +6,13 @@
namespace Microsoft.Maui.Controls
{
- ///
public partial class Button
{
// IButton does not include the ContentType property, so we map it here to handle Image Positioning
- ///
+ ///
+ /// The property mapper that maps the abstract properties to the platform-specific methods for further processing.
+ ///
public static IPropertyMapper ControlsButtonMapper = new PropertyMapper(ButtonHandler.Mapper)
{
[nameof(ContentLayout)] = MapContentLayout,
@@ -32,7 +33,11 @@ public partial class Button
ButtonHandler.Mapper = ControlsButtonMapper;
}
- ///
+ ///
+ /// Maps the abstract property to the platform implementation.
+ ///
+ /// The handler associated to this control.
+ /// The abstract control that is being mapped.
public static void MapContentLayout(IButtonHandler handler, Button button)
{
handler.PlatformView.UpdateContentLayout(button);
diff --git a/src/Controls/src/Core/HandlerImpl/CheckBox/CheckBox.Impl.cs b/src/Controls/src/Core/HandlerImpl/CheckBox/CheckBox.Impl.cs
index cb14e720a4be..4edfc40ba287 100644
--- a/src/Controls/src/Core/HandlerImpl/CheckBox/CheckBox.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/CheckBox/CheckBox.Impl.cs
@@ -1,4 +1,4 @@
-using System.Runtime.CompilerServices;
+using System.Runtime.CompilerServices;
using Microsoft.Maui.Graphics;
namespace Microsoft.Maui.Controls
@@ -6,7 +6,6 @@ namespace Microsoft.Maui.Controls
///
public partial class CheckBox : ICheckBox, IMapColorPropertyToPaint
{
- ///
public Paint Foreground { get; private set; }
void IMapColorPropertyToPaint.MapColorPropertyToPaint(Color color)
@@ -14,4 +13,4 @@ void IMapColorPropertyToPaint.MapColorPropertyToPaint(Color color)
Foreground = color?.AsPaint();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/HandlerImpl/Element/Element.Impl.cs b/src/Controls/src/Core/HandlerImpl/Element/Element.Impl.cs
index 1204e627f59b..f77c434ef112 100644
--- a/src/Controls/src/Core/HandlerImpl/Element/Element.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Element/Element.Impl.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Maui.Controls.Hosting;
@@ -13,7 +13,6 @@ public partial class Element : Maui.IElement, IEffectControlProvider, IToolTipEl
Maui.IElement Maui.IElement.Parent => Parent;
EffectsFactory EffectsFactory => _effectsFactory ??= Handler.MauiContext.Services.GetRequiredService();
- ///
public IElementHandler Handler
{
get => _handler;
diff --git a/src/Controls/src/Core/HandlerImpl/Element/Element.Standard.cs b/src/Controls/src/Core/HandlerImpl/Element/Element.Standard.cs
index 848435ff25d1..38ac18dd13d1 100644
--- a/src/Controls/src/Core/HandlerImpl/Element/Element.Standard.cs
+++ b/src/Controls/src/Core/HandlerImpl/Element/Element.Standard.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Text;
@@ -7,12 +7,10 @@ namespace Microsoft.Maui.Controls
///
public partial class Element
{
- ///
public static void MapAutomationPropertiesIsInAccessibleTree(IElementHandler handler, Element element)
{
}
- ///
public static void MapAutomationPropertiesExcludedWithChildren(IElementHandler handler, Element element)
{
}
diff --git a/src/Controls/src/Core/HandlerImpl/Element/Element.cs b/src/Controls/src/Core/HandlerImpl/Element/Element.cs
index 517b96565f7f..45071c8eea89 100644
--- a/src/Controls/src/Core/HandlerImpl/Element/Element.cs
+++ b/src/Controls/src/Core/HandlerImpl/Element/Element.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Microsoft.Maui.Handlers;
@@ -7,7 +7,6 @@ namespace Microsoft.Maui.Controls
///
public partial class Element
{
- ///
public static IPropertyMapper ControlsElementMapper = new PropertyMapper(ViewHandler.ViewMapper)
{
[AutomationProperties.IsInAccessibleTreeProperty.PropertyName] = MapAutomationPropertiesIsInAccessibleTree,
diff --git a/src/Controls/src/Core/HandlerImpl/Ellipse.Impl.cs b/src/Controls/src/Core/HandlerImpl/Ellipse.Impl.cs
index 65e491602e81..84ae469bf133 100644
--- a/src/Controls/src/Core/HandlerImpl/Ellipse.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Ellipse.Impl.cs
@@ -1,4 +1,4 @@
-using System.Runtime.CompilerServices;
+using System.Runtime.CompilerServices;
using Microsoft.Maui.Graphics;
namespace Microsoft.Maui.Controls.Shapes
@@ -19,7 +19,6 @@ protected override void OnPropertyChanged([CallerMemberName] string propertyName
}
}
- ///
public override PathF GetPath()
{
var path = new PathF();
@@ -34,4 +33,4 @@ public override PathF GetPath()
return path;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/HandlerImpl/Entry/Entry.Impl.cs b/src/Controls/src/Core/HandlerImpl/Entry/Entry.Impl.cs
index 2863e418dc03..d52b6abb970b 100644
--- a/src/Controls/src/Core/HandlerImpl/Entry/Entry.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Entry/Entry.Impl.cs
@@ -1,6 +1,5 @@
namespace Microsoft.Maui.Controls
{
- ///
public partial class Entry : IEntry
{
Font ITextStyle.Font => this.ToFont();
diff --git a/src/Controls/src/Core/HandlerImpl/FlyoutPage/FlyoutPage.cs b/src/Controls/src/Core/HandlerImpl/FlyoutPage/FlyoutPage.cs
index f329fe5c9975..055f83e4919d 100644
--- a/src/Controls/src/Core/HandlerImpl/FlyoutPage/FlyoutPage.cs
+++ b/src/Controls/src/Core/HandlerImpl/FlyoutPage/FlyoutPage.cs
@@ -1,11 +1,10 @@
-#nullable enable
+#nullable enable
namespace Microsoft.Maui.Controls
{
///
public partial class FlyoutPage
{
- ///
public static IPropertyMapper ControlsFlyoutPageMapper = new PropertyMapper(FlyoutViewHandler.Mapper)
{
[nameof(FlyoutLayoutBehavior)] = (handler, __) => handler.UpdateValue(nameof(IFlyoutView.FlyoutBehavior)),
diff --git a/src/Controls/src/Core/HandlerImpl/Label/Label.Standard.cs b/src/Controls/src/Core/HandlerImpl/Label/Label.Standard.cs
index d2f88d1daef8..faf75ac8a228 100644
--- a/src/Controls/src/Core/HandlerImpl/Label/Label.Standard.cs
+++ b/src/Controls/src/Core/HandlerImpl/Label/Label.Standard.cs
@@ -1,19 +1,16 @@
-using Microsoft.Maui.Handlers;
+using Microsoft.Maui.Handlers;
namespace Microsoft.Maui.Controls
{
///
public partial class Label
{
- ///
public static void MapTextType(ILabelHandler handler, Label label) { }
- ///
public static void MapText(ILabelHandler handler, Label label) { }
public static void MapLineBreakMode(ILabelHandler handler, Label label) { }
public static void MapMaxLines(ILabelHandler handler, Label label) { }
-
public static void MapTextType(LabelHandler handler, Label label) => MapText((ILabelHandler)handler, label);
public static void MapText(LabelHandler handler, Label label) => MapText((ILabelHandler)handler, label);
public static void MapLineBreakMode(LabelHandler handler, Label label) => MapLineBreakMode((ILabelHandler)handler, label);
diff --git a/src/Controls/src/Core/HandlerImpl/Label/Label.cs b/src/Controls/src/Core/HandlerImpl/Label/Label.cs
index c5ec3da3f37b..24a60e72e658 100644
--- a/src/Controls/src/Core/HandlerImpl/Label/Label.cs
+++ b/src/Controls/src/Core/HandlerImpl/Label/Label.cs
@@ -1,11 +1,10 @@
-using Microsoft.Maui.Handlers;
+using Microsoft.Maui.Handlers;
namespace Microsoft.Maui.Controls
{
///
public partial class Label
{
- ///
public static IPropertyMapper ControlsLabelMapper = new PropertyMapper(LabelHandler.Mapper)
{
[nameof(TextType)] = MapTextType,
diff --git a/src/Controls/src/Core/HandlerImpl/Line.Impl.cs b/src/Controls/src/Core/HandlerImpl/Line.Impl.cs
index 5bcb9e21420f..103fc6420ec5 100644
--- a/src/Controls/src/Core/HandlerImpl/Line.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Line.Impl.cs
@@ -1,4 +1,4 @@
-using System.Runtime.CompilerServices;
+using System.Runtime.CompilerServices;
using Microsoft.Maui.Graphics;
namespace Microsoft.Maui.Controls.Shapes
@@ -17,7 +17,6 @@ protected override void OnPropertyChanged([CallerMemberName] string propertyName
Handler?.UpdateValue(nameof(IShapeView.Shape));
}
- ///
public override PathF GetPath()
{
var path = new PathF();
@@ -28,4 +27,4 @@ public override PathF GetPath()
return path;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/HandlerImpl/Page.Impl.cs b/src/Controls/src/Core/HandlerImpl/Page.Impl.cs
index 9687f3ebd795..6efd4d47348a 100644
--- a/src/Controls/src/Core/HandlerImpl/Page.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Page.Impl.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using Microsoft.Maui.Controls.Internals;
using Microsoft.Maui.Graphics;
@@ -68,7 +68,6 @@ protected virtual void OnNavigatedTo(NavigatedToEventArgs args) { }
protected virtual void OnNavigatingFrom(NavigatingFromEventArgs args) { }
protected virtual void OnNavigatedFrom(NavigatedFromEventArgs args) { }
- ///
public virtual Window GetParentWindow()
=> this.FindParentOfType();
}
diff --git a/src/Controls/src/Core/HandlerImpl/Path.Impl.cs b/src/Controls/src/Core/HandlerImpl/Path.Impl.cs
index b3a066b6f61f..07029adef3db 100644
--- a/src/Controls/src/Core/HandlerImpl/Path.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Path.Impl.cs
@@ -1,4 +1,4 @@
-using System.Runtime.CompilerServices;
+using System.Runtime.CompilerServices;
using Microsoft.Maui.Graphics;
namespace Microsoft.Maui.Controls.Shapes
@@ -17,7 +17,6 @@ protected override void OnPropertyChanged([CallerMemberName] string propertyName
}
}
- ///
public override PathF GetPath()
{
var path = new PathF();
diff --git a/src/Controls/src/Core/HandlerImpl/Polygon.Impl.cs b/src/Controls/src/Core/HandlerImpl/Polygon.Impl.cs
index a278b99e5b50..d64cccb6f773 100644
--- a/src/Controls/src/Core/HandlerImpl/Polygon.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Polygon.Impl.cs
@@ -1,4 +1,4 @@
-using System.Runtime.CompilerServices;
+using System.Runtime.CompilerServices;
using Microsoft.Maui.Graphics;
namespace Microsoft.Maui.Controls.Shapes
@@ -18,7 +18,6 @@ protected override void OnPropertyChanged([CallerMemberName] string propertyName
Handler?.UpdateValue(nameof(IShapeView.Shape));
}
- ///
public override PathF GetPath()
{
var path = new PathF();
@@ -36,4 +35,4 @@ public override PathF GetPath()
return path;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/HandlerImpl/Polyline.Impl.cs b/src/Controls/src/Core/HandlerImpl/Polyline.Impl.cs
index 201e53253eb5..4c97f62ca89f 100644
--- a/src/Controls/src/Core/HandlerImpl/Polyline.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Polyline.Impl.cs
@@ -1,4 +1,4 @@
-using System.Runtime.CompilerServices;
+using System.Runtime.CompilerServices;
using Microsoft.Maui.Graphics;
namespace Microsoft.Maui.Controls.Shapes
@@ -18,7 +18,6 @@ protected override void OnPropertyChanged([CallerMemberName] string propertyName
Handler?.UpdateValue(nameof(IShapeView.Shape));
}
- ///
public override PathF GetPath()
{
var path = new PathF();
@@ -34,4 +33,4 @@ public override PathF GetPath()
return path;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/HandlerImpl/RadioButton/RadioButton.cs b/src/Controls/src/Core/HandlerImpl/RadioButton/RadioButton.cs
index 9aedda6e965e..2b8c3fdcd239 100644
--- a/src/Controls/src/Core/HandlerImpl/RadioButton/RadioButton.cs
+++ b/src/Controls/src/Core/HandlerImpl/RadioButton/RadioButton.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace Microsoft.Maui.Controls
{
@@ -7,7 +7,6 @@ public partial class RadioButton
{
IMauiContext MauiContext => Handler?.MauiContext ?? throw new InvalidOperationException("MauiContext not set");
- ///
public static IPropertyMapper ControlsRadioButtonMapper =
new PropertyMapper(RadioButtonHandler.Mapper)
{
diff --git a/src/Controls/src/Core/HandlerImpl/Rectangle.Impl.cs b/src/Controls/src/Core/HandlerImpl/Rectangle.Impl.cs
index 43c2c482b977..e6ce9a79b46c 100644
--- a/src/Controls/src/Core/HandlerImpl/Rectangle.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/Rectangle.Impl.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Runtime.CompilerServices;
using Microsoft.Maui.Graphics;
@@ -16,7 +16,6 @@ protected override void OnPropertyChanged([CallerMemberName] string propertyName
Handler?.UpdateValue(nameof(IShapeView.Shape));
}
- ///
public override PathF GetPath()
{
var path = new PathF();
@@ -33,4 +32,4 @@ public override PathF GetPath()
return path;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/HandlerImpl/VisualElement/VisualElement.Impl.cs b/src/Controls/src/Core/HandlerImpl/VisualElement/VisualElement.Impl.cs
index 89887b63e056..4c130bf0a313 100644
--- a/src/Controls/src/Core/HandlerImpl/VisualElement/VisualElement.Impl.cs
+++ b/src/Controls/src/Core/HandlerImpl/VisualElement/VisualElement.Impl.cs
@@ -1,4 +1,4 @@
-#nullable enable
+#nullable enable
using System;
using System.ComponentModel;
using Microsoft.Maui.Graphics;
@@ -17,7 +17,6 @@ public partial class VisualElement : IView
Rect _frame = new Rect(0, 0, -1, -1);
- ///
public Rect Frame
{
get => _frame;
@@ -30,7 +29,6 @@ public Rect Frame
}
}
- ///
new public IViewHandler? Handler
{
get => (IViewHandler?)base.Handler;
@@ -62,7 +60,6 @@ private protected override void OnHandlerChangedCore()
IShadow IView.Shadow => Shadow;
- ///
public static readonly BindableProperty ShadowProperty =
BindableProperty.Create(nameof(Shadow), typeof(Shadow), typeof(VisualElement), defaultValue: null,
propertyChanging: (bindable, oldvalue, newvalue) =>
@@ -76,7 +73,6 @@ private protected override void OnHandlerChangedCore()
(bindable as VisualElement)?.NotifyShadowChanges();
});
- ///
public Shadow Shadow
{
get { return (Shadow)GetValue(ShadowProperty); }
@@ -95,17 +91,14 @@ static void ZIndexPropertyChanged(BindableObject bindable, object oldValue, obje
}
}
- ///
public int ZIndex
{
get { return (int)GetValue(ZIndexProperty); }
set { SetValue(ZIndexProperty, value); }
}
- ///
public Size DesiredSize { get; protected set; }
- ///
public void Arrange(Rect bounds)
{
Layout(bounds);
@@ -352,6 +345,9 @@ void PropagateBindingContextToShadow()
SetInheritedBindingContext(Shadow, BindingContext);
}
+ ///
+ /// Indicates if a VisualElement is connected to the main object tree.
+ ///
public bool IsLoaded
{
get
@@ -366,6 +362,10 @@ public bool IsLoaded
}
}
+ ///
+ /// Occurs when a VisualElement has been constructed and added to the object tree.
+ /// This event may occur before the VisualElement has been measured so should not be relied on for size information.
+ ///
public event EventHandler? Loaded
{
add
@@ -383,6 +383,9 @@ public event EventHandler? Loaded
}
}
+ ///
+ /// Occurs when this VisualElement is no longer connected to the main object tree.
+ ///
public event EventHandler? Unloaded
{
add
@@ -473,4 +476,4 @@ void UpdatePlatformUnloadedLoadedWiring(Window? window)
internal IView? ParentView => ((this as IView)?.Parent as IView);
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/HandlerImpl/VisualElement/VisualElement.cs b/src/Controls/src/Core/HandlerImpl/VisualElement/VisualElement.cs
index e8f66073ca21..33e57263a6d8 100644
--- a/src/Controls/src/Core/HandlerImpl/VisualElement/VisualElement.cs
+++ b/src/Controls/src/Core/HandlerImpl/VisualElement/VisualElement.cs
@@ -5,7 +5,6 @@ namespace Microsoft.Maui.Controls
///
public partial class VisualElement
{
- ///
public static IPropertyMapper ControlsVisualElementMapper =
new PropertyMapper(Element.ControlsElementMapper)
{
@@ -27,7 +26,6 @@ internal static void RemapForControls()
ViewHandler.ViewMapper = ControlsVisualElementMapper;
}
- ///
public static void MapBackgroundColor(IViewHandler handler, IView view)
{
handler.UpdateValue(nameof(Background));
diff --git a/src/Controls/src/Core/ImageSourceConverter.cs b/src/Controls/src/Core/ImageSourceConverter.cs
index cace360ff845..9165787f6d92 100644
--- a/src/Controls/src/Core/ImageSourceConverter.cs
+++ b/src/Controls/src/Core/ImageSourceConverter.cs
@@ -9,15 +9,12 @@ namespace Microsoft.Maui.Controls
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.ImageSourceTypeConverter")]
public sealed class ImageSourceConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -27,7 +24,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(ImageSource)));
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is FileImageSource fis)
@@ -37,4 +33,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
throw new NotSupportedException();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Interactivity/TriggerAction.cs b/src/Controls/src/Core/Interactivity/TriggerAction.cs
index 1294d155de69..689fe6caff78 100644
--- a/src/Controls/src/Core/Interactivity/TriggerAction.cs
+++ b/src/Controls/src/Core/Interactivity/TriggerAction.cs
@@ -2,7 +2,6 @@
namespace Microsoft.Maui.Controls
{
- ///
public abstract class TriggerAction
{
internal TriggerAction(Type associatedType)
diff --git a/src/Controls/src/Core/Internals/AsyncValue.cs b/src/Controls/src/Core/Internals/AsyncValue.cs
index e5c67c8dd45e..70b3aa5295e5 100644
--- a/src/Controls/src/Core/Internals/AsyncValue.cs
+++ b/src/Controls/src/Core/Internals/AsyncValue.cs
@@ -93,8 +93,7 @@ void OnPropertyChanged([CallerMemberName] string propertyName = null) =>
[EditorBrowsable(EditorBrowsableState.Never)]
public static class AsyncValueExtensions
{
- ///
public static AsyncValue AsAsyncValue(this Task valueTask, T defaultValue = default(T)) =>
new AsyncValue(valueTask, defaultValue);
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Internals/CellExtensions.cs b/src/Controls/src/Core/Internals/CellExtensions.cs
index 1ca34b5179b9..0dce1d4c36da 100644
--- a/src/Controls/src/Core/Internals/CellExtensions.cs
+++ b/src/Controls/src/Core/Internals/CellExtensions.cs
@@ -8,32 +8,27 @@ namespace Microsoft.Maui.Controls.Internals
[EditorBrowsable(EditorBrowsableState.Never)]
public static class CellExtensions
{
- ///
public static bool GetIsGroupHeader(this TItem cell) where TView : BindableObject, ITemplatedItemsView where TItem : BindableObject
{
return TemplatedItemsList.GetIsGroupHeader(cell);
}
- ///
public static void SetIsGroupHeader(this TItem cell, bool value) where TView : BindableObject, ITemplatedItemsView where TItem : BindableObject
{
TemplatedItemsList.SetIsGroupHeader(cell, value);
}
- ///
public static TItem GetGroupHeaderContent(this TItem cell) where TView : BindableObject, ITemplatedItemsView where TItem : BindableObject
{
var group = TemplatedItemsList.GetGroup(cell);
return group.HeaderContent;
}
- ///
public static int GetIndex(this TItem cell) where TView : BindableObject, ITemplatedItemsView where TItem : BindableObject
{
return TemplatedItemsList.GetIndex(cell);
}
- ///
public static ITemplatedItemsList GetGroup(this TItem cell) where TView : BindableObject, ITemplatedItemsView where TItem : BindableObject
{
return TemplatedItemsList.GetGroup(cell);
diff --git a/src/Controls/src/Core/Internals/ImageParser.cs b/src/Controls/src/Core/Internals/ImageParser.cs
index 0934f5705001..1ed9b0666e68 100644
--- a/src/Controls/src/Core/Internals/ImageParser.cs
+++ b/src/Controls/src/Core/Internals/ImageParser.cs
@@ -321,13 +321,9 @@ public class GIFBitmap
{
public enum DisposeMethod
{
- ///
NoAction = 0,
- ///
LeaveInPlace = 1,
- ///
RestoreToBackground = 2,
- ///
RestoreToPrevious = 3
};
diff --git a/src/Controls/src/Core/Internals/TextTransformUtilites.cs b/src/Controls/src/Core/Internals/TextTransformUtilites.cs
index 33d83de599b9..875ca5f65624 100644
--- a/src/Controls/src/Core/Internals/TextTransformUtilites.cs
+++ b/src/Controls/src/Core/Internals/TextTransformUtilites.cs
@@ -2,11 +2,20 @@
namespace Microsoft.Maui.Controls.Internals
{
- ///
+ ///
+ /// A utilities class for text transformations.
+ ///
+ /// For internal use by the .NET MAUI platform.
[EditorBrowsable(EditorBrowsableState.Never)]
public static class TextTransformUtilites
{
- ///
+ ///
+ /// Applies the to .
+ ///
+ /// For internal use by the .NET MAUI platform mostly.
+ /// The text to transform.
+ /// The transform to apply to .
+ /// The transformed text.
[EditorBrowsable(EditorBrowsableState.Never)]
public static string GetTransformedText(string source, TextTransform textTransform)
{
@@ -25,8 +34,12 @@ public static string GetTransformedText(string source, TextTransform textTransfo
}
}
-
- ///
+ ///
+ /// Sets the plain text value to the specified input view.
+ ///
+ /// For internal use by the .NET MAUI platform.
+ /// The view that will receive the text value.
+ /// The text that will be applied to the view.
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetPlainText(InputView inputView, string platformText)
{
diff --git a/src/Controls/src/Core/Items/CarouselLayoutTypeConverter.cs b/src/Controls/src/Core/Items/CarouselLayoutTypeConverter.cs
index 56cfe3f33c69..b1498157bc7c 100644
--- a/src/Controls/src/Core/Items/CarouselLayoutTypeConverter.cs
+++ b/src/Controls/src/Core/Items/CarouselLayoutTypeConverter.cs
@@ -7,15 +7,12 @@ namespace Microsoft.Maui.Controls
///
public class CarouselLayoutTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -29,7 +26,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException($"Cannot convert \"{strValue}\" into {typeof(LinearItemsLayout)}");
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not LinearItemsLayout lil)
@@ -44,4 +40,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
throw new NotSupportedException();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Items/ItemsLayoutTypeConverter.cs b/src/Controls/src/Core/Items/ItemsLayoutTypeConverter.cs
index de7f9618c867..09043c5a7c8f 100644
--- a/src/Controls/src/Core/Items/ItemsLayoutTypeConverter.cs
+++ b/src/Controls/src/Core/Items/ItemsLayoutTypeConverter.cs
@@ -7,15 +7,12 @@ namespace Microsoft.Maui.Controls
///
public class ItemsLayoutTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -55,7 +52,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException($"Cannot convert \"{strValue}\" into {typeof(IItemsLayout)}");
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is LinearItemsLayout && value == LinearItemsLayout.Vertical)
@@ -67,4 +63,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
throw new NotSupportedException();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/ItemsView.cs b/src/Controls/src/Core/ItemsView.cs
index 972bf355b13f..3a6f13e49a48 100644
--- a/src/Controls/src/Core/ItemsView.cs
+++ b/src/Controls/src/Core/ItemsView.cs
@@ -55,7 +55,6 @@ public DataTemplate ItemTemplate
ITemplatedItemsList ITemplatedItemsView.TemplatedItems => TemplatedItems;
- ///
[EditorBrowsable(EditorBrowsableState.Never)]
public TemplatedItemsList, TVisual> TemplatedItems { get; }
@@ -85,4 +84,4 @@ static void OnItemsSourceChanged(BindableObject bindable, object oldValue, objec
protected virtual bool ValidateItemTemplate(DataTemplate template) => true;
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Label.cs b/src/Controls/src/Core/Label.cs
index c71e6995d1a9..223ce50f99ea 100644
--- a/src/Controls/src/Core/Label.cs
+++ b/src/Controls/src/Core/Label.cs
@@ -37,7 +37,6 @@ public partial class Label : View, IFontElement, ITextElement, ITextAlignmentEle
///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
///
@@ -207,7 +206,6 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
diff --git a/src/Controls/src/Core/Layout/AbsoluteLayout.cs b/src/Controls/src/Core/Layout/AbsoluteLayout.cs
index 9a63825ad574..c29c45682b57 100644
--- a/src/Controls/src/Core/Layout/AbsoluteLayout.cs
+++ b/src/Controls/src/Core/Layout/AbsoluteLayout.cs
@@ -63,7 +63,6 @@ public static void SetLayoutBounds(BindableObject bindable, Rect bounds)
#endregion
- ///
public AbsoluteLayoutFlags GetLayoutFlags(IView view)
{
return view switch
@@ -73,7 +72,6 @@ public AbsoluteLayoutFlags GetLayoutFlags(IView view)
};
}
- ///
public Rect GetLayoutBounds(IView view)
{
return view switch
diff --git a/src/Controls/src/Core/Layout/BoundsTypeConverter.cs b/src/Controls/src/Core/Layout/BoundsTypeConverter.cs
index e1d0b6685bdf..8cba9c0638af 100644
--- a/src/Controls/src/Core/Layout/BoundsTypeConverter.cs
+++ b/src/Controls/src/Core/Layout/BoundsTypeConverter.cs
@@ -9,15 +9,12 @@ namespace Microsoft.Maui.Controls
[Xaml.ProvideCompiled("Microsoft.Maui.Controls.XamlC.BoundsTypeConverter")]
public sealed class BoundsTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -54,7 +51,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException($"Cannot convert \"{value}\" into {typeof(Rect)}");
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not Rect rect)
@@ -62,4 +58,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return $"{rect.X.ToString(CultureInfo.InvariantCulture)}, {rect.Y.ToString(CultureInfo.InvariantCulture)}, {(rect.Width == AbsoluteLayout.AutoSize ? nameof(AbsoluteLayout.AutoSize) : rect.Width.ToString(CultureInfo.InvariantCulture))}, {(rect.Height == AbsoluteLayout.AutoSize ? nameof(AbsoluteLayout.AutoSize) : rect.Height.ToString(CultureInfo.InvariantCulture))}";
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Layout/FlexLayout.cs b/src/Controls/src/Core/Layout/FlexLayout.cs
index 2449b864a0be..f4e36f893e5b 100644
--- a/src/Controls/src/Core/Layout/FlexLayout.cs
+++ b/src/Controls/src/Core/Layout/FlexLayout.cs
@@ -264,7 +264,6 @@ class FlexInfo
public Flex.Item FlexItem { get; set; }
}
- ///
public int GetOrder(IView view)
{
return view switch
@@ -274,7 +273,6 @@ public int GetOrder(IView view)
};
}
- ///
public void SetOrder(IView view, int order)
{
switch (view)
@@ -288,7 +286,6 @@ public void SetOrder(IView view, int order)
}
}
- ///
public float GetGrow(IView view)
{
return view switch
@@ -298,7 +295,6 @@ public float GetGrow(IView view)
};
}
- ///
public void SetGrow(IView view, float grow)
{
switch (view)
@@ -312,7 +308,6 @@ public void SetGrow(IView view, float grow)
}
}
- ///
public float GetShrink(IView view)
{
return view switch
@@ -322,7 +317,6 @@ public float GetShrink(IView view)
};
}
- ///
public void SetShrink(IView view, float shrink)
{
switch (view)
@@ -336,7 +330,6 @@ public void SetShrink(IView view, float shrink)
}
}
- ///
public FlexAlignSelf GetAlignSelf(IView view)
{
return view switch
@@ -346,7 +339,6 @@ public FlexAlignSelf GetAlignSelf(IView view)
};
}
- ///
public void SetAlignSelf(IView view, FlexAlignSelf alignSelf)
{
switch (view)
@@ -360,7 +352,6 @@ public void SetAlignSelf(IView view, FlexAlignSelf alignSelf)
}
}
- ///
public FlexBasis GetBasis(IView view)
{
return view switch
@@ -370,7 +361,6 @@ public FlexBasis GetBasis(IView view)
};
}
- ///
public void SetBasis(IView view, FlexBasis basis)
{
switch (view)
@@ -547,7 +537,6 @@ protected override ILayoutManager CreateLayoutManager()
return new FlexLayoutManager(this);
}
- ///
public Graphics.Rect GetFlexFrame(IView view)
{
return view switch
@@ -568,7 +557,6 @@ void EnsureFlexItemPropertiesUpdated()
}
}
- ///
public void Layout(double width, double height)
{
if (_root.Parent != null) //Layout is only computed at root level
diff --git a/src/Controls/src/Core/Layout/Grid.cs b/src/Controls/src/Core/Layout/Grid.cs
index 92e5a84e127b..fba04c34c0b4 100644
--- a/src/Controls/src/Core/Layout/Grid.cs
+++ b/src/Controls/src/Core/Layout/Grid.cs
@@ -145,7 +145,6 @@ public double ColumnSpacing
set { SetValue(ColumnSpacingProperty, value); }
}
- ///
public int GetColumn(IView view)
{
return view switch
@@ -155,7 +154,6 @@ public int GetColumn(IView view)
};
}
- ///
public int GetColumnSpan(IView view)
{
return view switch
@@ -165,7 +163,6 @@ public int GetColumnSpan(IView view)
};
}
- ///
public int GetRow(IView view)
{
return view switch
@@ -175,7 +172,6 @@ public int GetRow(IView view)
};
}
- ///
public int GetRowSpan(IView view)
{
return view switch
@@ -185,19 +181,16 @@ public int GetRowSpan(IView view)
};
}
- ///
public void AddRowDefinition(RowDefinition gridRowDefinition)
{
RowDefinitions.Add(gridRowDefinition);
}
- ///
public void AddColumnDefinition(ColumnDefinition gridColumnDefinition)
{
ColumnDefinitions.Add(gridColumnDefinition);
}
- ///
public void SetRow(IView view, int row)
{
switch (view)
@@ -212,7 +205,6 @@ public void SetRow(IView view, int row)
}
}
- ///
public void SetRowSpan(IView view, int span)
{
switch (view)
@@ -227,7 +219,6 @@ public void SetRowSpan(IView view, int span)
}
}
- ///
public void SetColumn(IView view, int col)
{
switch (view)
@@ -242,7 +233,6 @@ public void SetColumn(IView view, int col)
}
}
- ///
public void SetColumnSpan(IView view, int span)
{
switch (view)
diff --git a/src/Controls/src/Core/Layout/Layout.cs b/src/Controls/src/Core/Layout/Layout.cs
index 9853b2d45006..64019f8d6c83 100644
--- a/src/Controls/src/Core/Layout/Layout.cs
+++ b/src/Controls/src/Core/Layout/Layout.cs
@@ -42,10 +42,8 @@ static ILayoutManager GetLayoutManagerFromFactory(Layout layout)
internal override IReadOnlyList LogicalChildrenInternal =>
_logicalChildren ??= new ReadOnlyCastingList(_children);
- ///
public int Count => _children.Count;
- ///
public bool IsReadOnly => ((ICollection)_children).IsReadOnly;
public IView this[int index]
@@ -110,17 +108,14 @@ public Thickness Padding
set => SetValue(PaddingElement.PaddingProperty, value);
}
- ///
public bool IgnoreSafeArea { get; set; }
protected abstract ILayoutManager CreateLayoutManager();
- ///
public IEnumerator GetEnumerator() => _children.GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() => _children.GetEnumerator();
- ///
public override SizeRequest Measure(double widthConstraint, double heightConstraint, MeasureFlags flags = MeasureFlags.None)
{
var size = (this as IView).Measure(widthConstraint, heightConstraint);
@@ -132,7 +127,6 @@ protected override void InvalidateMeasureOverride()
base.InvalidateMeasureOverride();
}
- ///
public void Add(IView child)
{
if (child == null)
@@ -144,7 +138,6 @@ public void Add(IView child)
OnAdd(index, child);
}
- ///
public void Clear()
{
for (var index = Count - 1; index >= 0; index--)
@@ -159,25 +152,21 @@ public void Clear()
OnClear();
}
- ///
public bool Contains(IView item)
{
return _children.Contains(item);
}
- ///
public void CopyTo(IView[] array, int arrayIndex)
{
_children.CopyTo(array, arrayIndex);
}
- ///
public int IndexOf(IView item)
{
return _children.IndexOf(item);
}
- ///
public void Insert(int index, IView child)
{
if (child == null)
@@ -188,7 +177,6 @@ public void Insert(int index, IView child)
OnInsert(index, child);
}
- ///
public bool Remove(IView child)
{
if (child == null)
@@ -206,7 +194,6 @@ public bool Remove(IView child)
return true;
}
- ///
public void RemoveAt(int index)
{
if (index >= Count)
@@ -290,13 +277,11 @@ Thickness IPaddingElement.PaddingDefaultValueCreator()
IReadOnlyList IVisualTreeElement.GetVisualChildren() => Children.Cast().ToList().AsReadOnly();
- ///
public Graphics.Size CrossPlatformMeasure(double widthConstraint, double heightConstraint)
{
return LayoutManager.Measure(widthConstraint, heightConstraint);
}
- ///
public Graphics.Size CrossPlatformArrange(Graphics.Rect bounds)
{
return LayoutManager.ArrangeChildren(bounds);
diff --git a/src/Controls/src/Core/LayoutOptionsConverter.cs b/src/Controls/src/Core/LayoutOptionsConverter.cs
index b74866f89ada..6bea823bc966 100644
--- a/src/Controls/src/Core/LayoutOptionsConverter.cs
+++ b/src/Controls/src/Core/LayoutOptionsConverter.cs
@@ -11,16 +11,13 @@ namespace Microsoft.Maui.Controls
[Xaml.ProvideCompiled("Microsoft.Maui.Controls.XamlC.LayoutOptionsConverter")]
public sealed class LayoutOptionsConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> true;
#pragma warning disable CS0618 // Type or member is obsolete (AndExpand options)
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -59,7 +56,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
}
#pragma warning restore CS0618 // Type or member is obsolete
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not LayoutOptions options)
@@ -75,15 +71,12 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
throw new NotSupportedException();
}
- ///
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
=> true;
- ///
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
=> false;
- ///
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
=> new(new[] {
"Start",
@@ -96,4 +89,4 @@ public override StandardValuesCollection GetStandardValues(ITypeDescriptorContex
"FillAndExpand"
});
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/ListStringTypeConverter.cs b/src/Controls/src/Core/ListStringTypeConverter.cs
index 40fbad374989..9a51aa9194a1 100644
--- a/src/Controls/src/Core/ListStringTypeConverter.cs
+++ b/src/Controls/src/Core/ListStringTypeConverter.cs
@@ -10,15 +10,12 @@ namespace Microsoft.Maui.Controls
[Xaml.ProvideCompiled("Microsoft.Maui.Controls.XamlC.ListStringTypeConverter")]
public class ListStringTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -28,7 +25,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
return strValue.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()).ToList();
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not List list)
@@ -36,4 +32,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return string.Join(", ", list);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/MessagingCenter.cs b/src/Controls/src/Core/MessagingCenter.cs
index e57822c1e23b..5f12e63a2b43 100644
--- a/src/Controls/src/Core/MessagingCenter.cs
+++ b/src/Controls/src/Core/MessagingCenter.cs
@@ -106,7 +106,6 @@ public bool CanBeRemoved()
readonly Dictionary> _subscriptions =
new Dictionary>();
- ///
public static void Send(TSender sender, string message, TArgs args) where TSender : class
{
Instance.Send(sender, message, args);
@@ -119,7 +118,6 @@ void IMessagingCenter.Send(TSender sender, string message, TArgs
InnerSend(message, typeof(TSender), typeof(TArgs), sender, args);
}
- ///
public static void Send(TSender sender, string message) where TSender : class
{
Instance.Send(sender, message);
@@ -132,7 +130,6 @@ void IMessagingCenter.Send(TSender sender, string message)
InnerSend(message, typeof(TSender), null, sender, null);
}
- ///
public static void Subscribe(object subscriber, string message, Action callback, TSender source = null) where TSender : class
{
Instance.Subscribe(subscriber, message, callback, source);
@@ -156,7 +153,6 @@ void IMessagingCenter.Subscribe(object subscriber, string messag
InnerSubscribe(subscriber, message, typeof(TSender), typeof(TArgs), target, callback.GetMethodInfo(), filter);
}
- ///
public static void Subscribe(object subscriber, string message, Action callback, TSender source = null) where TSender : class
{
Instance.Subscribe(subscriber, message, callback, source);
@@ -180,7 +176,6 @@ void IMessagingCenter.Subscribe(object subscriber, string message, Acti
InnerSubscribe(subscriber, message, typeof(TSender), null, target, callback.GetMethodInfo(), filter);
}
- ///
public static void Unsubscribe(object subscriber, string message) where TSender : class
{
Instance.Unsubscribe(subscriber, message);
@@ -191,7 +186,6 @@ void IMessagingCenter.Unsubscribe(object subscriber, string mess
InnerUnsubscribe(message, typeof(TSender), typeof(TArgs), subscriber);
}
- ///
public static void Unsubscribe(object subscriber, string message) where TSender : class
{
Instance.Unsubscribe(subscriber, message);
diff --git a/src/Controls/src/Core/NameScopeExtensions.cs b/src/Controls/src/Core/NameScopeExtensions.cs
index 6ee1f3dc716c..7d0c08349e81 100644
--- a/src/Controls/src/Core/NameScopeExtensions.cs
+++ b/src/Controls/src/Core/NameScopeExtensions.cs
@@ -6,7 +6,6 @@ namespace Microsoft.Maui.Controls
///
public static class NameScopeExtensions
{
- ///
public static T FindByName(this Element element, string name)
{
try
@@ -23,4 +22,4 @@ public static T FindByName(this Element element, string name)
internal static T FindByName(this INameScope namescope, string name)
=> (T)namescope.FindByName(name);
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/NavigationModel.cs b/src/Controls/src/Core/NavigationModel.cs
index 62a4ee3b43d4..cae8a246abfa 100644
--- a/src/Controls/src/Core/NavigationModel.cs
+++ b/src/Controls/src/Core/NavigationModel.cs
@@ -20,7 +20,6 @@ public Page CurrentPage
}
}
- ///
public Page LastRoot
{
get
@@ -221,4 +220,4 @@ public bool RemovePage(Page page)
return found;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Page.cs b/src/Controls/src/Core/Page.cs
index e472d90341df..680e02ac87c1 100644
--- a/src/Controls/src/Core/Page.cs
+++ b/src/Controls/src/Core/Page.cs
@@ -189,7 +189,6 @@ public Task DisplayActionSheet(string title, string cancel, string destr
return DisplayActionSheet(title, cancel, destruction, FlowDirection.MatchParent, buttons);
}
- ///
public Task DisplayActionSheet(string title, string cancel, string destruction, FlowDirection flowDirection, params string[] buttons)
{
var args = new ActionSheetArguments(title, cancel, destruction, buttons);
diff --git a/src/Controls/src/Core/PanGestureRecognizer.cs b/src/Controls/src/Core/PanGestureRecognizer.cs
index 30900ea59cb1..6af5b1473a8c 100644
--- a/src/Controls/src/Core/PanGestureRecognizer.cs
+++ b/src/Controls/src/Core/PanGestureRecognizer.cs
@@ -7,7 +7,6 @@ namespace Microsoft.Maui.Controls
///
public class PanGestureRecognizer : GestureRecognizer, IPanGestureController
{
- ///
[EditorBrowsable(EditorBrowsableState.Never)]
public static AutoId CurrentId { get; } = new();
@@ -43,4 +42,4 @@ void IPanGestureController.SendPanStarted(Element sender, int gestureId)
public event EventHandler PanUpdated;
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Picker.cs b/src/Controls/src/Core/Picker.cs
index 9cbc08eeb76c..3935832d394c 100644
--- a/src/Controls/src/Core/Picker.cs
+++ b/src/Controls/src/Core/Picker.cs
@@ -51,7 +51,6 @@ public partial class Picker : View, IFontElement, ITextElement, ITextAlignmentEl
///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
///
@@ -90,7 +89,6 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
diff --git a/src/Controls/src/Core/PlatformBindingHelpers.cs b/src/Controls/src/Core/PlatformBindingHelpers.cs
index f8818fcf93ca..d6bc68b89806 100644
--- a/src/Controls/src/Core/PlatformBindingHelpers.cs
+++ b/src/Controls/src/Core/PlatformBindingHelpers.cs
@@ -13,7 +13,6 @@ namespace Microsoft.Maui.Controls.Internals
///
internal static class PlatformBindingHelpers
{
- ///
public static void SetBinding(TPlatformView target, string targetProperty, BindingBase bindingBase, string updateSourceEventName = null) where TPlatformView : class
{
var binding = bindingBase as Binding;
@@ -27,7 +26,6 @@ public static void SetBinding(TPlatformView target, string target
SetBinding(target, targetProperty, bindingBase, eventWrapper);
}
- ///
public static void SetBinding(TPlatformView target, string targetProperty, BindingBase bindingBase, INotifyPropertyChanged propertyChanged) where TPlatformView : class
{
if (target == null)
@@ -99,7 +97,6 @@ static void SetValueFromRenderer(BindableObject bindable, BindableProperty prope
bindable.SetValueCore(property, value);
}
- ///
public static void SetBinding(TPlatformView target, BindableProperty targetProperty, BindingBase binding) where TPlatformView : class
{
if (target == null)
@@ -113,7 +110,6 @@ public static void SetBinding(TPlatformView target, BindablePrope
proxy.BindingsBackpack.Add(new KeyValuePair(targetProperty, binding));
}
- ///
public static void SetValue(TPlatformView target, BindableProperty targetProperty, object value) where TPlatformView : class
{
if (target == null)
@@ -125,7 +121,6 @@ public static void SetValue(TPlatformView target, BindablePropert
proxy.ValuesBackpack.Add(new KeyValuePair(targetProperty, value));
}
- ///
public static void SetBindingContext(TPlatformView target, object bindingContext, Func> getChild = null) where TPlatformView : class
{
if (target == null)
@@ -143,7 +138,6 @@ public static void SetBindingContext(TPlatformView target, object
SetBindingContext(child, bindingContext, getChild);
}
- ///
public static void TransferBindablePropertiesToWrapper(TPlatformView platformView, TPlatformWrapper wrapper)
where TPlatformView : class
where TPlatformWrapper : View
diff --git a/src/Controls/src/Core/PlatformConfiguration/WindowsSpecific/RefreshView.cs b/src/Controls/src/Core/PlatformConfiguration/WindowsSpecific/RefreshView.cs
index d155be29d453..ee17ad38920d 100644
--- a/src/Controls/src/Core/PlatformConfiguration/WindowsSpecific/RefreshView.cs
+++ b/src/Controls/src/Core/PlatformConfiguration/WindowsSpecific/RefreshView.cs
@@ -7,13 +7,9 @@ public static class RefreshView
{
public enum RefreshPullDirection
{
- ///
LeftToRight,
- ///
TopToBottom,
- ///
RightToLeft,
- ///
BottomToTop
}
diff --git a/src/Controls/src/Core/PlatformConfiguration/WindowsSpecific/WebView.cs b/src/Controls/src/Core/PlatformConfiguration/WindowsSpecific/WebView.cs
index 22e0638b7e66..421faa39a503 100644
--- a/src/Controls/src/Core/PlatformConfiguration/WindowsSpecific/WebView.cs
+++ b/src/Controls/src/Core/PlatformConfiguration/WindowsSpecific/WebView.cs
@@ -36,28 +36,23 @@ public static IPlatformElementConfiguration SetIsJavaScri
- ///
public static readonly BindableProperty ExecutionModeProperty = BindableProperty.Create("ExecutionMode", typeof(WebViewExecutionMode), typeof(WebView), WebViewExecutionMode.SameThread);
- ///
public static WebViewExecutionMode GetExecutionMode(BindableObject element)
{
return (WebViewExecutionMode)element.GetValue(ExecutionModeProperty);
}
- ///
public static void SetExecutionMode(BindableObject element, WebViewExecutionMode value)
{
element.SetValue(ExecutionModeProperty, value);
}
- ///
public static WebViewExecutionMode GetExecutionMode(this IPlatformElementConfiguration config)
{
return GetExecutionMode(config.Element);
}
- ///
public static IPlatformElementConfiguration SetExecutionMode(this IPlatformElementConfiguration config, WebViewExecutionMode value)
{
SetExecutionMode(config.Element, value);
diff --git a/src/Controls/src/Core/RadioButton.cs b/src/Controls/src/Core/RadioButton.cs
index 3a6292f76aa0..19adb35aa647 100644
--- a/src/Controls/src/Core/RadioButton.cs
+++ b/src/Controls/src/Core/RadioButton.cs
@@ -76,7 +76,6 @@ public partial class RadioButton : TemplatedView, IElementConfiguration
public static readonly BindableProperty FontSizeProperty = FontElement.FontSizeProperty;
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
///
@@ -166,7 +165,6 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
diff --git a/src/Controls/src/Core/RadioButtonGroup.cs b/src/Controls/src/Core/RadioButtonGroup.cs
index 69d5c53e7aff..2084a7c0a8b3 100644
--- a/src/Controls/src/Core/RadioButtonGroup.cs
+++ b/src/Controls/src/Core/RadioButtonGroup.cs
@@ -29,7 +29,6 @@ public static string GetGroupName(BindableObject b)
return (string)b.GetValue(GroupNameProperty);
}
- ///
public static void SetGroupName(BindableObject bindable, string groupName)
{
bindable.SetValue(GroupNameProperty, groupName);
@@ -47,7 +46,6 @@ public static object GetSelectedValue(BindableObject bindableObject)
return bindableObject.GetValue(SelectedValueProperty);
}
- ///
public static void SetSelectedValue(BindableObject bindable, object selectedValue)
{
bindable.SetValue(SelectedValueProperty, selectedValue);
@@ -107,4 +105,4 @@ internal static Element GetVisualRoot(Element element)
return parent;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/ReferenceTypeConverter.cs b/src/Controls/src/Core/ReferenceTypeConverter.cs
index 3be7a5d48f48..537537e56f04 100644
--- a/src/Controls/src/Core/ReferenceTypeConverter.cs
+++ b/src/Controls/src/Core/ReferenceTypeConverter.cs
@@ -12,11 +12,9 @@ namespace Microsoft.Maui.Controls
public sealed class ReferenceTypeConverter : TypeConverter, IExtendedTypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
@@ -43,12 +41,10 @@ object IExtendedTypeConverter.ConvertFromInvariantString(string value, IServiceP
throw new Exception("Can't resolve name on Element");
}
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
=> throw new NotImplementedException();
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
=> throw new NotSupportedException();
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Registrar.cs b/src/Controls/src/Core/Registrar.cs
index 675974e3a7bd..64b28c81280f 100644
--- a/src/Controls/src/Core/Registrar.cs
+++ b/src/Controls/src/Core/Registrar.cs
@@ -14,14 +14,12 @@ public enum InitializationFlags : long
{
///
DisableCss = 1 << 0,
- ///
SkipRenderers = 1 << 1,
}
}
namespace Microsoft.Maui.Controls.Internals
{
- ///
[EditorBrowsable(EditorBrowsableState.Never)]
public class Registrar where TRegistrable : class
{
@@ -31,7 +29,6 @@ public class Registrar where TRegistrable : class
static Type[] _defaultVisualRenderers = new[] { _defaultVisualType };
- ///
public void Register(Type tview, Type trender, Type[] supportedVisuals, short priority)
{
supportedVisuals = supportedVisuals ?? _defaultVisualRenderers;
@@ -73,10 +70,8 @@ public void Register(Type tview, Type trender, Type[] supportedVisuals, short pr
// });
}
- ///
public void Register(Type tview, Type trender, Type[] supportedVisual) => Register(tview, trender, supportedVisual, 0);
- ///
public void Register(Type tview, Type trender) => Register(tview, trender, _defaultVisualRenderers);
internal TRegistrable GetHandler(Type type) => GetHandler(type, _defaultVisualType);
@@ -113,19 +108,16 @@ internal TRegistrable GetHandler(Type type, object source, IVisual visual, param
return returnValue;
}
- ///
public TOut GetHandler(Type type) where TOut : class, TRegistrable
{
return GetHandler(type) as TOut;
}
- ///
public TOut GetHandler(Type type, params object[] args) where TOut : class, TRegistrable
{
return GetHandler(type, null, null, args) as TOut;
}
- ///
public TOut GetHandlerForObject(object obj) where TOut : class, TRegistrable
{
if (obj == null)
@@ -137,7 +129,6 @@ public TOut GetHandlerForObject(object obj) where TOut : class, TRegistrab
return GetHandler(type, (obj as IVisualController)?.EffectiveVisual?.GetType()) as TOut;
}
- ///
public TOut GetHandlerForObject(object obj, params object[] args) where TOut : class, TRegistrable
{
if (obj == null)
@@ -149,10 +140,8 @@ public TOut GetHandlerForObject(object obj, params object[] args) where TO
return GetHandler(type, obj, (obj as IVisualController)?.EffectiveVisual, args) as TOut;
}
- ///
public Type GetHandlerType(Type viewType) => GetHandlerType(viewType, _defaultVisualType);
- ///
public Type GetHandlerType(Type viewType, Type visualType)
{
visualType = visualType ?? _defaultVisualType;
@@ -178,7 +167,6 @@ public Type GetHandlerType(Type viewType, Type visualType)
return null;
}
- ///
public Type GetHandlerTypeForObject(object obj)
{
if (obj == null)
@@ -316,7 +304,6 @@ public static void RegisterRenderers(HandlerAttribute[] attributes)
// If the user has called Forms.Init() this will register all found types
// into the handlers registrar and then it will use this factory to create a shim
internal static Func RendererToHandlerShim { get; private set; }
- ///
public static void RegisterRendererToHandlerShim(Func handlerShim)
{
RendererToHandlerShim = handlerShim;
@@ -381,7 +368,6 @@ public static void RegisterEffects(string resolutionName, ExportEffectAttribute[
}
}
- ///
public static void RegisterEffect(string resolutionName, string id, Type effectType)
{
Effects[resolutionName + "." + id] = effectType;
diff --git a/src/Controls/src/Core/RouteFactory.cs b/src/Controls/src/Core/RouteFactory.cs
index fb781a70a74f..c8083fcbdd18 100644
--- a/src/Controls/src/Core/RouteFactory.cs
+++ b/src/Controls/src/Core/RouteFactory.cs
@@ -7,7 +7,6 @@ public abstract class RouteFactory
{
///
public abstract Element GetOrCreate();
- ///
public abstract Element GetOrCreate(IServiceProvider services);
}
}
diff --git a/src/Controls/src/Core/RowDefinitionCollectionTypeConverter.cs b/src/Controls/src/Core/RowDefinitionCollectionTypeConverter.cs
index e2adba3a5e3e..2771f4e95995 100644
--- a/src/Controls/src/Core/RowDefinitionCollectionTypeConverter.cs
+++ b/src/Controls/src/Core/RowDefinitionCollectionTypeConverter.cs
@@ -10,15 +10,12 @@ namespace Microsoft.Maui.Controls
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.RowDefinitionCollectionTypeConverter")]
public class RowDefinitionCollectionTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> true;
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -36,7 +33,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(RowDefinitionCollection)));
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not RowDefinitionCollection rdc)
@@ -45,4 +41,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return string.Join(", ", rdc.Select(rd => converter.ConvertToInvariantString(rd.Height)));
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/ScrollToRequestedEventArgs.cs b/src/Controls/src/Core/ScrollToRequestedEventArgs.cs
index 72370c82fe69..0f25839fe9a1 100644
--- a/src/Controls/src/Core/ScrollToRequestedEventArgs.cs
+++ b/src/Controls/src/Core/ScrollToRequestedEventArgs.cs
@@ -74,10 +74,9 @@ object ITemplatedItemsListScrollToRequestedEventArgs.Item
}
}
- ///
public ScrollToRequest ToRequest()
{
return new ScrollToRequest(ScrollX, ScrollY, !ShouldAnimate);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/SearchBar.cs b/src/Controls/src/Core/SearchBar.cs
index 50ecf266953b..44fa9263e7f9 100644
--- a/src/Controls/src/Core/SearchBar.cs
+++ b/src/Controls/src/Core/SearchBar.cs
@@ -36,16 +36,12 @@ public partial class SearchBar : InputView, IFontElement, ITextAlignmentElement,
///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
public static readonly BindableProperty IsTextPredictionEnabledProperty = BindableProperty.Create(nameof(IsTextPredictionEnabled), typeof(bool), typeof(SearchBar), true, BindingMode.Default);
- ///
public static readonly BindableProperty CursorPositionProperty = BindableProperty.Create(nameof(CursorPosition), typeof(int), typeof(SearchBar), 0, validateValue: (b, v) => (int)v >= 0);
- ///
public static readonly BindableProperty SelectionLengthProperty = BindableProperty.Create(nameof(SelectionLength), typeof(int), typeof(SearchBar), 0, validateValue: (b, v) => (int)v >= 0);
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
///
@@ -109,21 +105,18 @@ public FontAttributes FontAttributes
set { SetValue(FontAttributesProperty, value); }
}
- ///
public bool IsTextPredictionEnabled
{
get { return (bool)GetValue(IsTextPredictionEnabledProperty); }
set { SetValue(IsTextPredictionEnabledProperty, value); }
}
- ///
public int CursorPosition
{
get { return (int)GetValue(CursorPositionProperty); }
set { SetValue(CursorPositionProperty, value); }
}
- ///
public int SelectionLength
{
get { return (int)GetValue(SelectionLengthProperty); }
@@ -145,7 +138,6 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
diff --git a/src/Controls/src/Core/Shapes/EllipseGeometry.cs b/src/Controls/src/Core/Shapes/EllipseGeometry.cs
index 30cc9557820d..0b2d41ab93d4 100644
--- a/src/Controls/src/Core/Shapes/EllipseGeometry.cs
+++ b/src/Controls/src/Core/Shapes/EllipseGeometry.cs
@@ -53,7 +53,6 @@ public double RadiusY
get { return (double)GetValue(RadiusYProperty); }
}
- ///
public override void AppendPath(PathF path)
{
var centerX = (float)Center.X;
@@ -65,4 +64,4 @@ public override void AppendPath(PathF path)
path.AppendEllipse(centerX - radiusX, centerY - radiusY, radiusX * 2f, radiusY * 2f);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/Geometry.cs b/src/Controls/src/Core/Shapes/Geometry.cs
index 1bdfc940b809..7a9d8a6a43cb 100644
--- a/src/Controls/src/Core/Shapes/Geometry.cs
+++ b/src/Controls/src/Core/Shapes/Geometry.cs
@@ -5,7 +5,6 @@ namespace Microsoft.Maui.Controls.Shapes
///
public abstract class Geometry : BindableObject, IGeometry
{
- ///
public abstract void AppendPath(PathF path);
PathF IShape.PathForBounds(Graphics.Rect bounds)
@@ -17,4 +16,4 @@ PathF IShape.PathForBounds(Graphics.Rect bounds)
return path;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/GeometryGroup.cs b/src/Controls/src/Core/Shapes/GeometryGroup.cs
index 694a6002b256..8cc9a03163a6 100644
--- a/src/Controls/src/Core/Shapes/GeometryGroup.cs
+++ b/src/Controls/src/Core/Shapes/GeometryGroup.cs
@@ -104,7 +104,6 @@ void Invalidate()
InvalidateGeometryRequested?.Invoke(this, EventArgs.Empty);
}
- ///
public override void AppendPath(Graphics.PathF path)
{
foreach (var c in Children)
@@ -113,4 +112,4 @@ public override void AppendPath(Graphics.PathF path)
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/Line.cs b/src/Controls/src/Core/Shapes/Line.cs
index 7813ce784d37..0192f5deed8d 100644
--- a/src/Controls/src/Core/Shapes/Line.cs
+++ b/src/Controls/src/Core/Shapes/Line.cs
@@ -8,7 +8,6 @@ public Line() : base()
{
}
- ///
public Line(double x1, double y1, double x2, double y2) : this()
{
X1 = x1;
diff --git a/src/Controls/src/Core/Shapes/LineGeometry.cs b/src/Controls/src/Core/Shapes/LineGeometry.cs
index 5ae8b68b00dd..783a10cdfc05 100644
--- a/src/Controls/src/Core/Shapes/LineGeometry.cs
+++ b/src/Controls/src/Core/Shapes/LineGeometry.cs
@@ -41,7 +41,6 @@ public Point EndPoint
get { return (Point)GetValue(EndPointProperty); }
}
- ///
public override void AppendPath(PathF path)
{
float startPointX = (float)StartPoint.X;
@@ -54,4 +53,4 @@ public override void AppendPath(PathF path)
path.LineTo(endPointX, endPointY);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/MatrixTypeConverter.cs b/src/Controls/src/Core/Shapes/MatrixTypeConverter.cs
index cf2702ed5d5a..d167e8143613 100644
--- a/src/Controls/src/Core/Shapes/MatrixTypeConverter.cs
+++ b/src/Controls/src/Core/Shapes/MatrixTypeConverter.cs
@@ -7,15 +7,12 @@ namespace Microsoft.Maui.Controls.Shapes
///
public class MatrixTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
=> CreateMatrix(value?.ToString());
@@ -38,7 +35,6 @@ internal static Matrix CreateMatrix(string value)
return new Matrix(values[0], values[1], values[2], values[3], values[4], values[5]);
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not Matrix matrix)
@@ -46,4 +42,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return $"{matrix.M11.ToString(CultureInfo.InvariantCulture)}, {matrix.M12.ToString(CultureInfo.InvariantCulture)}, {matrix.M21.ToString(CultureInfo.InvariantCulture)}, {matrix.M22.ToString(CultureInfo.InvariantCulture)}, {matrix.OffsetX.ToString(CultureInfo.InvariantCulture)}, {matrix.OffsetY.ToString(CultureInfo.InvariantCulture)}";
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/Path.cs b/src/Controls/src/Core/Shapes/Path.cs
index 37aff8372d63..c8a15a7e46b1 100644
--- a/src/Controls/src/Core/Shapes/Path.cs
+++ b/src/Controls/src/Core/Shapes/Path.cs
@@ -11,7 +11,6 @@ public Path() : base()
{
}
- ///
public Path(Geometry data) : this()
{
Data = data;
diff --git a/src/Controls/src/Core/Shapes/PathFigureCollectionConverter.cs b/src/Controls/src/Core/Shapes/PathFigureCollectionConverter.cs
index 074993e5b9ba..d196625e9e3b 100644
--- a/src/Controls/src/Core/Shapes/PathFigureCollectionConverter.cs
+++ b/src/Controls/src/Core/Shapes/PathFigureCollectionConverter.cs
@@ -9,11 +9,9 @@ namespace Microsoft.Maui.Controls.Shapes
///
public class PathFigureCollectionConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> false;
@@ -29,7 +27,6 @@ public override bool CanConvertTo(ITypeDescriptorContext context, Type destinati
static Point _secondLastPoint;
static char _token;
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -578,8 +575,7 @@ static void SkipDigits(bool signAllowed)
}
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
=> throw new NotSupportedException();
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/PathGeometry.cs b/src/Controls/src/Core/Shapes/PathGeometry.cs
index 442ccfae2ca0..9ccbb1b14053 100644
--- a/src/Controls/src/Core/Shapes/PathGeometry.cs
+++ b/src/Controls/src/Core/Shapes/PathGeometry.cs
@@ -61,7 +61,6 @@ public FillRule FillRule
internal event EventHandler InvalidatePathGeometryRequested;
- ///
public override void AppendPath(PathF path)
{
foreach (var figure in Figures)
@@ -250,4 +249,4 @@ void Invalidate()
InvalidatePathGeometryRequested?.Invoke(this, EventArgs.Empty);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/PathGeometryConverter.cs b/src/Controls/src/Core/Shapes/PathGeometryConverter.cs
index 209c25ac8a63..574f7af93a3c 100644
--- a/src/Controls/src/Core/Shapes/PathGeometryConverter.cs
+++ b/src/Controls/src/Core/Shapes/PathGeometryConverter.cs
@@ -7,15 +7,12 @@ namespace Microsoft.Maui.Controls.Shapes
///
public class PathGeometryConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> false;
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -26,8 +23,7 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
return pathGeometry;
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
=> throw new NotSupportedException();
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/PointCollectionConverter.cs b/src/Controls/src/Core/Shapes/PointCollectionConverter.cs
index cdfb1c22c0b2..5f30f6e35a5d 100644
--- a/src/Controls/src/Core/Shapes/PointCollectionConverter.cs
+++ b/src/Controls/src/Core/Shapes/PointCollectionConverter.cs
@@ -10,15 +10,12 @@ namespace Microsoft.Maui.Controls.Shapes
///
public class PointCollectionConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -55,7 +52,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
return pointCollection;
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not PointCollection pc)
@@ -65,4 +61,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return string.Join(", ", pc.Select(p => converter.ConvertToInvariantString(p)));
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/Polygon.cs b/src/Controls/src/Core/Shapes/Polygon.cs
index a5141be3a8de..6f7a86aa3cf8 100644
--- a/src/Controls/src/Core/Shapes/Polygon.cs
+++ b/src/Controls/src/Core/Shapes/Polygon.cs
@@ -8,7 +8,6 @@ public Polygon() : base()
{
}
- ///
public Polygon(PointCollection points) : this()
{
Points = points;
diff --git a/src/Controls/src/Core/Shapes/Polyline.cs b/src/Controls/src/Core/Shapes/Polyline.cs
index 1d6b512ade9b..c777f48c793f 100644
--- a/src/Controls/src/Core/Shapes/Polyline.cs
+++ b/src/Controls/src/Core/Shapes/Polyline.cs
@@ -8,7 +8,6 @@ public Polyline() : base()
{
}
- ///
public Polyline(PointCollection points) : this()
{
Points = points;
diff --git a/src/Controls/src/Core/Shapes/RectangleGeometry.cs b/src/Controls/src/Core/Shapes/RectangleGeometry.cs
index 8cad7446b0f7..dc2ad2e2df8f 100644
--- a/src/Controls/src/Core/Shapes/RectangleGeometry.cs
+++ b/src/Controls/src/Core/Shapes/RectangleGeometry.cs
@@ -29,7 +29,6 @@ public Rect Rect
get { return (Rect)GetValue(RectProperty); }
}
- ///
public override void AppendPath(Graphics.PathF path)
{
float x = (float)Rect.X;
@@ -40,4 +39,4 @@ public override void AppendPath(Graphics.PathF path)
path.AppendRectangle(x, y, w, h);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/Shape.cs b/src/Controls/src/Core/Shapes/Shape.cs
index 71b8a0c14723..f07a60100800 100644
--- a/src/Controls/src/Core/Shapes/Shape.cs
+++ b/src/Controls/src/Core/Shapes/Shape.cs
@@ -15,7 +15,6 @@ public Shape()
{
}
- ///
public abstract PathF GetPath();
///
@@ -154,7 +153,6 @@ PathAspect IShapeView.Aspect
_ => LineJoin.Round
};
- ///
public float[] StrokeDashPattern
=> StrokeDashArray.Select(a => (float)a).ToArray();
@@ -322,4 +320,4 @@ protected override Size MeasureOverride(double widthConstraint, double heightCon
return result;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shapes/TransformTypeConverter.cs b/src/Controls/src/Core/Shapes/TransformTypeConverter.cs
index 67ae295a3d65..59f8fab00f77 100644
--- a/src/Controls/src/Core/Shapes/TransformTypeConverter.cs
+++ b/src/Controls/src/Core/Shapes/TransformTypeConverter.cs
@@ -7,22 +7,18 @@ namespace Microsoft.Maui.Controls.Shapes
///
public class TransformTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
=> new MatrixTransform
{
Matrix = MatrixTypeConverter.CreateMatrix(value?.ToString())
};
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not MatrixTransform mt)
@@ -31,4 +27,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return converter.ConvertToInvariantString(mt.Matrix);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shell/BackButtonBehavior.cs b/src/Controls/src/Core/Shell/BackButtonBehavior.cs
index be2538453f31..6fe255864369 100644
--- a/src/Controls/src/Core/Shell/BackButtonBehavior.cs
+++ b/src/Controls/src/Core/Shell/BackButtonBehavior.cs
@@ -24,7 +24,6 @@ public class BackButtonBehavior : BindableObject
public static readonly BindableProperty IsEnabledProperty =
BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(BackButtonBehavior), true, BindingMode.OneTime);
- ///
public static readonly BindableProperty IsVisibleProperty =
BindableProperty.Create(nameof(IsVisible), typeof(bool), typeof(BackButtonBehavior), true, BindingMode.OneTime);
@@ -60,7 +59,6 @@ public bool IsEnabled
set { SetValue(IsEnabledProperty, value); }
}
- ///
public bool IsVisible
{
get { return (bool)GetValue(IsVisibleProperty); }
@@ -118,4 +116,4 @@ void OnCommandParameterChanged()
IsEnabledCore = Command.CanExecute(CommandParameter);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Shell/BaseShellItem.cs b/src/Controls/src/Core/Shell/BaseShellItem.cs
index 02b37e697da2..d0f8f9255c6a 100644
--- a/src/Controls/src/Core/Shell/BaseShellItem.cs
+++ b/src/Controls/src/Core/Shell/BaseShellItem.cs
@@ -117,7 +117,6 @@ public bool IsVisible
set => SetValue(IsVisibleProperty, value);
}
- ///
public bool FlyoutItemIsVisible
{
get => (bool)GetValue(Shell.FlyoutItemIsVisibleProperty);
diff --git a/src/Controls/src/Core/Shell/SearchHandler.cs b/src/Controls/src/Core/Shell/SearchHandler.cs
index bbedc3057697..f3294b95673a 100644
--- a/src/Controls/src/Core/Shell/SearchHandler.cs
+++ b/src/Controls/src/Core/Shell/SearchHandler.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
@@ -152,7 +152,6 @@ public Color TextColor
///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
///
@@ -216,7 +215,6 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
@@ -305,7 +303,6 @@ void ISearchHandlerController.QueryConfirmed()
OnQueryConfirmed();
}
- ///
public static readonly BindableProperty AutomationIdProperty = BindableProperty.Create(nameof(AutomationId), typeof(string), typeof(SearchHandler), null);
///
@@ -414,7 +411,6 @@ void ISearchHandlerController.QueryConfirmed()
private ListProxy _listProxy;
- ///
public string AutomationId
{
get { return (string)GetValue(AutomationIdProperty); }
diff --git a/src/Controls/src/Core/Shell/Shell.cs b/src/Controls/src/Core/Shell/Shell.cs
index 9ddd57ff8bcc..dae028092bd9 100644
--- a/src/Controls/src/Core/Shell/Shell.cs
+++ b/src/Controls/src/Core/Shell/Shell.cs
@@ -68,12 +68,9 @@ static void OnSearchHandlerPropertyChanged(BindableObject bindable, object oldVa
SetInheritedBindingContext(newHandler, bindable.BindingContext);
}
- ///
public static readonly BindableProperty FlyoutItemIsVisibleProperty =
BindableProperty.CreateAttached(nameof(IsVisible), typeof(bool), typeof(Shell), true, propertyChanged: OnFlyoutItemIsVisibleChanged);
- ///
public static bool GetFlyoutItemIsVisible(BindableObject obj) => (bool)obj.GetValue(FlyoutItemIsVisibleProperty);
- ///
public static void SetFlyoutItemIsVisible(BindableObject obj, bool isVisible) => obj.SetValue(FlyoutItemIsVisibleProperty, isVisible);
static void OnFlyoutItemIsVisibleChanged(BindableObject bindable, object oldValue, object newValue)
@@ -125,14 +122,10 @@ static void OnFlyoutItemIsVisibleChanged(BindableObject bindable, object oldValu
///
public static void SetFlyoutBehavior(BindableObject obj, FlyoutBehavior value) => obj.SetValue(FlyoutBehaviorProperty, value);
- ///
public static double GetFlyoutWidth(BindableObject obj) => (double)obj.GetValue(FlyoutWidthProperty);
- ///
public static void SetFlyoutWidth(BindableObject obj, double value) => obj.SetValue(FlyoutWidthProperty, value);
- ///
public static double GetFlyoutHeight(BindableObject obj) => (double)obj.GetValue(FlyoutHeightProperty);
- ///
public static void SetFlyoutHeight(BindableObject obj, double value) => obj.SetValue(FlyoutHeightProperty, value);
@@ -228,12 +221,10 @@ static void OnFlyoutBehaviorChanged(BindableObject bindable, object oldValue, ob
BindableProperty.CreateAttached("FlyoutBackdrop", typeof(Brush), typeof(Shell), Brush.Default,
propertyChanged: OnShellAppearanceValueChanged);
- ///
public static readonly BindableProperty FlyoutWidthProperty =
BindableProperty.CreateAttached("FlyoutWidth", typeof(double), typeof(Shell), -1d,
propertyChanged: OnShellAppearanceValueChanged);
- ///
public static readonly BindableProperty FlyoutHeightProperty =
BindableProperty.CreateAttached("FlyoutHeight", typeof(double), typeof(Shell), -1d,
propertyChanged: OnShellAppearanceValueChanged);
@@ -696,7 +687,6 @@ public Task GoToAsync(ShellNavigationState state, bool animate, IDictionary
public void AddLogicalChild(Element element)
{
if (element == null)
@@ -713,7 +703,6 @@ public void AddLogicalChild(Element element)
VisualDiagnostics.OnChildAdded(this, element);
}
- ///
public void RemoveLogicalChild(Element element)
{
if (element == null)
@@ -766,7 +755,6 @@ public void RemoveLogicalChild(Element element)
BindableProperty.Create(nameof(FlyoutHeader), typeof(object), typeof(Shell), null, BindingMode.OneTime,
propertyChanging: OnFlyoutHeaderChanging);
- ///
public static readonly BindableProperty FlyoutFooterProperty =
BindableProperty.Create(nameof(FlyoutFooter), typeof(object), typeof(Shell), null, BindingMode.OneTime,
propertyChanging: OnFlyoutFooterChanging);
@@ -776,7 +764,6 @@ public void RemoveLogicalChild(Element element)
BindableProperty.Create(nameof(FlyoutHeaderTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.OneTime,
propertyChanging: OnFlyoutHeaderTemplateChanging);
- ///
public static readonly BindableProperty FlyoutFooterTemplateProperty =
BindableProperty.Create(nameof(FlyoutFooterTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.OneTime,
propertyChanging: OnFlyoutFooterTemplateChanging);
@@ -997,14 +984,12 @@ public Brush FlyoutBackdrop
set => SetValue(FlyoutBackdropProperty, value);
}
- ///
public double FlyoutWidth
{
get => (double)GetValue(FlyoutWidthProperty);
set => SetValue(FlyoutWidthProperty, value);
}
- ///
public double FlyoutHeight
{
get => (double)GetValue(FlyoutHeightProperty);
@@ -1025,7 +1010,6 @@ public object FlyoutHeader
set => SetValue(FlyoutHeaderProperty, value);
}
- ///
public object FlyoutFooter
{
get => GetValue(FlyoutFooterProperty);
@@ -1046,7 +1030,6 @@ public DataTemplate FlyoutHeaderTemplate
set => SetValue(FlyoutHeaderTemplateProperty, value);
}
- ///
public DataTemplate FlyoutFooterTemplate
{
get => (DataTemplate)GetValue(FlyoutFooterTemplateProperty);
@@ -1114,7 +1097,6 @@ protected override void OnBindingContextChanged()
internal void SendFlyoutItemsChanged() => _flyoutManager.CheckIfFlyoutItemsChanged();
- ///
public IEnumerable FlyoutItems => _flyoutManager.FlyoutItems;
List> IShellController.GenerateFlyoutGrouping() =>
@@ -1580,24 +1562,20 @@ protected override void LayoutChildren(double x, double y, double width, double
#region Shell Flyout Content
- ///
public static readonly BindableProperty FlyoutContentProperty =
BindableProperty.Create(nameof(FlyoutContent), typeof(object), typeof(Shell), null, BindingMode.OneTime, propertyChanging: OnFlyoutContentChanging);
- ///
public static readonly BindableProperty FlyoutContentTemplateProperty =
BindableProperty.Create(nameof(FlyoutContentTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.OneTime, propertyChanging: OnFlyoutContentTemplateChanging);
View _flyoutContentView;
- ///
public object FlyoutContent
{
get => GetValue(FlyoutContentProperty);
set => SetValue(FlyoutContentProperty, value);
}
- ///
public DataTemplate FlyoutContentTemplate
{
get => (DataTemplate)GetValue(FlyoutContentTemplateProperty);
diff --git a/src/Controls/src/Core/Shell/ShellAppearance.cs b/src/Controls/src/Core/Shell/ShellAppearance.cs
index 575d842d05e4..3f8c2e9ee880 100644
--- a/src/Controls/src/Core/Shell/ShellAppearance.cs
+++ b/src/Controls/src/Core/Shell/ShellAppearance.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using Microsoft.Maui.Graphics;
@@ -70,9 +70,7 @@ public class ShellAppearance : IShellAppearanceElement
///
public Brush FlyoutBackdrop => _brushArray[0];
- ///
public double FlyoutWidth => _doubleArray[0];
- ///
public double FlyoutHeight => _doubleArray[1];
Color IShellAppearanceElement.EffectiveTabBarBackgroundColor =>
@@ -200,4 +198,4 @@ public void MakeComplete()
return !(appearance1 == appearance2);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/Span.cs b/src/Controls/src/Core/Span.cs
index e14c5bdf0595..85b5e9c02a49 100644
--- a/src/Controls/src/Core/Span.cs
+++ b/src/Controls/src/Core/Span.cs
@@ -95,7 +95,6 @@ public string Text
///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
///
@@ -123,7 +122,6 @@ public double FontSize
set { SetValue(FontElement.FontSizeProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
diff --git a/src/Controls/src/Core/TableSection.cs b/src/Controls/src/Core/TableSection.cs
index 26713e74c3c5..dd8749e95967 100644
--- a/src/Controls/src/Core/TableSection.cs
+++ b/src/Controls/src/Core/TableSection.cs
@@ -29,7 +29,6 @@ protected TableSectionBase(string title) : base(title)
_children.CollectionChanged += OnChildrenChanged;
}
- ///
public void Add(T item)
{
_children.Add(item);
@@ -39,7 +38,6 @@ public void Add(T item)
}
}
- ///
public void Clear()
{
foreach (T item in _children)
@@ -53,19 +51,16 @@ public void Clear()
_children.Clear();
}
- ///
public bool Contains(T item)
{
return _children.Contains(item);
}
- ///
public void CopyTo(T[] array, int arrayIndex)
{
_children.CopyTo(array, arrayIndex);
}
- ///
public int Count
{
get { return _children.Count; }
@@ -76,7 +71,6 @@ bool ICollection.IsReadOnly
get { return false; }
}
- ///
public bool Remove(T item)
{
if (item is IVisualTreeElement element)
@@ -92,19 +86,16 @@ IEnumerator IEnumerable.GetEnumerator()
return GetEnumerator();
}
- ///
public IEnumerator GetEnumerator()
{
return _children.GetEnumerator();
}
- ///
public int IndexOf(T item)
{
return _children.IndexOf(item);
}
- ///
public void Insert(int index, T item)
{
if (item is IVisualTreeElement element)
@@ -121,7 +112,6 @@ public T this[int index]
set { _children[index] = value; }
}
- ///
public void RemoveAt(int index)
{
T item = _children[index];
@@ -139,7 +129,6 @@ public event NotifyCollectionChangedEventHandler CollectionChanged
remove { _children.CollectionChanged -= value; }
}
- ///
public void Add(IEnumerable items)
{
items.ForEach(_children.Add);
diff --git a/src/Controls/src/Core/TextAlignment.cs b/src/Controls/src/Core/TextAlignment.cs
index c9f6d349e53a..384bbd778095 100644
--- a/src/Controls/src/Core/TextAlignment.cs
+++ b/src/Controls/src/Core/TextAlignment.cs
@@ -4,18 +4,14 @@
namespace Microsoft.Maui.Controls
{
- ///
public class TextAlignmentConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -44,7 +40,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(TextAlignment)));
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not TextAlignment ta)
@@ -58,4 +53,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
throw new NotSupportedException();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/TextElement.cs b/src/Controls/src/Core/TextElement.cs
index 4d409ab04af7..da2bff3741c6 100644
--- a/src/Controls/src/Core/TextElement.cs
+++ b/src/Controls/src/Core/TextElement.cs
@@ -4,10 +4,16 @@ namespace Microsoft.Maui.Controls
{
static class TextElement
{
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty TextColorProperty =
BindableProperty.Create(nameof(ITextElement.TextColor), typeof(Color), typeof(ITextElement), null,
propertyChanged: OnTextColorPropertyChanged);
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty CharacterSpacingProperty =
BindableProperty.Create(nameof(ITextElement.CharacterSpacing), typeof(double), typeof(ITextElement), 0.0d,
propertyChanged: OnCharacterSpacingPropertyChanged);
@@ -22,6 +28,9 @@ static void OnCharacterSpacingPropertyChanged(BindableObject bindable, object ol
((ITextElement)bindable).OnCharacterSpacingPropertyChanged((double)oldValue, (double)newValue);
}
+ ///
+ /// The backing store for the bindable property.
+ ///
public static readonly BindableProperty TextTransformProperty =
BindableProperty.Create(nameof(ITextElement.TextTransform), typeof(TextTransform), typeof(ITextElement), TextTransform.Default,
propertyChanged: OnTextTransformPropertyChanged);
diff --git a/src/Controls/src/Core/TimePicker.cs b/src/Controls/src/Core/TimePicker.cs
index f731472f0b7f..c92bb3842de3 100644
--- a/src/Controls/src/Core/TimePicker.cs
+++ b/src/Controls/src/Core/TimePicker.cs
@@ -33,7 +33,6 @@ public partial class TimePicker : View, IFontElement, ITextElement, IElementConf
///
public static readonly BindableProperty FontAttributesProperty = FontElement.FontAttributesProperty;
- ///
public static readonly BindableProperty FontAutoScalingEnabledProperty = FontElement.FontAutoScalingEnabledProperty;
readonly Lazy> _platformConfigurationRegistry;
@@ -94,7 +93,6 @@ public double FontSize
set { SetValue(FontSizeProperty, value); }
}
- ///
public bool FontAutoScalingEnabled
{
get => (bool)GetValue(FontAutoScalingEnabledProperty);
diff --git a/src/Controls/src/Core/TypeTypeConverter.cs b/src/Controls/src/Core/TypeTypeConverter.cs
index c842ea2791cf..3c4c2fe307df 100644
--- a/src/Controls/src/Core/TypeTypeConverter.cs
+++ b/src/Controls/src/Core/TypeTypeConverter.cs
@@ -9,11 +9,9 @@ namespace Microsoft.Maui.Controls
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.TypeTypeConverter")]
public sealed class TypeTypeConverter : TypeConverter, IExtendedTypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> false;
@@ -27,12 +25,10 @@ object IExtendedTypeConverter.ConvertFromInvariantString(string value, IServiceP
return typeResolver.Resolve(value, serviceProvider);
}
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
=> throw new NotImplementedException();
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
=> throw new NotSupportedException();
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/UriImageSource.cs b/src/Controls/src/Core/UriImageSource.cs
index ac97392b5ca5..3cad7601d861 100644
--- a/src/Controls/src/Core/UriImageSource.cs
+++ b/src/Controls/src/Core/UriImageSource.cs
@@ -17,11 +17,9 @@ public sealed partial class UriImageSource : ImageSource, IStreamImageSource
propertyChanged: (bindable, oldvalue, newvalue) => ((UriImageSource)bindable).OnUriChanged(),
validateValue: (bindable, value) => value == null || ((Uri)value).IsAbsoluteUri);
- ///
public static readonly BindableProperty CacheValidityProperty = BindableProperty.Create(
nameof(CacheValidity), typeof(TimeSpan), typeof(UriImageSource), TimeSpan.FromDays(1));
- ///
public static readonly BindableProperty CachingEnabledProperty = BindableProperty.Create(
nameof(CachingEnabled), typeof(bool), typeof(UriImageSource), true);
@@ -134,4 +132,4 @@ void OnUriChanged()
OnSourceChanged();
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/UriTypeConverter.cs b/src/Controls/src/Core/UriTypeConverter.cs
index aafcbc4d9d00..64a8fd09a078 100644
--- a/src/Controls/src/Core/UriTypeConverter.cs
+++ b/src/Controls/src/Core/UriTypeConverter.cs
@@ -8,15 +8,12 @@ namespace Microsoft.Maui.Controls
[Xaml.ProvideCompiled("Microsoft.Maui.Controls.XamlC.UriTypeConverter")]
public class UriTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -25,7 +22,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
return new Uri(strValue, UriKind.RelativeOrAbsolute);
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not Uri uri)
diff --git a/src/Controls/src/Core/VisualElement.cs b/src/Controls/src/Core/VisualElement.cs
index 29cb615ccda5..3e6b3dbedffe 100644
--- a/src/Controls/src/Core/VisualElement.cs
+++ b/src/Controls/src/Core/VisualElement.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
@@ -312,10 +312,8 @@ void InvalidateGradientBrushRequested(object sender, EventArgs e)
///
public static readonly BindableProperty MinimumHeightRequestProperty = BindableProperty.Create(nameof(MinimumHeightRequest), typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged);
- ///
public static readonly BindableProperty MaximumWidthRequestProperty = BindableProperty.Create(nameof(MaximumWidthRequest), typeof(double), typeof(VisualElement), double.PositiveInfinity, propertyChanged: OnRequestChanged);
- ///
public static readonly BindableProperty MaximumHeightRequestProperty = BindableProperty.Create(nameof(MaximumHeightRequest), typeof(double), typeof(VisualElement), double.PositiveInfinity, propertyChanged: OnRequestChanged);
///
@@ -501,14 +499,12 @@ public double MinimumWidthRequest
set { SetValue(MinimumWidthRequestProperty, value); }
}
- ///
public double MaximumHeightRequest
{
get { return (double)GetValue(MaximumHeightRequestProperty); }
set { SetValue(MaximumHeightRequestProperty, value); }
}
- ///
public double MaximumWidthRequest
{
get { return (double)GetValue(MaximumWidthRequestProperty); }
@@ -643,7 +639,6 @@ internal LayoutConstraint ComputedConstraint
[EditorBrowsable(EditorBrowsableState.Never)]
public bool DisableLayout { get; set; }
- ///
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsInPlatformLayout
{
@@ -665,7 +660,6 @@ public bool IsInPlatformLayout
set { _isInPlatformLayout = value; }
}
- ///
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsPlatformStateConsistent
{
@@ -762,7 +756,6 @@ public ResourceDictionary Resources
}
}
- ///
[EditorBrowsable(EditorBrowsableState.Never)]
public void PlatformSizeChanged() => InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
diff --git a/src/Controls/src/Core/Visuals/VisualTypeConverter.cs b/src/Controls/src/Core/Visuals/VisualTypeConverter.cs
index 6bfcf7b207c2..c949eb3a724a 100644
--- a/src/Controls/src/Core/Visuals/VisualTypeConverter.cs
+++ b/src/Controls/src/Core/Visuals/VisualTypeConverter.cs
@@ -15,11 +15,9 @@ namespace Microsoft.Maui.Controls
///
public class VisualTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
@@ -128,7 +126,6 @@ static IVisual CreateVisual(
return null;
}
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -146,7 +143,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new XamlParseException($"Cannot convert \"{strValue}\" into {typeof(IVisual)}");
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not IVisual visual)
@@ -163,19 +159,16 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
throw new NotSupportedException();
}
- ///
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
=> false;
- ///
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
=> true;
- ///
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
=> new(new[] {
nameof(VisualMarker.Default),
// nameof(VisualMarker.Material)
});
}
-}
\ No newline at end of file
+}
diff --git a/src/Controls/src/Core/WebViewSourceTypeConverter.cs b/src/Controls/src/Core/WebViewSourceTypeConverter.cs
index f35a2a882505..54b3de00f456 100644
--- a/src/Controls/src/Core/WebViewSourceTypeConverter.cs
+++ b/src/Controls/src/Core/WebViewSourceTypeConverter.cs
@@ -7,15 +7,12 @@ namespace Microsoft.Maui.Controls
///
public class WebViewSourceTypeConverter : TypeConverter
{
- ///
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
=> sourceType == typeof(string);
- ///
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
=> destinationType == typeof(string);
- ///
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
var strValue = value?.ToString();
@@ -25,7 +22,6 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(UrlWebViewSource)));
}
- ///
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (value is not UrlWebViewSource uwvs)
@@ -33,4 +29,4 @@ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo cul
return uwvs.Url;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Core/src/Animations/Animation.cs b/src/Core/src/Animations/Animation.cs
index ddab9c57ea96..9c2ea3f87d04 100644
--- a/src/Core/src/Animations/Animation.cs
+++ b/src/Core/src/Animations/Animation.cs
@@ -334,8 +334,8 @@ public void Resume()
}
///
- /// Removes this animation from it's .
- /// If there is no , nothing will happen.
+ /// Removes this animation from it's parent.
+ /// If there is no parent, nothing will happen.
///
public void RemoveFromParent()
{
@@ -344,12 +344,13 @@ public void RemoveFromParent()
view?.RemoveAnimation(this);
}
- ///
+ ///
+ /// Gets a value that specifies if this animation has been disposed.
+ ///
public bool IsDisposed => _disposedValue;
private bool _disposedValue = false; // To detect redundant calls
- ///
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
diff --git a/src/Core/src/Animations/AnimationManager.cs b/src/Core/src/Animations/AnimationManager.cs
index e9494b521936..3f72c551821c 100644
--- a/src/Core/src/Animations/AnimationManager.cs
+++ b/src/Core/src/Animations/AnimationManager.cs
@@ -10,7 +10,10 @@ public class AnimationManager : IAnimationManager, IDisposable
long _lastUpdate;
bool _disposedValue;
- ///
+ ///
+ /// Instantiate a new object.
+ ///
+ /// An instance of that will be used to time the animations.
public AnimationManager(ITicker ticker)
{
_lastUpdate = GetCurrentTick();
@@ -93,7 +96,6 @@ void OnAnimationTick(Animation animation)
}
}
- ///
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
diff --git a/src/Core/src/Animations/LerpingAnimation.cs b/src/Core/src/Animations/LerpingAnimation.cs
index 730de3d0426c..77867815b8cd 100644
--- a/src/Core/src/Animations/LerpingAnimation.cs
+++ b/src/Core/src/Animations/LerpingAnimation.cs
@@ -3,6 +3,9 @@
namespace Microsoft.Maui.Animations
{
+ ///
+ /// Represents a linear interpolation animation.
+ ///
public class LerpingAnimation : Animation
{
///
@@ -12,6 +15,14 @@ public LerpingAnimation()
{
}
+ ///
+ /// Instantiate a new object with the given parameters.
+ ///
+ /// The that is invoked after each tick of this animation.
+ /// Specifies a delay (in seconds) taken into account before the animation starts.
+ /// Specifies the duration that this animation should take in seconds.
+ /// The easing function to apply to this animation.
+ /// A callback that is invoked after the animation has finished.
public LerpingAnimation(Action callback, double start = 0, double end = 1, Easing? easing = null, Action? finished = null)
: base(callback, start, end, easing, finished)
{
@@ -26,9 +37,24 @@ public LerpingAnimation(List animations)
{
}
+ ///
+ /// Gets or sets a callback that is invoked when is changed.
+ ///
public Action? ValueChanged { get; set; }
+
+ ///
+ /// Gets or sets the start value of this animation.
+ ///
public object? StartValue { get; set; }
+
+ ///
+ /// Gets or sets the end value of this animation.
+ ///
public object? EndValue { get; set; }
+
+ ///
+ /// Gets the current value for this animation.
+ ///
public object? CurrentValue
{
get => _currentValue;
@@ -43,7 +69,9 @@ protected set
Lerp? _lerp;
private object? _currentValue;
-
+ ///
+ /// Gets or sets the linear interpolation for this animation.
+ ///
public Lerp? Lerp
{
get
diff --git a/src/Core/src/Core/IButton.cs b/src/Core/src/Core/IButton.cs
index 85259fe106e6..a9898d273871 100644
--- a/src/Core/src/Core/IButton.cs
+++ b/src/Core/src/Core/IButton.cs
@@ -1,22 +1,22 @@
namespace Microsoft.Maui
{
///
- /// Represents a View that reacts to touch events.
+ /// Represents a that reacts to touch events.
///
public interface IButton : IView, IPadding, IButtonStroke
{
///
- /// Occurs when the Button is pressed.
+ /// Occurs when the button is pressed.
///
void Pressed();
///
- /// Occurs when the Button is released.
+ /// Occurs when the button is released.
///
void Released();
///
- /// Occurs when the Button is clicked.
+ /// Occurs when the button is clicked/tapped.
///
void Clicked();
}
diff --git a/src/Core/src/Core/IEntry.cs b/src/Core/src/Core/IEntry.cs
index 80b90ca9e200..f66cbaff5978 100644
--- a/src/Core/src/Core/IEntry.cs
+++ b/src/Core/src/Core/IEntry.cs
@@ -1,7 +1,7 @@
namespace Microsoft.Maui
{
///
- /// Represents a View that is used for single-line text input.
+ /// Represents a that is used for single-line text input.
///
public interface IEntry : IView, ITextInput, ITextAlignment
{
diff --git a/src/Core/src/Fonts/FontRegistrar.cs b/src/Core/src/Fonts/FontRegistrar.cs
index 889f0a9c7419..1e62c3189ced 100644
--- a/src/Core/src/Fonts/FontRegistrar.cs
+++ b/src/Core/src/Fonts/FontRegistrar.cs
@@ -7,7 +7,7 @@
namespace Microsoft.Maui
{
- ///
+ ///
public partial class FontRegistrar : IFontRegistrar
{
readonly Dictionary _embeddedFonts = new();
diff --git a/src/Core/src/Fonts/IEmbeddedFontLoader.cs b/src/Core/src/Fonts/IEmbeddedFontLoader.cs
index 08bf9f883013..1ed17291f841 100644
--- a/src/Core/src/Fonts/IEmbeddedFontLoader.cs
+++ b/src/Core/src/Fonts/IEmbeddedFontLoader.cs
@@ -9,7 +9,7 @@ public interface IEmbeddedFontLoader
///
/// Load the font from the embedded resources.
///
- /// And object with the information on the font to load.
+ /// A object with the information on the font to load.
/// The font name if the font was loaded correctly, otherwise .
// TODO: this should be async as it involves copying files
string? LoadFont(EmbeddedFont font);
diff --git a/src/Core/src/Fonts/IFontRegistrar.cs b/src/Core/src/Fonts/IFontRegistrar.cs
index ccd5b3cf02ab..e12a55f47f7a 100644
--- a/src/Core/src/Fonts/IFontRegistrar.cs
+++ b/src/Core/src/Fonts/IFontRegistrar.cs
@@ -19,15 +19,15 @@ public interface IFontRegistrar
///
/// Registers a font in the app font cache.
///
- ///
- ///
+ /// The filename of the font to register.
+ /// An optional alias with which you can also refer to this font.
void Register(string filename, string? alias);
///
- ///
+ /// Retrieves the font for actual usages.
///
- ///
- ///
+ /// The key with which the font is registered with the cache.
+ /// The name of then font when it's found, otherwise .
// TODO: this should be async as it involves copying files
string? GetFont(string font);
}
diff --git a/src/Core/src/Platform/ViewExtensions.cs b/src/Core/src/Platform/ViewExtensions.cs
index 73281f10a41a..171e3b1c6cff 100644
--- a/src/Core/src/Platform/ViewExtensions.cs
+++ b/src/Core/src/Platform/ViewExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Numerics;
using Microsoft.Maui.Graphics;
using System.Threading.Tasks;
@@ -38,7 +38,6 @@ public static partial class ViewExtensions
internal static double ExtractAngleInDegrees(this Matrix4x4 matrix) => ExtractAngleInRadians(matrix) * 180 / Math.PI;
- ///
public static IPlatformViewHandler ToHandler(this IView view, IMauiContext context) =>
(IPlatformViewHandler)ElementExtensions.ToHandler(view, context);
diff --git a/src/Core/src/Primitives/Aspect.cs b/src/Core/src/Primitives/Aspect.cs
index 4a25f3c26e54..9045707298e1 100644
--- a/src/Core/src/Primitives/Aspect.cs
+++ b/src/Core/src/Primitives/Aspect.cs
@@ -9,7 +9,6 @@ public enum Aspect
AspectFill,
///
Fill,
- ///
Center
}
-}
\ No newline at end of file
+}
diff --git a/src/Core/src/Primitives/ClearButtonVisibility.cs b/src/Core/src/Primitives/ClearButtonVisibility.cs
index 9b69bb0eeb09..a6b64928fb2b 100644
--- a/src/Core/src/Primitives/ClearButtonVisibility.cs
+++ b/src/Core/src/Primitives/ClearButtonVisibility.cs
@@ -1,11 +1,19 @@
namespace Microsoft.Maui
{
- ///
+ ///
+ /// Enumerates values that influence clear button visibility behavior on input fields.
+ /// Typically this is a button inside of the input field, near the end, which clears the input when pressed.
+ ///
public enum ClearButtonVisibility
{
- ///
+ ///
+ /// Never show a clear button.
+ ///
Never,
- ///
+
+ ///
+ /// Only show a clear button in the input field while the input field has focus and is being edited.
+ ///
WhileEditing
}
}
\ No newline at end of file
diff --git a/src/Core/src/Primitives/Font.cs b/src/Core/src/Primitives/Font.cs
index f9c8662ddea9..97760bf97f72 100644
--- a/src/Core/src/Primitives/Font.cs
+++ b/src/Core/src/Primitives/Font.cs
@@ -12,7 +12,6 @@ namespace Microsoft.Maui
///
public double Size { get; }
- ///
public FontSlant Slant { get; }
///
@@ -24,7 +23,6 @@ namespace Microsoft.Maui
readonly FontWeight _weight;
- ///
public FontWeight Weight
{
get => _weight <= 0 ? FontWeight.Regular : _weight;
@@ -41,13 +39,11 @@ private Font(string? family, double size, FontSlant slant, FontWeight weight, bo
readonly bool _disableScaling;
- ///
public bool AutoScalingEnabled
{
get => !_disableScaling;
}
- ///
public Font WithAutoScaling(bool enabled)
{
return new Font(Family, Size, Slant, Weight, enabled);
@@ -59,19 +55,16 @@ public Font WithSize(double size)
return new Font(Family, size, Slant, Weight, AutoScalingEnabled);
}
- ///
public Font WithSlant(FontSlant fontSlant)
{
return new Font(Family, Size, fontSlant, Weight, AutoScalingEnabled);
}
- ///
public Font WithWeight(FontWeight weight)
{
return new Font(Family, Size, Slant, weight, AutoScalingEnabled);
}
- ///
public Font WithWeight(FontWeight weight, FontSlant fontSlant)
{
return new Font(Family, Size, fontSlant, weight, AutoScalingEnabled);
@@ -89,7 +82,6 @@ public static Font SystemFontOfSize(double size, FontWeight weight = FontWeight.
#pragma warning restore CS1573 // Parameter has no matching param tag in the XML comment (but other parameters do)
new(null, size, fontSlant, weight, enableScaling);
- ///
public static Font SystemFontOfWeight(FontWeight weight, FontSlant fontSlant = FontSlant.Default, bool enableScaling = true) =>
new(null, default(double), fontSlant, weight, enableScaling);
diff --git a/src/Core/src/Primitives/LineBreakMode.cs b/src/Core/src/Primitives/LineBreakMode.cs
index 37274063ec0d..02b84c06dfd9 100644
--- a/src/Core/src/Primitives/LineBreakMode.cs
+++ b/src/Core/src/Primitives/LineBreakMode.cs
@@ -1,19 +1,39 @@
namespace Microsoft.Maui
{
- ///
+ ///
+ /// Enumeration specifying various options for line breaking.
+ ///
+ /// How lines are broken or text is truncated might be different depending on the platform.
public enum LineBreakMode
{
- ///
+ ///
+ /// Do not wrap text.
+ ///
NoWrap,
- ///
+
+ ///
+ /// Wrap at word boundaries.
+ ///
WordWrap,
- ///
+
+ ///
+ /// Wrap at character boundaries.
+ ///
CharacterWrap,
- ///
+
+ ///
+ /// Truncate the head of text.
+ ///
HeadTruncation,
- ///
+
+ ///
+ /// Truncate the tail of text.
+ ///
TailTruncation,
- ///
+
+ ///
+ /// Truncate the middle of text. This may be done, for example, by replacing it with an ellipsis.
+ ///
MiddleTruncation
}
}
\ No newline at end of file
diff --git a/src/Core/src/Primitives/ReturnType.cs b/src/Core/src/Primitives/ReturnType.cs
index ec318a1e43df..de752f198c83 100644
--- a/src/Core/src/Primitives/ReturnType.cs
+++ b/src/Core/src/Primitives/ReturnType.cs
@@ -1,21 +1,39 @@
-using System;
-
namespace Microsoft.Maui
{
- ///
+ ///
+ /// Enumerates return button styles.
+ /// Typically the operating system on-screen keyboard will visually style the return key based on this value.
+ ///
public enum ReturnType
{
- ///
+ ///
+ /// Indicates the default style on the platform.
+ ///
Default,
- ///
+
+ ///
+ /// Indicates a "Done" button.
+ ///
Done,
- ///
+
+ ///
+ /// Indicates a "Go" button.
+ ///
Go,
- ///
+
+ ///
+ /// Indicates a "Next" button.
+ ///
Next,
- ///
+
+ ///
+ /// Indicates a "Search" button.
+ ///
Search,
- ///
+
+ ///
+ /// Indicates a "Send" button.
+ ///
Send,
}
}
diff --git a/src/Core/src/Primitives/TextTransform.cs b/src/Core/src/Primitives/TextTransform.cs
index 91f9ca445ff7..bf8b687d561b 100644
--- a/src/Core/src/Primitives/TextTransform.cs
+++ b/src/Core/src/Primitives/TextTransform.cs
@@ -1,15 +1,28 @@
namespace Microsoft.Maui
{
- ///
+ ///
+ /// Enumerates values that determine the text transformation on an element.
+ ///
public enum TextTransform
{
- ///
+ ///
+ /// No text transformation is applied.
+ ///
None = 0,
- ///
+
+ ///
+ /// The default text transformation is applied.
+ ///
Default,
- ///
+
+ ///
+ /// The text will be transformed into lowercase.
+ ///
Lowercase,
- ///
+
+ ///
+ /// The text will be transformed into uppercase.
+ ///
Uppercase
}
}
\ No newline at end of file
diff --git a/src/Core/src/Primitives/Thickness.cs b/src/Core/src/Primitives/Thickness.cs
index b1d46fef15ec..774eec664638 100644
--- a/src/Core/src/Primitives/Thickness.cs
+++ b/src/Core/src/Primitives/Thickness.cs
@@ -31,7 +31,6 @@ public struct Thickness
///
public bool IsEmpty => Left == 0 && Top == 0 && Right == 0 && Bottom == 0;
- ///
public bool IsNaN => double.IsNaN(Left) && double.IsNaN(Top) && double.IsNaN(Right) && double.IsNaN(Bottom);
///
@@ -108,7 +107,6 @@ public void Deconstruct(out double left, out double top, out double right, out d
bottom = Bottom;
}
- ///
public static Thickness Zero = new Thickness(0);
public static Thickness operator +(Thickness left, double addend) =>
@@ -120,4 +118,4 @@ public void Deconstruct(out double left, out double top, out double right, out d
public static Thickness operator -(Thickness left, double addend) =>
left + (-addend);
}
-}
\ No newline at end of file
+}
diff --git a/src/Core/src/VisualDiagnostics/VisualDiagnostics.cs b/src/Core/src/VisualDiagnostics/VisualDiagnostics.cs
index a55711b3533e..a054b1cb0877 100644
--- a/src/Core/src/VisualDiagnostics/VisualDiagnostics.cs
+++ b/src/Core/src/VisualDiagnostics/VisualDiagnostics.cs
@@ -10,7 +10,6 @@
namespace Microsoft.Maui
{
- ///
public static class VisualDiagnostics
{
static ConditionalWeakTable sourceInfos = new ConditionalWeakTable();
@@ -37,7 +36,6 @@ public static void RegisterSourceInfo(object target, Uri uri, int lineNumber, in
public static SourceInfo? GetSourceInfo(object obj) =>
sourceInfos.TryGetValue(obj, out var sourceinfo) ? sourceinfo : null;
- ///
public static void OnChildAdded(IVisualTreeElement parent, IVisualTreeElement child)
{
if (!DebuggerHelper.DebuggerIsAttached)
@@ -51,7 +49,6 @@ public static void OnChildAdded(IVisualTreeElement parent, IVisualTreeElement ch
OnChildAdded(parent, child, index);
}
- ///
public static void OnChildAdded(IVisualTreeElement? parent, IVisualTreeElement child, int newLogicalIndex)
{
if (!DebuggerHelper.DebuggerIsAttached)
@@ -63,7 +60,6 @@ public static void OnChildAdded(IVisualTreeElement? parent, IVisualTreeElement c
OnVisualTreeChanged(new VisualTreeChangeEventArgs(parent, child, newLogicalIndex, VisualTreeChangeType.Add));
}
- ///
public static void OnChildRemoved(IVisualTreeElement parent, IVisualTreeElement child, int oldLogicalIndex)
{
if (!DebuggerHelper.DebuggerIsAttached)
diff --git a/src/Core/src/VisualDiagnostics/VisualTreeChangeEventArgs.cs b/src/Core/src/VisualDiagnostics/VisualTreeChangeEventArgs.cs
index 0c03da046e86..2b819a22bb73 100644
--- a/src/Core/src/VisualDiagnostics/VisualTreeChangeEventArgs.cs
+++ b/src/Core/src/VisualDiagnostics/VisualTreeChangeEventArgs.cs
@@ -5,7 +5,6 @@
namespace Microsoft.Maui
{
- ///
public class VisualTreeChangeEventArgs : EventArgs
{
public VisualTreeChangeEventArgs(object? parent, object child, int childIndex, VisualTreeChangeType changeType)
diff --git a/src/Core/src/WeakEventManager.cs b/src/Core/src/WeakEventManager.cs
index 9ee193c58f13..8c5ea0f5e6fb 100644
--- a/src/Core/src/WeakEventManager.cs
+++ b/src/Core/src/WeakEventManager.cs
@@ -25,7 +25,6 @@ public void AddEventHandler(EventHandler handler, [Calle
AddEventHandler(eventName, handler.Target, handler.GetMethodInfo());
}
- ///
public void AddEventHandler(Delegate? handler, [CallerMemberName] string eventName = "")
{
if (IsNullOrEmpty(eventName))
@@ -92,7 +91,6 @@ public void RemoveEventHandler(EventHandler handler, [Ca
RemoveEventHandler(eventName, handler.Target, handler.GetMethodInfo());
}
- ///
public void RemoveEventHandler(Delegate? handler, [CallerMemberName] string eventName = "")
{
if (IsNullOrEmpty(eventName))
@@ -148,9 +146,7 @@ public Subscription(WeakReference? subscriber, MethodInfo handler)
Handler = handler ?? throw new ArgumentNullException(nameof(handler));
}
- ///
public readonly WeakReference? Subscriber;
- ///
public readonly MethodInfo Handler;
}
}
diff --git a/src/Essentials/src/AppActions/AppActions.shared.cs b/src/Essentials/src/AppActions/AppActions.shared.cs
index 04acc2629ab7..ebfa6592cae2 100755
--- a/src/Essentials/src/AppActions/AppActions.shared.cs
+++ b/src/Essentials/src/AppActions/AppActions.shared.cs
@@ -46,7 +46,6 @@ public static Task SetAsync(params AppAction[] actions)
public static Task SetAsync(IEnumerable actions)
=> Current.SetAsync(actions);
- ///
public static event EventHandler? OnAppAction
{
add => Current.AppActionActivated += value;
diff --git a/src/Essentials/src/Compass/Compass.shared.cs b/src/Essentials/src/Compass/Compass.shared.cs
index b3e1bb317985..742fbe366099 100644
--- a/src/Essentials/src/Compass/Compass.shared.cs
+++ b/src/Essentials/src/Compass/Compass.shared.cs
@@ -176,7 +176,6 @@ public void Start(SensorSpeed sensorSpeed, bool applyLowPassFilter)
}
}
- ///
public void Stop()
{
if (!PlatformIsSupported)
diff --git a/src/Essentials/src/DeviceDisplay/DeviceDisplay.shared.cs b/src/Essentials/src/DeviceDisplay/DeviceDisplay.shared.cs
index 1b61fab2b1ef..e38907db2cb1 100644
--- a/src/Essentials/src/DeviceDisplay/DeviceDisplay.shared.cs
+++ b/src/Essentials/src/DeviceDisplay/DeviceDisplay.shared.cs
@@ -54,7 +54,6 @@ public static event EventHandler MainDisplayInfoCha
public static IDeviceDisplay Current =>
currentImplementation ??= new DeviceDisplayImplementation();
- ///
internal static void SetCurrent(IDeviceDisplay? implementation) =>
currentImplementation = implementation;
}
@@ -130,4 +129,4 @@ protected void OnMainDisplayInfoChanged()
protected abstract void StopScreenMetricsListeners();
}
-}
\ No newline at end of file
+}
diff --git a/src/Essentials/src/Magnetometer/Magnetometer.shared.cs b/src/Essentials/src/Magnetometer/Magnetometer.shared.cs
index 78190ac20172..6f1942c16da3 100644
--- a/src/Essentials/src/Magnetometer/Magnetometer.shared.cs
+++ b/src/Essentials/src/Magnetometer/Magnetometer.shared.cs
@@ -138,7 +138,6 @@ public void Start(SensorSpeed sensorSpeed)
}
}
- ///
public void Stop()
{
if (!PlatformIsSupported)
diff --git a/src/Essentials/src/Permissions/Permissions.shared.cs b/src/Essentials/src/Permissions/Permissions.shared.cs
index 34b5a11e9716..02ef4a4bafe4 100644
--- a/src/Essentials/src/Permissions/Permissions.shared.cs
+++ b/src/Essentials/src/Permissions/Permissions.shared.cs
@@ -5,17 +5,14 @@ namespace Microsoft.Maui.ApplicationModel
///
public static partial class Permissions
{
- ///
public static Task CheckStatusAsync()
where TPermission : BasePermission, new() =>
new TPermission().CheckStatusAsync();
- ///
public static Task RequestAsync()
where TPermission : BasePermission, new() =>
new TPermission().RequestAsync();
- ///
public static bool ShouldShowRationale()
where TPermission : BasePermission, new() =>
new TPermission().ShouldShowRationale();
diff --git a/src/Essentials/src/SecureStorage/SecureStorage.shared.cs b/src/Essentials/src/SecureStorage/SecureStorage.shared.cs
index ca052fd4a165..01164925e870 100644
--- a/src/Essentials/src/SecureStorage/SecureStorage.shared.cs
+++ b/src/Essentials/src/SecureStorage/SecureStorage.shared.cs
@@ -31,7 +31,6 @@ public static partial class SecureStorage
public static Task GetAsync(string key) =>
Current.GetAsync(key);
- ///
public static Task SetAsync(string key, string value) =>
Current.SetAsync(key, value);
diff --git a/src/Essentials/src/Types/Contact.shared.cs b/src/Essentials/src/Types/Contact.shared.cs
index 1169d5f7652d..0dd6141b45ee 100644
--- a/src/Essentials/src/Types/Contact.shared.cs
+++ b/src/Essentials/src/Types/Contact.shared.cs
@@ -81,7 +81,6 @@ string BuildDisplayName()
}
}
- ///
public class ContactEmail
{
///
@@ -102,7 +101,6 @@ public ContactEmail(string emailAddress)
public override string ToString() => EmailAddress;
}
- ///
public class ContactPhone
{
///
diff --git a/src/Essentials/src/WebAuthenticator/WebAuthenticator.shared.cs b/src/Essentials/src/WebAuthenticator/WebAuthenticator.shared.cs
index b592d2e973f1..4ccc1af72966 100644
--- a/src/Essentials/src/WebAuthenticator/WebAuthenticator.shared.cs
+++ b/src/Essentials/src/WebAuthenticator/WebAuthenticator.shared.cs
@@ -25,7 +25,6 @@ public static class WebAuthenticator
public static Task AuthenticateAsync(Uri url, Uri callbackUrl)
=> Current.AuthenticateAsync(url, callbackUrl);
- ///
public static Task AuthenticateAsync(WebAuthenticatorOptions webAuthenticatorOptions)
=> Current.AuthenticateAsync(webAuthenticatorOptions);