Browse Source

Merge pull request #2519 from AvaloniaUI/fixes/xamlil-for-sample-projects

Fix broken sample projects
pull/2499/head
Nikita Tsukanov 8 years ago
committed by GitHub
parent
commit
f08b03300b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      build/EmbedXaml.props
  2. 13
      samples/BindingDemo/App.xaml
  3. 1
      samples/BindingDemo/BindingDemo.csproj
  4. 3
      samples/BindingDemo/MainWindow.xaml
  5. 4
      samples/BindingDemo/TestItemView.xaml
  6. 4
      samples/RemoteDemo/RemoteDemo.csproj
  7. 15
      samples/RenderDemo/App.xaml
  8. 2
      samples/RenderDemo/MainWindow.xaml
  9. 7
      samples/RenderDemo/Pages/AnimationsPage.xaml
  10. 16
      samples/RenderDemo/Pages/ClippingPage.xaml
  11. 6
      samples/RenderDemo/Pages/DrawingPage.xaml
  12. 1
      samples/RenderDemo/RenderDemo.csproj
  13. 13
      samples/VirtualizationDemo/App.xaml
  14. 2
      samples/VirtualizationDemo/MainWindow.xaml
  15. 1
      samples/VirtualizationDemo/VirtualizationDemo.csproj

2
build/EmbedXaml.props

@ -8,4 +8,4 @@
<SubType>Designer</SubType> <SubType>Designer</SubType>
</AvaloniaResource> </AvaloniaResource>
</ItemGroup> </ItemGroup>
</Project> </Project>

13
samples/BindingDemo/App.xaml

@ -1,6 +1,9 @@
<Application xmlns="https://github.com/avaloniaui"> <Application
<Application.Styles> xmlns="https://github.com/avaloniaui"
<StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
<StyleInclude Source="resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"/> x:Class="BindingDemo.App">
</Application.Styles> <Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
</Application.Styles>
</Application> </Application>

1
samples/BindingDemo/BindingDemo.csproj

@ -14,4 +14,5 @@
<Import Project="..\..\build\ReactiveUI.props" /> <Import Project="..\..\build\ReactiveUI.props" />
<Import Condition="'$(TargetFramework)'=='net461'" Project="..\..\build\NetFX.props" /> <Import Condition="'$(TargetFramework)'=='net461'" Project="..\..\build\NetFX.props" />
<Import Project="..\..\build\ReferenceCoreLibraries.props" /> <Import Project="..\..\build\ReferenceCoreLibraries.props" />
<Import Project="..\..\build\BuildTargets.targets" />
</Project> </Project>

3
samples/BindingDemo/MainWindow.xaml

@ -1,6 +1,7 @@
<Window xmlns="https://github.com/avaloniaui" <Window xmlns="https://github.com/avaloniaui"
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
xmlns:vm="clr-namespace:BindingDemo.ViewModels" x:Class="BindingDemo.MainWindow"
xmlns:vm="clr-namespace:BindingDemo.ViewModels"
xmlns:local="clr-namespace:BindingDemo" xmlns:local="clr-namespace:BindingDemo"
Title="AvaloniaUI Bindings Test" Title="AvaloniaUI Bindings Test"
Width="800" Width="800"

4
samples/BindingDemo/TestItemView.xaml

@ -1,4 +1,6 @@
<UserControl xmlns="https://github.com/avaloniaui"> <UserControl xmlns="https://github.com/avaloniaui"
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
x:Class="BindingDemo.TestItemView">
<StackPanel> <StackPanel>
<TextBlock Classes="h1" Text="{Binding StringValue}"/> <TextBlock Classes="h1" Text="{Binding StringValue}"/>
<TextBox Text="{Binding Detail}" AcceptsReturn="True"/> <TextBox Text="{Binding Detail}" AcceptsReturn="True"/>

4
samples/RemoteDemo/RemoteDemo.csproj

@ -1,14 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework> <TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\ControlCatalog\ControlCatalog.csproj" /> <ProjectReference Include="..\ControlCatalog\ControlCatalog.csproj" />
</ItemGroup> </ItemGroup>
<Import Project="..\..\build\SampleApp.props" /> <Import Project="..\..\build\SampleApp.props" />
<Import Project="..\..\build\ReferenceCoreLibraries.props" /> <Import Project="..\..\build\ReferenceCoreLibraries.props" />
<Import Project="..\..\build\BuildTargets.targets" />
</Project> </Project>

15
samples/RenderDemo/App.xaml

@ -1,7 +1,10 @@
<Application xmlns="https://github.com/avaloniaui"> <Application
<Application.Styles> xmlns="https://github.com/avaloniaui"
<StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
<StyleInclude Source="resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"/> x:Class="RenderDemo.App">
<StyleInclude Source="resm:RenderDemo.SideBar.xaml"/> <Application.Styles>
</Application.Styles> <StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
<StyleInclude Source="avares://RenderDemo/SideBar.xaml"/>
</Application.Styles>
</Application> </Application>

2
samples/RenderDemo/MainWindow.xaml

@ -1,4 +1,6 @@
<Window xmlns="https://github.com/avaloniaui" <Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="RenderDemo.MainWindow"
Title="AvaloniaUI Rendering Test" Title="AvaloniaUI Rendering Test"
xmlns:pages="clr-namespace:RenderDemo.Pages" xmlns:pages="clr-namespace:RenderDemo.Pages"
Width="800" Width="800"

7
samples/RenderDemo/Pages/AnimationsPage.xaml

@ -1,6 +1,7 @@
<UserControl <UserControl
xmlns="https://github.com/avaloniaui" xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="RenderDemo.Pages.AnimationsPage">
<UserControl.Styles> <UserControl.Styles>
<Styles> <Styles>
<Styles.Resources> <Styles.Resources>

16
samples/RenderDemo/Pages/ClippingPage.xaml

@ -1,9 +1,11 @@
<UserControl <UserControl
xmlns="https://github.com/avaloniaui"> xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="RenderDemo.Pages.ClippingPage">
<Grid ColumnDefinitions="Auto" RowDefinitions="Auto,Auto"> <Grid ColumnDefinitions="Auto" RowDefinitions="Auto,Auto">
<Grid.Styles> <Grid.Styles>
<Styles> <Styles>
<Style Selector="Border#clipped :pointerover"> <Style Selector="Border#clipped:pointerover">
<Setter Property="Border.Background" Value="Crimson"/> <Setter Property="Border.Background" Value="Crimson"/>
</Style> </Style>
<Style Selector="Border#clipChild"> <Style Selector="Border#clipChild">
@ -17,10 +19,10 @@ xmlns="https://github.com/avaloniaui">
</Style> </Style>
</Styles> </Styles>
</Grid.Styles> </Grid.Styles>
<Border Name="clipped" <Border Name="clipped"
Background="Yellow" Background="Yellow"
Width="100" Width="100"
Height="100" Height="100"
Clip="M 58.625 0.07421875 Clip="M 58.625 0.07421875
C 50.305778 0.26687364 42.411858 7.0346526 41.806641 15.595703 C 50.305778 0.26687364 42.411858 7.0346526 41.806641 15.595703
C 42.446442 22.063923 39.707425 13.710754 36.982422 12.683594 C 42.446442 22.063923 39.707425 13.710754 36.982422 12.683594

6
samples/RenderDemo/Pages/DrawingPage.xaml

@ -1,5 +1,7 @@
<UserControl xmlns="https://github.com/avaloniaui" <UserControl
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="RenderDemo.Pages.DrawingPage">
<UserControl.Styles> <UserControl.Styles>
<Style> <Style>
<Style.Resources> <Style.Resources>

1
samples/RenderDemo/RenderDemo.csproj

@ -14,4 +14,5 @@
<Import Project="..\..\build\ReactiveUI.props" /> <Import Project="..\..\build\ReactiveUI.props" />
<Import Condition="'$(TargetFramework)'=='net461'" Project="..\..\build\NetFX.props" /> <Import Condition="'$(TargetFramework)'=='net461'" Project="..\..\build\NetFX.props" />
<Import Project="..\..\build\ReferenceCoreLibraries.props" /> <Import Project="..\..\build\ReferenceCoreLibraries.props" />
<Import Project="..\..\build\BuildTargets.targets" />
</Project> </Project>

13
samples/VirtualizationDemo/App.xaml

@ -1,6 +1,9 @@
<Application xmlns="https://github.com/avaloniaui"> <Application
<Application.Styles> xmlns="https://github.com/avaloniaui"
<StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
<StyleInclude Source="resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"/> x:Class="VirtualizationDemo.App">
</Application.Styles> <Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
</Application.Styles>
</Application> </Application>

2
samples/VirtualizationDemo/MainWindow.xaml

@ -1,4 +1,6 @@
<Window xmlns="https://github.com/avaloniaui" <Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="VirtualizationDemo.MainWindow"
Title="AvaloniaUI Virtualization Test" Title="AvaloniaUI Virtualization Test"
Width="800" Width="800"
Height="600"> Height="600">

1
samples/VirtualizationDemo/VirtualizationDemo.csproj

@ -14,4 +14,5 @@
<Import Project="..\..\build\ReactiveUI.props" /> <Import Project="..\..\build\ReactiveUI.props" />
<Import Condition="'$(TargetFramework)'=='net461'" Project="..\..\build\NetFX.props" /> <Import Condition="'$(TargetFramework)'=='net461'" Project="..\..\build\NetFX.props" />
<Import Project="..\..\build\ReferenceCoreLibraries.props" /> <Import Project="..\..\build\ReferenceCoreLibraries.props" />
<Import Project="..\..\build\BuildTargets.targets" />
</Project> </Project>

Loading…
Cancel
Save