This file contains hidden or 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
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
export const options = { | |
stages: [ | |
{ duration: '1s', target: 100 }, | |
{ duration: '30s', target: 20 }, | |
{ duration: '1m30s', target: 10 }, | |
{ duration: '20s', target: 0 }, | |
], |
This file contains hidden or 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
import http from 'k6/http'; | |
/** | |
* Authenticate using OAuth against IdentityServer | |
* @function | |
* @param {string} identityServerUrl - IdentityServer url to authenticate against | |
* @param {string} clientId - Generated by IdentityServer automatically | |
* @param {string} scope - Space-separated list of scopes | |
* @param {string|object} resource - Either a resource ID (as string) or an object containing username and password | |
*/ |
This file contains hidden or 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 MyMaterialEntryRenderer : MaterialEntryRenderer | |
{ | |
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) | |
{ | |
base.OnElementChanged(e); | |
TintCustomization(Control, e.NewElement as MyMaterialEntry); | |
} | |
protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e) |
This file contains hidden or 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
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) | |
{ | |
base.OnElementChanged(e); | |
if (Control == null || e.NewElement == null) return; | |
if (e.NewElement is MyMaterialEntry customEntry) | |
{ | |
EditText.SetHighlightColor(color: customEntry.MyHighlightColor.ToAndroid()); |
This file contains hidden or 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 static readonly BindableProperty MyHighlightColorProperty = BindableProperty.Create(nameof(MyHighlightColor), typeof(Color), typeof(MyMaterialEntry)); | |
public static readonly BindableProperty MyHandleColorProperty = BindableProperty.Create(nameof(MyHandleColor), typeof(Color), typeof(MyMaterialEntry)); | |
public static readonly BindableProperty MyTintColorProperty = BindableProperty.Create(nameof(MyTintColor), typeof(Color), typeof(MyMaterialEntry)); | |
public Color MyHighlightColor | |
{ | |
get => (Color)GetValue(MyHighlightColorProperty); | |
set => SetValue(MyHighlightColorProperty, value); |
This file contains hidden or 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 MyMaterialEntry : Entry | |
{ | |
} |
This file contains hidden or 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
<StackLayout Visual="Material"> | |
<Label Text="Customized" /> | |
<materialentry:MyMaterialEntry Text="Text" TextColor="White" PlaceholderColor="Green" BackgroundColor="YellowGreen" MyHighlightColor="Orange" MyHandleColor="Red" /> | |
<materialentry:MyMaterialEntry Placeholder="Placeholder" TextColor="White" PlaceholderColor="Green" BackgroundColor="YellowGreen" MyHighlightColor="Orange" MyHandleColor="BlueViolet" /> | |
</StackLayout> |
This file contains hidden or 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
<StackLayout Visual="Material"> | |
<Label Text="Default" /> | |
<Entry Text="Text" TextColor="White" PlaceholderColor="Green" BackgroundColor="YellowGreen" /> | |
<Entry Placeholder="Placeholder" TextColor="White" PlaceholderColor="Green" BackgroundColor="YellowGreen" /> | |
</StackLayout> |
This file contains hidden or 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
... | |
namespace In2TeamsSplitter.Models | |
{ | |
[Table("teammates")] | |
public class TeamMateItem : INotifyPropertyChanged | |
{ | |
... | |
public Command RemoveCommand => new Command(Remove); | |
private void Remove() |
This file contains hidden or 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
... | |
namespace In2TeamsSplitter.ViewModels | |
{ | |
class TeamMatesViewModel : INotifyPropertyChanged | |
{ | |
... | |
public TeamMatesViewModel() | |
{ | |
AddNewTeamMateCommand = new Command(() => AddNewTeamMate()); | |
... |
NewerOlder