Removed Save button
This commit is contained in:
Родитель
960f5aa184
Коммит
bfc724e83f
|
@ -115,9 +115,6 @@
|
||||||
<Content Include="Images\reload.png">
|
<Content Include="Images\reload.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Images\save.png">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<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')" />
|
<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);
|
public ICommand ReloadCommand => new Command(Reload);
|
||||||
|
|
||||||
private async void PreviewXaml(string xaml)
|
private async void PreviewXaml(string xaml)
|
||||||
|
@ -43,7 +41,7 @@ namespace FormsGtkLive.ViewModels
|
||||||
if (string.IsNullOrEmpty(xaml))
|
if (string.IsNullOrEmpty(xaml))
|
||||||
return;
|
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);
|
await Live.UpdatePageFromXamlAsync(contentPage, contentPageXaml);
|
||||||
}
|
}
|
||||||
|
@ -58,14 +56,9 @@ namespace FormsGtkLive.ViewModels
|
||||||
Preview = contentPage.Content;
|
Preview = contentPage.Content;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Save()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Reload()
|
private void Reload()
|
||||||
{
|
{
|
||||||
PreviewXaml(LiveXaml);
|
PreviewXaml(LiveXaml);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,10 +4,6 @@
|
||||||
x:Class="FormsGtkLive.Views.EditorView"
|
x:Class="FormsGtkLive.Views.EditorView"
|
||||||
Title="Live XAML Editor">
|
Title="Live XAML Editor">
|
||||||
<ContentPage.ToolbarItems>
|
<ContentPage.ToolbarItems>
|
||||||
<ToolbarItem
|
|
||||||
Icon="Images/save.png"
|
|
||||||
Text="Save"
|
|
||||||
Command="{Binding SaveCommand}"/>
|
|
||||||
<ToolbarItem
|
<ToolbarItem
|
||||||
Icon="Images/reload.png"
|
Icon="Images/reload.png"
|
||||||
Text="Reload"
|
Text="Reload"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче