-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wasm): fix non-uno.ui type HtmlElementAttribute inheritance
- Loading branch information
1 parent
e6db5a3
commit 2518b14
Showing
4 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Shapes/Path_Custom.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<Page | ||
x:Class="UITests.Windows_UI_Xaml_Shapes.Path_Custom" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:UITests.Windows_UI_Xaml_Shapes" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<Grid> | ||
<local:MyPath Stroke="Black" StrokeThickness="1" > | ||
<Path.Data> | ||
<PathGeometry> | ||
<PathGeometry.Figures> | ||
<PathFigure StartPoint="10,50"> | ||
<PathFigure.Segments> | ||
<BezierSegment | ||
Point1="100,0" | ||
Point2="200,200" | ||
Point3="300,100"/> | ||
<LineSegment Point="400,100" /> | ||
<ArcSegment | ||
Size="50,50" RotationAngle="45" | ||
IsLargeArc="True" SweepDirection="Clockwise" | ||
Point="200,100"/> | ||
</PathFigure.Segments> | ||
</PathFigure> | ||
</PathGeometry.Figures> | ||
</PathGeometry> | ||
</Path.Data> | ||
</local:MyPath> | ||
</Grid> | ||
</Page> |
23 changes: 23 additions & 0 deletions
23
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Shapes/Path_Custom.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Uno.UI.Samples.Controls; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Shapes; | ||
|
||
namespace UITests.Windows_UI_Xaml_Shapes | ||
{ | ||
[Sample("Shapes")] | ||
public sealed partial class Path_Custom : Page | ||
{ | ||
public Path_Custom() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
|
||
//#if __WASM__ | ||
// [Uno.UI.Runtime.WebAssembly.HtmlElement("svg")] | ||
//#endif | ||
public partial class MyPath : Path | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters