This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async Task<SwaggerParameter> AddBodyParameterAsync(ResourceActionProcessorContext context, ResourceActionParameterDescriptor apiParameter) | |
{ | |
var operation = context.OperationDescription.Operation; | |
JsonSchema4 schema = await GenerateSchema(context, apiParameter); | |
string contentType = context.ResourceAction.Action.Request.ContentType; | |
// NOTE CL: Workaround for bug in NSwag that overrides the custom content type - https://github.com/RSuter/NSwag/issues/1681 | |
// By adding a Body parameter upfront instead of it being added implicitly when setting the operation.RequestBody, we | |
// prevent NSwag of overwriting our custom content type into application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ITTextInputLayout : TextInputLayout, IITComposite | |
{ | |
public ITTextInputLayout(Context context) : this(context, null) | |
{ | |
} | |
public ITTextInputLayout(Context context, IAttributeSet attrs) : this(context, attrs, Resource.Styleable.ITControls_ItcTextInputLayoutStyle) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.Content; | |
using Android.Util; | |
using Android.Support.Design.Widget; | |
using Android.Runtime; | |
using System; | |
using Android.Views; | |
using Android.Content.Res; | |
using Android.Text; | |
using Android.Views.InputMethods; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private bool _subscribed; | |
public EventHandler TextChanged; | |
protected override void OnAttachedToWindow() | |
{ | |
base.OnAttachedToWindow(); | |
Control.AfterTextChanged += HandleAfterTextChanged; | |
_subscribed = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string Text | |
{ | |
get { return Control.Text; } | |
set { Control.Text = value; } | |
} | |
public int MaxLines | |
{ | |
get { return Control.MaxLines; } | |
set { Control.SetMaxLines(value); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IITComposite | |
{ | |
string Error { get; set; } | |
string Header { get; set; } | |
string Text { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<intouch.controls.ITTextInputLayout | |
android:id="@+id/layout_password" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:inputType="textPassword" | |
app:ItcHeader="Password"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<merge xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<android.support.design.widget.TextInputEditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"/> | |
</merge> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<intouch.controls.ITTextInputLayout | |
android:id="@+id/layout_password" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:inputType="textPassword" | |
app:MvxLang="Header LabelPassword" | |
app:MvxBind="Text Password; Error Errors[Password] Converter=ErrorsToString"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.design.widget.TextInputLayout | |
android:id="@+id/layout_password" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:MvxLang="Hint LabelPassword"> | |
<android.support.design.widget.TextInputEditText | |
android:id="@+id/control_password" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:inputType="textPassword" |
NewerOlder