summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/VisualElement.cs
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2017-03-07 14:56:24 -0500
committerGitHub <noreply@github.com>2017-03-07 14:56:24 -0500
commite6d5186c8acbf37b877c7ca3c77a378352a3743d (patch)
treed61ca8ea619f7844e9e0a973dbd7bac794e39147 /Xamarin.Forms.Core/VisualElement.cs
parent2b92142ab2a501de71d3572efc0e5deb2b7bae9a (diff)
downloadxamarin-forms-e6d5186c8acbf37b877c7ca3c77a378352a3743d.tar.gz
xamarin-forms-e6d5186c8acbf37b877c7ca3c77a378352a3743d.tar.bz2
xamarin-forms-e6d5186c8acbf37b877c7ca3c77a378352a3743d.zip
Remove InternalsVisibleTo from Core to XF.Platforms.* (#782)
* Remove InternalsVisibleTo from Core to XF.Platforms.* * Changes per Jason's code review * Move LockableObservableListWrapper to internals namespace * Changes per Stephane's code review * update docs * Touch code to get CI to run tests * Rebase; Update documentation
Diffstat (limited to 'Xamarin.Forms.Core/VisualElement.cs')
-rw-r--r--Xamarin.Forms.Core/VisualElement.cs35
1 files changed, 25 insertions, 10 deletions
diff --git a/Xamarin.Forms.Core/VisualElement.cs b/Xamarin.Forms.Core/VisualElement.cs
index 352e2549..476a0570 100644
--- a/Xamarin.Forms.Core/VisualElement.cs
+++ b/Xamarin.Forms.Core/VisualElement.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.ComponentModel;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms
@@ -86,7 +87,8 @@ namespace Xamarin.Forms
public static readonly BindableProperty MinimumHeightRequestProperty = BindableProperty.Create("MinimumHeightRequest", typeof(double), typeof(VisualElement), -1d, propertyChanged: OnRequestChanged);
- internal static readonly BindablePropertyKey IsFocusedPropertyKey = BindableProperty.CreateReadOnly("IsFocused", typeof(bool), typeof(VisualElement), default(bool),
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindablePropertyKey IsFocusedPropertyKey = BindableProperty.CreateReadOnly("IsFocused", typeof(bool), typeof(VisualElement), default(bool),
propertyChanged: OnIsFocusedPropertyChanged);
public static readonly BindableProperty IsFocusedProperty = IsFocusedPropertyKey.BindableProperty;
@@ -296,7 +298,8 @@ namespace Xamarin.Forms
private set { SetValue(YPropertyKey, value); }
}
- internal bool Batched
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Batched
{
get { return _batched > 0; }
}
@@ -322,9 +325,11 @@ namespace Xamarin.Forms
get { return ComputedConstraint | SelfConstraint; }
}
- internal bool DisableLayout { get; set; }
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool DisableLayout { get; set; }
- internal bool IsInNativeLayout
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool IsInNativeLayout
{
get
{
@@ -345,7 +350,8 @@ namespace Xamarin.Forms
set { _isInNativeLayout = value; }
}
- internal bool IsNativeStateConsistent
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool IsNativeStateConsistent
{
get { return _isNativeStateConsistent; }
set
@@ -358,7 +364,8 @@ namespace Xamarin.Forms
}
}
- internal bool IsPlatformEnabled
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool IsPlatformEnabled
{
get { return _isPlatformEnabled; }
set
@@ -374,7 +381,8 @@ namespace Xamarin.Forms
}
}
- internal NavigationProxy NavigationProxy
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public NavigationProxy NavigationProxy
{
get { return Navigation as NavigationProxy; }
}
@@ -629,7 +637,8 @@ namespace Xamarin.Forms
OnSizeAllocated(width, height);
}
- internal event EventHandler<EventArg<VisualElement>> BatchCommitted;
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler<EventArg<VisualElement>> BatchCommitted;
internal void ComputeConstrainsForChildren()
{
@@ -646,8 +655,14 @@ namespace Xamarin.Forms
view.ComputedConstraint = LayoutConstraint.None;
}
- internal event EventHandler<FocusRequestArgs> FocusChangeRequested;
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler<FocusRequestArgs> FocusChangeRequested;
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void InvalidateMeasureNonVirtual(InvalidationTrigger trigger)
+ {
+ InvalidateMeasureInternal(trigger);
+ }
internal virtual void InvalidateMeasureInternal(InvalidationTrigger trigger)
{
_measureCache.Clear();
@@ -775,7 +790,7 @@ namespace Xamarin.Forms
SizeChanged(this, EventArgs.Empty);
}
- internal class FocusRequestArgs : EventArgs
+ public class FocusRequestArgs : EventArgs
{
public bool Focus { get; set; }