[NUI] Add EditorBrowsable Attribute (#255)
authorXianbing Teng <xb.teng@samsung.com>
Fri, 18 May 2018 01:28:10 +0000 (20:28 -0500)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 18 May 2018 01:28:10 +0000 (10:28 +0900)
23 files changed:
src/Tizen.NUI/src/public/Xaml/ViewExtensions.cs
src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs
src/Tizen.NUI/src/public/XamlBinding/BindableProperty.cs
src/Tizen.NUI/src/public/XamlBinding/BindablePropertyKey.cs
src/Tizen.NUI/src/public/XamlBinding/BindingBase.cs
src/Tizen.NUI/src/public/XamlBinding/BindingMode.cs
src/Tizen.NUI/src/public/XamlBinding/Command.cs
src/Tizen.NUI/src/public/XamlBinding/ContentPage.cs
src/Tizen.NUI/src/public/XamlBinding/ControlTemplate.cs
src/Tizen.NUI/src/public/XamlBinding/Effect.cs
src/Tizen.NUI/src/public/XamlBinding/Element.cs
src/Tizen.NUI/src/public/XamlBinding/ElementTemplate.cs
src/Tizen.NUI/src/public/XamlBinding/IConfigElement.cs
src/Tizen.NUI/src/public/XamlBinding/IConfigPlatform.cs
src/Tizen.NUI/src/public/XamlBinding/IEffectControlProvider.cs
src/Tizen.NUI/src/public/XamlBinding/INavigation.cs
src/Tizen.NUI/src/public/XamlBinding/IPlatformElementConfiguration.cs
src/Tizen.NUI/src/public/XamlBinding/NavigationEventArgs.cs
src/Tizen.NUI/src/public/XamlBinding/NavigationPage.cs
src/Tizen.NUI/src/public/XamlBinding/Page.cs
src/Tizen.NUI/src/public/XamlBinding/SizeRequest.cs
src/Tizen.NUI/src/public/XamlBinding/TemplatedPage.cs
src/Tizen.NUI/src/public/XamlBinding/Thickness.cs

index 95690bf..22b6fd3 100755 (executable)
 
 using System;
 using System.Reflection;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Xaml
 {
     /// <summary>
     /// Extension class for View defining Xamarin.Forms.Xaml.Extensions.LoadFromXaml{TView} method.
     /// </summary>
-       public static class Extensions
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public static class Extensions
        {
         /// <summary>
         /// Returns an initialized view by loading the specified xaml.
@@ -42,7 +44,7 @@ namespace Tizen.NUI.Xaml
         /// <param name="view">The view on which this method operates.</param>
         /// <param name="callingType">The type of the caller.</param>
         /// <returns>A TXaml with the properties that are defined in the application manifest for callingType.</returns>
-               public static TXaml LoadFromXaml<TXaml>(this TXaml view, Type callingType) 
+        public static TXaml LoadFromXaml<TXaml>(this TXaml view, Type callingType) 
                {
                        XamlLoader.Load(view, callingType);
                        return view;
index bba0b23..a655570 100755 (executable)
@@ -11,7 +11,8 @@ namespace Tizen.NUI.Binding
     /// <summary>
     /// Provides a mechanism by which application developers can propagate changes that are made to data in one object to another, by enabling validation, type coercion, and an event system.
     /// </summary>
-       public abstract class BindableObject : INotifyPropertyChanged, IDynamicResourceHandler
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public abstract class BindableObject : INotifyPropertyChanged, IDynamicResourceHandler
        {
         /// <summary>
         /// Implements the bound property whose interface is provided by the BindingContext property.
index 45fd27f..d84d45c 100755 (executable)
@@ -3,6 +3,7 @@ using System.Collections.Generic;
 using System.Diagnostics;
 using System.Linq.Expressions;
 using System.Reflection;
+using System.ComponentModel;
 using Tizen.NUI.Internals;
 using Tizen.NUI.Xaml;
 
@@ -13,7 +14,8 @@ namespace Tizen.NUI.Binding
     /// </summary>
        [DebuggerDisplay("{PropertyName}")]
        [TypeConverter(typeof(BindablePropertyConverter))]
-       public sealed class BindableProperty
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public sealed class BindableProperty
        {
         /// <summary>
         /// Delegate for BindableProperty.PropertyChanged.
index a18294b..966d189 100755 (executable)
@@ -1,11 +1,13 @@
 using System;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
     /// <summary>
     /// The secret key to a BindableProperty, used to implement a BindableProperty with restricted write access.
     /// </summary>
-       public sealed class BindablePropertyKey
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public sealed class BindablePropertyKey
        {
                internal BindablePropertyKey(BindableProperty property)
                {
index 75fd914..b991771 100755 (executable)
@@ -1,12 +1,14 @@
 using System;
 using System.Collections;
 using System.Runtime.CompilerServices;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
     /// <summary>
     /// An abstract class that provides a BindingMode and a formatting option.
     /// </summary>
+    [EditorBrowsable(EditorBrowsableState.Never)]
        public abstract class BindingBase
        {
                static readonly ConditionalWeakTable<IEnumerable, CollectionSynchronizationContext> SynchronizedCollections = new ConditionalWeakTable<IEnumerable, CollectionSynchronizationContext>();
index d6bfb00..2fbedc9 100755 (executable)
@@ -1,9 +1,12 @@
+using System.ComponentModel;
+
 namespace Tizen.NUI.Binding
 {
     /// <summary>
     /// The direction of changes propagation for bindings.
     /// </summary>
-       public enum BindingMode
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public enum BindingMode
        {
         /// <summary>
         /// When used in Bindings, indicates that the Binding should use the DefaultBindingMode. When used in BindableProperty declaration, defaults to BindingMode.OneWay.
index 50ae4c8..f925664 100755 (executable)
@@ -1,6 +1,7 @@
 using System;
 using System.Reflection;
 using System.Windows.Input;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
@@ -60,7 +61,8 @@ namespace Tizen.NUI.Binding
     /// <summary>
     /// Defines an ICommand implementation that wraps a Action.
     /// </summary>
-       public class Command : ICommand
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public class Command : ICommand
        {
                readonly Func<object, bool> _canExecute;
                readonly Action<object> _execute;
index 854ae74..d74aff7 100755 (executable)
@@ -15,6 +15,7 @@
  *
  */
 using System;
+using System.ComponentModel;
 using Tizen.NUI.Binding;
 using Tizen.NUI.BaseComponents;
 
@@ -24,6 +25,7 @@ namespace Tizen.NUI
     /// The ContentPage class.
     /// </summary>
     [ContentProperty("Content")]
+    [EditorBrowsable(EditorBrowsableState.Never)]
     public class ContentPage : TemplatedPage
     {
         private View _content;
index e0d6150..2995bbd 100755 (executable)
@@ -1,11 +1,13 @@
 using System;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
     /// <summary>
     /// Template that specifies a group of styles and effects for controls.
     /// </summary>
-       public class ControlTemplate : ElementTemplate
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public class ControlTemplate : ElementTemplate
        {
         /// <summary>
         /// For internal use only.
index f5f9289..732a349 100755 (executable)
@@ -7,7 +7,8 @@ namespace Tizen.NUI.Binding
     /// <summary>
     /// A collection of styles and properties that can be added to an element at run time.
     /// </summary>
-       public abstract class Effect
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public abstract class Effect
        {
                internal Effect()
                {
index d0a5c9c..4f2f9d0 100755 (executable)
@@ -12,7 +12,8 @@ namespace Tizen.NUI.Binding
     /// <summary>
     /// Provides the base class for all Tizen.NUI.Binding hierarchal elements. This class contains all the methods and properties required to represent an element in the Tizen.NUI.Binding hierarchy.
     /// </summary>
-       public abstract partial class Element : BindableObject, IElement, INameScope, IElementController
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public abstract partial class Element : BindableObject, IElement, INameScope, IElementController
        {
 
                // public static readonly BindableProperty MenuProperty = BindableProperty.CreateAttached(nameof(Menu), typeof(Menu), typeof(Element), null);
index 15c7b95..bb75b69 100755 (executable)
@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.ComponentModel;
 using Tizen.NUI.Internals;
 
 namespace Tizen.NUI.Binding
@@ -7,7 +8,8 @@ namespace Tizen.NUI.Binding
     /// <summary>
     /// Base class for DataTemplate and ControlTemplate classes.
     /// </summary>
-       public class ElementTemplate : IElement, IDataTemplate
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public class ElementTemplate : IElement, IDataTemplate
        {
                List<Action<object, ResourcesChangedEventArgs>> _changeHandlers;
                Element _parent;
index 3780285..9d90895 100755 (executable)
@@ -1,3 +1,4 @@
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
@@ -5,7 +6,8 @@ namespace Tizen.NUI.Binding
     /// This interface is for internal use by platform renderers.
     /// </summary>
     /// <typeparam name="T"></typeparam>
-       public interface IConfigElement<out T> where T : Element
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public interface IConfigElement<out T> where T : Element
        {
         /// <summary>
         /// For internal use
index 3e9caf8..d01e994 100755 (executable)
@@ -1,8 +1,10 @@
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
     /// <summary>
     /// Base interface for marker classes that identify target platforms for platform specific effects.
     /// </summary>
-       public interface IConfigPlatform { }
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public interface IConfigPlatform { }
 }
index a2ce272..b78267f 100755 (executable)
@@ -1,9 +1,12 @@
+using System.ComponentModel;
+
 namespace Tizen.NUI.Binding
 {
     /// <summary>
     /// When implemented in a renderer, registers a platform-specific effect on an element.
     /// </summary>
-       public interface IEffectControlProvider
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public interface IEffectControlProvider
        {
         /// <summary>
         /// Registers the effect with the element by establishing the parent-child relations needed for rendering on the specific platform.
index 5d25b52..63c18ef 100755 (executable)
@@ -1,12 +1,14 @@
 using System.Collections.Generic;
 using System.Threading.Tasks;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
     /// <summary>
     /// Interface abstracting platform-specific navigation.
     /// </summary>
-       public interface INavigation
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public interface INavigation
        {
         /// <summary>
         /// Gets the modal navigation stack.
index a4f0a4a..4106bb2 100755 (executable)
@@ -1,3 +1,4 @@
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
@@ -6,7 +7,8 @@ namespace Tizen.NUI.Binding
     /// </summary>
     /// <typeparam name="TPlatform">The platform type.</typeparam>
     /// <typeparam name="TElement">The element type.</typeparam>
-       public interface IPlatformElementConfiguration<out TPlatform, out TElement> : IConfigElement<TElement>
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public interface IPlatformElementConfiguration<out TPlatform, out TElement> : IConfigElement<TElement>
                        where TPlatform : IConfigPlatform
                        where TElement : Element
        {
index 54cce3e..a89d168 100755 (executable)
@@ -1,11 +1,13 @@
 using System;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
     /// <summary>
     /// EventArgs for the NavigationPage's navigation events.
     /// </summary>
-       public class NavigationEventArgs : EventArgs
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public class NavigationEventArgs : EventArgs
        {
         /// <summary>
         /// Create a NavigationEventArgs instance.
index 5c26f3e..95f5ab7 100755 (executable)
@@ -13,6 +13,7 @@ namespace Tizen.NUI
     /// A Page that manages the navigation and user-experience of a stack of other pages.
     /// </summary>
     // [RenderWith(typeof(_NavigationPageRenderer))]
+    [EditorBrowsable(EditorBrowsableState.Never)]
     public class NavigationPage : Page, IPageContainer<Page>, INavigationPageController, IElementConfiguration<NavigationPage>
        {
         /// <summary>
index 7e169f4..bdb8793 100755 (executable)
@@ -31,6 +31,7 @@ namespace Tizen.NUI
     /// A BaseHandle that occupies the entire screen.
     /// </summary>
     // [RenderWith(typeof(_PageRenderer))]
+    [EditorBrowsable(EditorBrowsableState.Never)]
     public class Page : /*VisualElement*/BaseHandle, ILayout, IPageController, IElementConfiguration<Page>, IPaddingElement
        {
         /// <summary>
index 79e3cb8..f383263 100755 (executable)
@@ -1,4 +1,5 @@
 using System.Diagnostics;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
@@ -6,7 +7,8 @@ namespace Tizen.NUI.Binding
     /// Struct that defines minimum and maximum Sizes.
     /// </summary>
        [DebuggerDisplay("Request={Request.Width}x{Request.Height}, Minimum={Minimum.Width}x{Minimum.Height}")]
-       public struct SizeRequest
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public struct SizeRequest
        {
         /// <summary>
         /// The requested size.
index db481e2..54ddb3c 100755 (executable)
@@ -1,4 +1,5 @@
 using System.Collections.Generic;
+using System.ComponentModel;
 using Tizen.NUI.Binding;
 
 namespace Tizen.NUI
@@ -6,7 +7,8 @@ namespace Tizen.NUI
     /// <summary>
     /// A page that displays full-screen content with a control template, and the base class for ContentPage.
     /// </summary>
-       public class TemplatedPage : Page, IControlTemplated
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public class TemplatedPage : Page, IControlTemplated
        {
         /// <summary>
         /// Backing store for the ControlTemplate property.
index 0e4a8d8..a42aaf2 100755 (executable)
@@ -1,4 +1,5 @@
 using System.Diagnostics;
+using System.ComponentModel;
 
 namespace Tizen.NUI.Binding
 {
@@ -7,7 +8,8 @@ namespace Tizen.NUI.Binding
     /// </summary>
        [DebuggerDisplay("Left={Left}, Top={Top}, Right={Right}, Bottom={Bottom}, HorizontalThickness={HorizontalThickness}, VerticalThickness={VerticalThickness}")]
        [TypeConverter(typeof(ThicknessTypeConverter))]
-       public struct Thickness
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public struct Thickness
        {
         /// <summary>
         /// The thickness of the left side of a rectangle.