This commit is contained in:
Artjom Graf 2018-12-31 20:19:53 +03:00
Родитель 9c3f15caae
Коммит 6fb6235244
4 изменённых файлов: 29 добавлений и 20 удалений

Просмотреть файл

@ -33,6 +33,7 @@ namespace Camelotia.Presentation.Xamarin.Droid
base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
Plugin.Iconize.Iconize.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs);
LoadApplication(new App(BuildMainViewModel()));
}

Просмотреть файл

@ -10,6 +10,11 @@ namespace Camelotia.Presentation.Xamarin
{
public App(IMainViewModel viewModel)
{
Plugin.Iconize.Iconize
.With(new Plugin.Iconize.Fonts.FontAwesomeRegularModule())
.With(new Plugin.Iconize.Fonts.FontAwesomeSolidModule())
.With(new Plugin.Iconize.Fonts.FontAwesomeBrandsModule());
InitializeComponent();
MainPage = new MainView { ViewModel = viewModel };
}

Просмотреть файл

@ -12,6 +12,8 @@
<ItemGroup>
<PackageReference Include="ReactiveUI.XamForms" Version="9.5.1" />
<PackageReference Include="Xamarin.Forms" Version="3.4.0.1008975" />
<PackageReference Include="Xam.Plugin.Iconize" Version="3.4.0.103" />
<PackageReference Include="Xam.Plugin.Iconize.FontAwesome" Version="3.4.0.103" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -6,7 +6,8 @@
x:Class="Camelotia.Presentation.Xamarin.View.ProviderExplorerView"
xmlns:vm="clr-namespace:Camelotia.Presentation.Interfaces;assembly=Camelotia.Presentation"
xmlns:rxui="clr-namespace:ReactiveUI.XamForms;assembly=ReactiveUI.XamForms"
xmlns:view="clr-namespace:Camelotia.Presentation.Xamarin.View">
xmlns:view="clr-namespace:Camelotia.Presentation.Xamarin.View"
xmlns:iconize="clr-namespace:Plugin.Iconize;assembly=Plugin.Iconize">
<ContentPage.Content>
<Grid>
<Grid.RowDefinitions>
@ -34,9 +35,9 @@
<Button Grid.Column="2"
x:Name="OpenButton"
Text="Open" />
<Button Grid.Column="3"
x:Name="RefreshButton"
Text="Refresh" />
<iconize:IconButton Grid.Column="3"
x:Name="RefreshButton"
Text="fas-sync-alt" />
</Grid>
<ListView Grid.Row="1"
x:Name="FilesListView"
@ -57,23 +58,23 @@
</Grid>
<Grid Grid.Row="3" Margin="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0"
x:Name="LogoutButton"
Text="Logout" />
<Button Grid.Column="1"
x:Name="DeleteButton"
Text="Delete" />
<Button Grid.Column="3"
x:Name="UploadButton"
Text="Upload" />
<Button Grid.Column="4"
x:Name="DownloadButton"
Text="Download" />
<iconize:IconButton Grid.Column="0"
x:Name="LogoutButton"
Text="fas-sign-out-alt" />
<iconize:IconButton Grid.Column="1"
x:Name="DeleteButton"
Text="fas-trash" />
<iconize:IconButton Grid.Column="2"
x:Name="UploadButton"
Text="fas-cloud-upload-alt" />
<iconize:IconButton Grid.Column="3"
x:Name="DownloadButton"
Text="fas-cloud-download-alt" />
</Grid>
</Grid>
</ContentPage.Content>