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
var stack = new StackLayout | |
{ | |
Children = | |
{ | |
new BoxView | |
{ | |
WidthRequest = 100, | |
HeightRequest = 50, | |
BackgroundColor = Color.FromHex("cccccc") | |
}, |
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
<StackLayout> | |
<BoxView WidthRequest="100" | |
HeightRequest="50" | |
BackgroundColor="#cccccc"/> | |
<BoxView WidthRequest="100" | |
HeightRequest="50" | |
BackgroundColor="#ffaaaa" | |
HorizontalOptions="Start"/> | |
<BoxView WidthRequest="100" | |
HeightRequest="50" |
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
var box00 = new BoxView | |
{ | |
BackgroundColor = Color.FromHex("#ffaaaa") | |
}; | |
var box01 = new BoxView | |
{ | |
BackgroundColor = Color.FromHex("#aaffaa") | |
}; | |
var box10 = new BoxView | |
{ |
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
<BoxView Grid.Row="0" Grid.Column="0" BackgroundColor="#ffaaaa" /> | |
<BoxView Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" BackgroundColor="#aaffaa"/> | |
<BoxView Grid.Row="1" Grid.Column="0" BackgroundColor="#aaaaff"/> | |
<BoxView Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" BackgroundColor="#aaaaaa" /> |
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
var grid = new Grid(); | |
grid.RowDefinitions.Add(new RowDefinition | |
{ | |
Height = new GridLength(2, GridUnitType.Star) | |
}); | |
grid.RowDefinitions.Add(new RowDefinition | |
{ | |
Height = new GridLength (1, GridUnitType.Star) | |
}); | |
grid.RowDefinitions.Add (new RowDefinition |
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
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="2*" /> | |
<RowDefinition Height="*" /> | |
<RowDefinition Height="200" /> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> |
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
protected override async void OnAppearing() | |
{ | |
base.OnAppearing(); | |
await iconImage.ScaleTo(1, 2000); //初期化などの時間のかかる処理を想定 | |
await iconImage.ScaleTo(0.9, 1500, Easing.Linear); | |
await iconImage.ScaleTo(150, 1200, Easing.Linear); | |
await Navigation.PushAsync(new AnimationTest()); | |
} |
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 partial class CodeBehindPage : ContentPage | |
{ | |
ObservableCollection<Item> Items = new ObservableCollection<Item>(); | |
public CodeBehindRamenPage() | |
{ | |
InitializeComponent(); | |
// Items初期化 | |
this.Items.Clear(); |
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 RamenPageViewModel : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
#region プロパティ | |
private ObservableCollection<RamenItem> _items = Ramen.Instance.Items; | |
public ObservableCollection<RamenItem> Items | |
{ | |
get { return _items; } |
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 Ramen : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
/// <summary> | |
/// シングルトンのインスタンス | |
/// </summary> | |
public static Ramen Instance { get; } = new Ramen(); | |
/// <summary> |