diff --git a/MADE.App.Networking/MADE.App.Networking.csproj b/MADE.App.Networking/MADE.App.Networking.csproj index e6b71d58..2a02f5ad 100644 --- a/MADE.App.Networking/MADE.App.Networking.csproj +++ b/MADE.App.Networking/MADE.App.Networking.csproj @@ -1,7 +1,7 @@  - netstandard2.0;uap10.0.16299 + netstandard2.0 @@ -52,18 +52,11 @@ - - - - - - - \ No newline at end of file diff --git a/MADE.App.Views.Controls.HeaderedTextBlock.Forms/MADE.App.Views.Controls.HeaderedTextBlock.Forms.csproj b/MADE.App.Views.Controls.HeaderedTextBlock.Forms/MADE.App.Views.Controls.HeaderedTextBlock.Forms.csproj index 20ca7124..7e452cbc 100644 --- a/MADE.App.Views.Controls.HeaderedTextBlock.Forms/MADE.App.Views.Controls.HeaderedTextBlock.Forms.csproj +++ b/MADE.App.Views.Controls.HeaderedTextBlock.Forms/MADE.App.Views.Controls.HeaderedTextBlock.Forms.csproj @@ -43,7 +43,7 @@ https://github.com/MADE-Apps/MADE-App-Components git https://pbs.twimg.com/profile_images/927154020422160385/6HSRU36P_400x400.jpg - MADE App Development HeaderedTextBlock Xamarin.Forms View Custom Controls Windows Android iOS Xamarin + MADE App Development Controls View Header TextBlock TextView Xamarin.Forms Windows Android iOS Xamarin MADE.App.Views diff --git a/MADE.App.Views.Controls.HeaderedTextBlock/HeaderedTextBlock.Android.cs b/MADE.App.Views.Controls.HeaderedTextBlock/HeaderedTextBlock.Android.cs index 9f00c3cd..40d3fa63 100644 --- a/MADE.App.Views.Controls.HeaderedTextBlock/HeaderedTextBlock.Android.cs +++ b/MADE.App.Views.Controls.HeaderedTextBlock/HeaderedTextBlock.Android.cs @@ -116,32 +116,32 @@ public HeaderedTextBlock(Context context, IAttributeSet attrs, int defStyleAttr, /// /// Gets the UI element associated with the container for the header and text content. /// - public LinearLayout LayoutContainer { get; private set; } + public LinearLayout HeaderTextBlockContainer { get; private set; } /// /// Gets the UI element associated with the header text. /// - public TextView HeaderTextView { get; private set; } + public TextView HeaderContent { get; private set; } /// /// Gets the UI element associated with the content text. /// - public TextView ContentTextView { get; private set; } + public TextView TextContent { get; private set; } /// /// Gets or sets the string associated with the header. /// public string Header { - get => this.HeaderTextView?.Text; + get => this.HeaderContent?.Text; set { - if (this.HeaderTextView == null || value == this.HeaderTextView.Text) + if (this.HeaderContent == null || value == this.HeaderContent.Text) { return; } - this.HeaderTextView.Text = value; + this.HeaderContent.Text = value; this.RaisePropertyChanged(); this.UpdateVisibility(); } @@ -152,15 +152,15 @@ public string Header /// public string Text { - get => this.ContentTextView?.Text; + get => this.TextContent?.Text; set { - if (this.ContentTextView == null || value == this.ContentTextView.Text) + if (this.TextContent == null || value == this.TextContent.Text) { return; } - this.ContentTextView.Text = value; + this.TextContent.Text = value; this.RaisePropertyChanged(); this.UpdateVisibility(); } @@ -208,13 +208,13 @@ public override void OnApplyTemplate(IAttributeSet attrs, int defStyleAttr, int { base.OnApplyTemplate(attrs, defStyleAttr, defStyleRes); - this.LayoutContainer = this.View?.FindViewById( + this.HeaderTextBlockContainer = this.View?.FindViewById( Controls.HeaderedTextBlock.Resource.Id.HeaderedTextBlock_LayoutContainer); - this.HeaderTextView = this.View?.FindViewById( + this.HeaderContent = this.View?.FindViewById( Controls.HeaderedTextBlock.Resource.Id.HeaderedTextBlock_HeaderTextView); - this.ContentTextView = this.View?.FindViewById( + this.TextContent = this.View?.FindViewById( Controls.HeaderedTextBlock.Resource.Id.HeaderedTextBlock_ContentTextView); if (attrs != null) @@ -229,18 +229,18 @@ public override void OnApplyTemplate(IAttributeSet attrs, int defStyleAttr, int Controls.HeaderedTextBlock.Resource.Styleable.HeaderedTextBlock_hide_if_empty, false); - if (this.HeaderTextView != null) + if (this.HeaderContent != null) { string header = typedArray.GetString( Controls.HeaderedTextBlock.Resource.Styleable.HeaderedTextBlock_header); - this.HeaderTextView.Text = header; + this.HeaderContent.Text = header; } - if (this.ContentTextView != null) + if (this.TextContent != null) { string text = typedArray.GetString( Controls.HeaderedTextBlock.Resource.Styleable.HeaderedTextBlock_text); - this.ContentTextView.Text = text; + this.TextContent.Text = text; } } @@ -253,7 +253,7 @@ public override void OnApplyTemplate(IAttributeSet attrs, int defStyleAttr, int /// public void UpdateOrientation() { - this.LayoutContainer?.SetOrientation(this.Orientation); + this.HeaderTextBlockContainer?.SetOrientation(this.Orientation); } /// @@ -264,14 +264,14 @@ public void UpdateVisibility() if (!this.HideIfNullOrWhiteSpace || !string.IsNullOrWhiteSpace(this.Text)) { this.IsVisible = true; - this.HeaderTextView?.SetVisible(!string.IsNullOrWhiteSpace(this.Header)); - this.ContentTextView?.SetVisible(!string.IsNullOrWhiteSpace(this.Text)); + this.HeaderContent?.SetVisible(!string.IsNullOrWhiteSpace(this.Header)); + this.TextContent?.SetVisible(!string.IsNullOrWhiteSpace(this.Text)); } else { this.IsVisible = false; - this.HeaderTextView?.SetVisible(false); - this.ContentTextView?.SetVisible(false); + this.HeaderContent?.SetVisible(false); + this.TextContent?.SetVisible(false); } } } diff --git a/MADE.App.Views.Controls.HeaderedTextBlock/HeaderedTextBlock.Windows.cs b/MADE.App.Views.Controls.HeaderedTextBlock/HeaderedTextBlock.Windows.cs index f3c9fc99..eabb1df8 100644 --- a/MADE.App.Views.Controls.HeaderedTextBlock/HeaderedTextBlock.Windows.cs +++ b/MADE.App.Views.Controls.HeaderedTextBlock/HeaderedTextBlock.Windows.cs @@ -77,9 +77,9 @@ public HeaderedTextBlock() this.DefaultStyleKey = typeof(HeaderedTextBlock); } - public TextBlock HeaderTextBlock { get; private set; } + public TextBlock HeaderContent { get; private set; } - public TextBlock ContentTextBlock { get; private set; } + public TextBlock TextContent { get; private set; } /// /// Gets or sets a value indicating whether to hide the control if the is null or whitespace. @@ -159,14 +159,14 @@ public void UpdateVisibility() if (!this.HideIfNullOrWhiteSpace || !string.IsNullOrWhiteSpace(this.Text)) { this.IsVisible = true; - this.HeaderTextBlock?.SetVisible(!string.IsNullOrWhiteSpace(this.Header)); - this.ContentTextBlock?.SetVisible(!string.IsNullOrWhiteSpace(this.Text)); + this.HeaderContent?.SetVisible(!string.IsNullOrWhiteSpace(this.Header)); + this.TextContent?.SetVisible(!string.IsNullOrWhiteSpace(this.Text)); } else { this.IsVisible = false; - this.HeaderTextBlock?.SetVisible(false); - this.ContentTextBlock?.SetVisible(false); + this.HeaderContent?.SetVisible(false); + this.TextContent?.SetVisible(false); } } @@ -177,8 +177,8 @@ protected override void OnApplyTemplate() { base.OnApplyTemplate(); - this.HeaderTextBlock = this.GetChildView("HeaderContent"); - this.ContentTextBlock = this.GetChildView("TextContent"); + this.HeaderContent = this.GetChildView("HeaderContent"); + this.TextContent = this.GetChildView("TextContent"); this.UpdateVisibility(); this.UpdateOrientation();