Skip to content

Commit 1abedd0

Browse files
committed
Added missing XML document headers from new custom view components.
1 parent 2b6b0fc commit 1abedd0

27 files changed

Lines changed: 347 additions & 28 deletions

MADE.App.Design/Color/Color.cs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ public static implicit operator Android.Graphics.Color(Color color)
114114
#endif
115115

116116
#if WINDOWS_UWP
117+
/// <summary>
118+
/// Initializes a new instance of the <see cref="Color"/> class with a <see cref="Windows.UI.Color"/>.
119+
/// </summary>
120+
/// <param name="color">
121+
/// The Windows color value.
122+
/// </param>
117123
public Color(Windows.UI.Color color)
118124
{
119125
this.A = color.A;
@@ -122,28 +128,58 @@ public Color(Windows.UI.Color color)
122128
this.B = color.B;
123129
}
124130

131+
/// <summary>
132+
/// Supports the conversion of a <see cref="Windows.UI.Color"/> to <see cref="Color"/> implicitly.
133+
/// </summary>
134+
/// <param name="color">
135+
/// The Windows color value.
136+
/// </param>
125137
public static implicit operator Color(Windows.UI.Color color)
126138
{
127139
return new Color(color);
128140
}
129141

142+
/// <summary>
143+
/// Supports the conversion of a <see cref="Windows.UI.Xaml.Media.SolidColorBrush"/> to <see cref="Color"/> implicitly.
144+
/// </summary>
145+
/// <param name="colorBrush">
146+
/// The Windows solid color brush value.
147+
/// </param>
130148
public static implicit operator Color(Windows.UI.Xaml.Media.SolidColorBrush colorBrush)
131149
{
132150
return new Color(colorBrush.Color);
133151
}
134152

153+
/// <summary>
154+
/// Supports the conversion of a <see cref="Color"/> to <see cref="Windows.UI.Color"/> implicitly.
155+
/// </summary>
156+
/// <param name="color">
157+
/// The internal color value.
158+
/// </param>
135159
public static implicit operator Windows.UI.Color(Color color)
136160
{
137161
return Windows.UI.Color.FromArgb(color.A, color.R, color.G, color.B);
138162
}
139163

164+
/// <summary>
165+
/// Supports the conversion of a <see cref="Color"/> to <see cref="Windows.UI.Xaml.Media.SolidColorBrush"/> implicitly.
166+
/// </summary>
167+
/// <param name="color">
168+
/// The internal color value.
169+
/// </param>
140170
public static implicit operator Windows.UI.Xaml.Media.SolidColorBrush(Color color)
141171
{
142172
return new Windows.UI.Xaml.Media.SolidColorBrush(color);
143173
}
144174
#endif
145175

146176
#if __IOS__
177+
/// <summary>
178+
/// Initializes a new instance of the <see cref="Color"/> class with a <see cref="UIKit.UIColor"/>.
179+
/// </summary>
180+
/// <param name="color">
181+
/// The iOS color value.
182+
/// </param>
147183
public Color(UIKit.UIColor color)
148184
{
149185
if (color != null && color.CGColor != null)
@@ -166,11 +202,23 @@ public Color(UIKit.UIColor color)
166202
}
167203
}
168204

205+
/// <summary>
206+
/// Supports the conversion of a <see cref="UIKit.UIColor"/> to <see cref="Color"/> implicitly.
207+
/// </summary>
208+
/// <param name="color">
209+
/// The iOS color value.
210+
/// </param>
169211
public static implicit operator Color(UIKit.UIColor color)
170212
{
171213
return new Color(color);
172214
}
173215

216+
/// <summary>
217+
/// Supports the conversion of a <see cref="Color"/> to <see cref="UIKit.UIColor"/> implicitly.
218+
/// </summary>
219+
/// <param name="color">
220+
/// The internal color value.
221+
/// </param>
174222
public static implicit operator UIKit.UIColor(Color color)
175223
{
176224
return UIKit.UIColor.FromRGBA(color.R, color.G, color.B, color.A);

MADE.App.Views.Navigation.MvvmLight/Pages/MvvmPage.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
#if WINDOWS_UWP || __ANDROID__
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="MvvmPage.cs" company="MADE Apps">
3+
// Copyright (c) MADE Apps.
4+
// </copyright>
5+
// <summary>
6+
// Defines an MVVM friendly page that is compatible with MvvmLight and the application NavigationFrame.
7+
// </summary>
8+
// --------------------------------------------------------------------------------------------------------------------
9+
10+
#if WINDOWS_UWP || __ANDROID__
211
namespace MADE.App.Views.Navigation.Pages
312
{
413
using MADE.App.Views.Navigation.ViewModels;

MADE.App.Views.Navigation/Extensions/NavigationExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
// </summary>
88
// --------------------------------------------------------------------------------------------------------------------
99

10-
namespace MADE.App.Views.Navigation
10+
namespace MADE.App.Views.Navigation.Extensions
1111
{
1212
/// <summary>
1313
/// Defines a collection of extensions for handling navigation.
1414
/// </summary>
15-
public static partial class Extensions
15+
public static class NavigationExtensions
1616
{
1717
#if WINDOWS_UWP
1818
/// <summary>

MADE.App.Views.Navigation/NavigationFrame.Android.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
#if __ANDROID__
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="NavigationFrame.Android.cs" company="MADE Apps">
3+
// Copyright (c) MADE Apps.
4+
// </copyright>
5+
// <summary>
6+
// Defines a frame for navigating and displaying page content.
7+
// </summary>
8+
// --------------------------------------------------------------------------------------------------------------------
9+
10+
#if __ANDROID__
211
namespace MADE.App.Views.Navigation
312
{
413
using System;
@@ -8,6 +17,7 @@ namespace MADE.App.Views.Navigation
817
using Android.Support.V4.App;
918
using Android.Support.V7.App;
1019

20+
using MADE.App.Views.Navigation.Extensions;
1121
using MADE.App.Views.Navigation.Pages;
1222

1323
/// <summary>

MADE.App.Views.Navigation/NavigationFrame.Windows.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
#if WINDOWS_UWP
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="NavigationFrame.Windows.cs" company="MADE Apps">
3+
// Copyright (c) MADE Apps.
4+
// </copyright>
5+
// <summary>
6+
// Defines a frame for navigating and displaying page content.
7+
// </summary>
8+
// --------------------------------------------------------------------------------------------------------------------
9+
10+
#if WINDOWS_UWP
211
namespace MADE.App.Views.Navigation
312
{
413
using Windows.UI.Xaml.Controls;
514

15+
using MADE.App.Views.Navigation.Extensions;
16+
617
/// <summary>
718
/// Defines a frame for navigating and displaying page content.
819
/// </summary>

MADE.App.Views.Navigation/NavigationService.Windows.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
#if WINDOWS_UWP
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="NavigationService.Windows.cs" company="MADE Apps">
3+
// Copyright (c) MADE Apps.
4+
// </copyright>
5+
// <summary>
6+
// Defines the additional Windows logic for the navigation service.
7+
// </summary>
8+
// --------------------------------------------------------------------------------------------------------------------
9+
10+
#if WINDOWS_UWP
211
namespace MADE.App.Views.Navigation
312
{
413
using Windows.Foundation.Metadata;

MADE.App.Views.Navigation/Pages/IPage.Android.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
#if __ANDROID__
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="IPage.Android.cs" company="MADE Apps">
3+
// Copyright (c) MADE Apps.
4+
// </copyright>
5+
// <summary>
6+
// Defines an interface for Android components of an application page.
7+
// </summary>
8+
// --------------------------------------------------------------------------------------------------------------------
9+
10+
#if __ANDROID__
211
namespace MADE.App.Views.Navigation.Pages
312
{
413
using Android.Views;

MADE.App.Views.Navigation/Pages/Page.Android.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
#if __ANDROID__
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="Page.Android.cs" company="MADE Apps">
3+
// Copyright (c) MADE Apps.
4+
// </copyright>
5+
// <summary>
6+
// Defines an Android support fragment that is compatible with the application NavigationFrame.
7+
// </summary>
8+
// --------------------------------------------------------------------------------------------------------------------
9+
10+
#if __ANDROID__
211
namespace MADE.App.Views.Navigation.Pages
312
{
413
using Android.Graphics.Drawables;

MADE.App.Views.Navigation/Pages/Page.Windows.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
#if WINDOWS_UWP
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="Page.Windows.cs" company="MADE Apps">
3+
// Copyright (c) MADE Apps.
4+
// </copyright>
5+
// <summary>
6+
// Defines a Windows page that is compatible with the application NavigationFrame.
7+
// </summary>
8+
// --------------------------------------------------------------------------------------------------------------------
9+
10+
#if WINDOWS_UWP
211
namespace MADE.App.Views.Navigation.Pages
312
{
413
using Windows.ApplicationModel;
514
using Windows.UI.Xaml.Media;
615

716
using MADE.App.Design.Color;
817
using MADE.App.Views.Extensions;
18+
using MADE.App.Views.Navigation.Extensions;
919

1020
/// <summary>
1121
/// Defines a Windows page that is compatible with the application NavigationFrame.

MADE.App.Views/Controls/Control.Android.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
#if __ANDROID__
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="Control.Android.cs" company="MADE Apps">
3+
// Copyright (c) MADE Apps.
4+
// </copyright>
5+
// <summary>
6+
// Defines a UI element for creating custom controls in Android applications.
7+
// </summary>
8+
// --------------------------------------------------------------------------------------------------------------------
9+
10+
#if __ANDROID__
211
namespace MADE.App.Views.Controls
312
{
413
using System;
@@ -18,6 +27,9 @@ namespace MADE.App.Views.Controls
1827
using MADE.App.Design.Color;
1928
using MADE.App.Views.Extensions;
2029

30+
/// <summary>
31+
/// Defines a UI element for creating custom controls in Android applications.
32+
/// </summary>
2133
public class Control : FrameLayout, IControl
2234
{
2335
/// <summary>
@@ -126,6 +138,9 @@ public Control(Context context, IAttributeSet attrs, int defStyleAttr, int defSt
126138
/// </summary>
127139
public virtual int LayoutId { get; } = 0;
128140

141+
/// <summary>
142+
/// Gets or sets a color that provides the background of the view.
143+
/// </summary>
129144
public Color BackgroundColor
130145
{
131146
get

0 commit comments

Comments
 (0)