<p align="center">
<img align="center" src=".\demo\v4.gif" width="340" />
</p>
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 Item : INotifyPropertyChanged | |
{ | |
private string text; | |
public event PropertyChangedEventHandler PropertyChanged; | |
public string Description { get; set; } | |
public string Id { get; set; } | |
public string Text |
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 BindableLayout.ItemsSource="{Binding List}"> | |
<BindableLayout.ItemTemplate> | |
<DataTemplate> | |
</DataTemplate> | |
</BindableLayout.ItemTemplate> | |
</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
TargetType="{x:Type local:CustomView}" |
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
//from https://forums.xamarin.com/discussion/43068/can-visualelement-rotateto-be-used-to-create-an-infinite-rotation-animation | |
private async Task RotateElement(VisualElement element, CancellationToken cancellation) | |
{ | |
while (!cancellation.IsCancellationRequested) | |
{ | |
await element.RotateTo(360, 800, Easing.Linear); | |
await element.RotateTo(0, 0); // reset to initial position | |
} | |
} |
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
<Image> | |
<Image.Source> | |
<FontImageSource Glyph="" | |
FontFamily="{OnPlatform iOS=Ionicons, Android=ionicons.ttf#}" | |
Size="44" /> | |
</Image.Source> | |
</Image> |
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
var ListB = ListA.Select(a => new ObjB() { Prop1 = a.Prop1, Prop2 = a.Prop2 }).ToList(); |
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
#Move the mouse every 5 min | |
Add-Type -AssemblyName System.Windows.Forms | |
while (1) { | |
Start-Sleep -Seconds 300 | |
$Pos = [System.Windows.Forms.Cursor]::Position | |
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point((($Pos.X) + 1) , $Pos.Y) | |
} | |
#Run the script: ./ShakeMouse.ps1 |
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
//in AssemblyInfo.cs | |
//[assembly: ExportFont("FA5Brands.otf", Alias = "FA5Brands")] | |
<Label | |
Text="" | |
FontFamily="FA5Brands" | |
/> |
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
var MainPage = (MasterDetailPage)Application.Current.MainPage; | |
var detail = (NavigationPage)MainPage.Detail; | |
detail.BarBackgroundColor = Color.Accent; | |
detail.BarTextColor = Color.Coral; |
NewerOlder