committed by
GitHub
487 changed files with 1135 additions and 1594 deletions
@ -0,0 +1,13 @@ |
|||||
|
<UserControl xmlns="https://github.com/avaloniaui"> |
||||
|
<StackPanel Orientation="Vertical" Spacing="4"> |
||||
|
<TextBlock Classes="h1">ListBox</TextBlock> |
||||
|
<TextBlock Classes="h2">Hosts a collection of ListBoxItem.</TextBlock> |
||||
|
|
||||
|
<StackPanel Orientation="Horizontal" |
||||
|
Margin="0,16,0,0" |
||||
|
HorizontalAlignment="Center" |
||||
|
Spacing="16"> |
||||
|
<ListBox Items="{Binding}" Width="250" Height="350"></ListBox> |
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
</UserControl> |
||||
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
using System.Collections; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using Avalonia.Controls; |
||||
|
using Avalonia.Markup.Xaml; |
||||
|
|
||||
|
namespace ControlCatalog.Pages |
||||
|
{ |
||||
|
public class ListBoxPage : UserControl |
||||
|
{ |
||||
|
public ListBoxPage() |
||||
|
{ |
||||
|
this.InitializeComponent(); |
||||
|
DataContext = Enumerable.Range(1, 10).Select(i => $"Item {i}" ) |
||||
|
.ToArray(); |
||||
|
} |
||||
|
|
||||
|
private void InitializeComponent() |
||||
|
{ |
||||
|
AvaloniaXamlLoader.Load(this); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,16 +1,9 @@ |
|||||
using Android.Graphics; |
|
||||
using Android.Views; |
using Android.Views; |
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
|
|
||||
namespace Avalonia.Android.Platform.Specific |
namespace Avalonia.Android.Platform.Specific |
||||
{ |
{ |
||||
public interface IAndroidView |
public interface IAndroidView |
||||
{ |
{ |
||||
|
|
||||
|
|
||||
View View { get; } |
View View { get; } |
||||
} |
} |
||||
|
} |
||||
|
|
||||
} |
|
||||
|
|||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue