Removed Save button
This commit is contained in:
Родитель
960f5aa184
Коммит
bfc724e83f
|
@ -115,9 +115,6 @@
|
|||
<Content Include="Images\reload.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Images\save.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\Xamarin.Forms.3.0.0\build\netstandard1.0\Xamarin.Forms.targets" Condition="Exists('..\packages\Xamarin.Forms.3.0.0\build\netstandard1.0\Xamarin.Forms.targets')" />
|
||||
|
|
Двоичные данные
source/FormsGtkLive.GTK/Images/save.png
Двоичные данные
source/FormsGtkLive.GTK/Images/save.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 336 B |
|
@ -30,8 +30,6 @@ namespace FormsGtkLive.ViewModels
|
|||
}
|
||||
}
|
||||
|
||||
public ICommand SaveCommand => new Command(Save);
|
||||
|
||||
public ICommand ReloadCommand => new Command(Reload);
|
||||
|
||||
private async void PreviewXaml(string xaml)
|
||||
|
@ -43,7 +41,7 @@ namespace FormsGtkLive.ViewModels
|
|||
if (string.IsNullOrEmpty(xaml))
|
||||
return;
|
||||
|
||||
string contentPageXaml = $"<?xml version='1.0' encoding='utf-8' ?><ContentPage xmlns='http://xamarin.com/schemas/2014/forms' xmlns:x='http://schemas.microsoft.com/winfx/2009/xaml' x:Class ='LiveXaml.XamlPage'>{xaml}</ContentPage>";
|
||||
string contentPageXaml = $"<?xml version='1.0' encoding='utf-8' ?><ContentPage xmlns='http://xamarin.com/schemas/2014/forms' xmlns:x='http://schemas.microsoft.com/winfx/2009/xaml' x:Class ='FormsGtkLive.XamlPage'>{xaml}</ContentPage>";
|
||||
|
||||
await Live.UpdatePageFromXamlAsync(contentPage, contentPageXaml);
|
||||
}
|
||||
|
@ -58,14 +56,9 @@ namespace FormsGtkLive.ViewModels
|
|||
Preview = contentPage.Content;
|
||||
}
|
||||
|
||||
private void Save()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Reload()
|
||||
{
|
||||
PreviewXaml(LiveXaml);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,10 +4,6 @@
|
|||
x:Class="FormsGtkLive.Views.EditorView"
|
||||
Title="Live XAML Editor">
|
||||
<ContentPage.ToolbarItems>
|
||||
<ToolbarItem
|
||||
Icon="Images/save.png"
|
||||
Text="Save"
|
||||
Command="{Binding SaveCommand}"/>
|
||||
<ToolbarItem
|
||||
Icon="Images/reload.png"
|
||||
Text="Reload"
|
||||
|
|
Загрузка…
Ссылка в новой задаче