Skip to content

Commit

Permalink
chore: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Aug 8, 2024
1 parent 7a79d0c commit 1991bd3
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 24 deletions.
6 changes: 4 additions & 2 deletions doc/articles/controls/GLCanvasElement.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ XAML:
d:DesignHeight="300"
d:DesignWidth="400">

<skia:GLTriangleElement />
<not_skia:TextBlock Text="This sample is only supported on skia." />
<Grid>
<skia:GLTriangleElement />
<not_skia:TextBlock Text="This sample is only supported on skia." />
</Grid>
</UserControl>
```

Expand Down
20 changes: 11 additions & 9 deletions doc/articles/controls/SKCanvasElement.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ XAML:
d:DesignHeight="300"
d:DesignWidth="400">

<skia:Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Slider Grid.Row="0" x:Name="slider" Header="Sample" Minimum="0" Maximum="{x:Bind MaxSampleIndex}" />
<local:SKCanvasElementImpl Grid.Row="1" Sample="{x:Bind slider.Value, Mode=OneWay}" />
</skia:Grid>
<not_skia:TextBlock Text="This sample is only supported on skia." />
<Grid>
<skia:Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Slider Grid.Row="0" x:Name="slider" Header="Sample" Minimum="0" Maximum="{x:Bind MaxSampleIndex}" />
<local:SKCanvasElementImpl Grid.Row="1" Sample="{x:Bind slider.Value, Mode=OneWay}" />
</skia:Grid>
<not_skia:TextBlock Text="This sample is only supported on skia." />
</Grid>
</UserControl>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
d:DesignHeight="300"
d:DesignWidth="400">

<skia:RotatingCubeGlCanvasElement />
<not_skia:TextBlock Text="This sample is only supported on skia." />
<Grid>
<skia:RotatingCubeGlCanvasElement />
<not_skia:TextBlock Text="This sample is only supported on skia." />
</Grid>
</UserControl>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
d:DesignHeight="300"
d:DesignWidth="400">

<skia:SimpleTriangleGlCanvasElement />
<not_skia:TextBlock Text="This sample is only supported on skia." />
<Grid>
<skia:SimpleTriangleGlCanvasElement />
<not_skia:TextBlock Text="This sample is only supported on skia." />
</Grid>
</UserControl>
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

// https://github.com/dotnet/Silk.NET/tree/c27224cce6b8136224c01d40de2d608879d709b5/examples/CSharp/OpenGL%20Tutorials

#if __SKIA__
using System;
using System.Diagnostics;
using System.Numerics;
Expand Down Expand Up @@ -284,3 +285,4 @@ public unsafe void VertexAttributePointer(uint index, int count, VertexAttribPoi
}
}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if __SKIA__
using System;
using Windows.Foundation;
using Microsoft.UI.Xaml;
Expand Down Expand Up @@ -132,3 +133,4 @@ SKPath Star()
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
d:DesignHeight="300"
d:DesignWidth="400">

<skia:Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Slider Grid.Row="0" x:Name="slider" Header="Sample" Minimum="0" Maximum="{x:Bind MaxSampleIndex}" />
<local:SKCanvasElementImpl Grid.Row="1" Sample="{x:Bind slider.Value, Mode=OneWay}" />
</skia:Grid>
<not_skia:TextBlock Text="This sample is only supported on skia." />
<Grid>
<skia:Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Slider Grid.Row="0" x:Name="slider" Header="Sample" Minimum="0" Maximum="{x:Bind MaxSampleIndex}" />
<local:SKCanvasElementImpl Grid.Row="1" Sample="{x:Bind slider.Value, Mode=OneWay}" />
</skia:Grid>
<not_skia:TextBlock Text="This sample is only supported on skia." />
</Grid>
</UserControl>
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if __SKIA__
using System;
using System.Drawing;
using Microsoft.UI.Xaml.Controls;
Expand Down Expand Up @@ -105,3 +106,4 @@ protected override void RenderOverride(GL gl)
}
}
}
#endif

0 comments on commit 1991bd3

Please sign in to comment.