Skip to content

Commit a3c571b

Browse files
authored
Fix OpenGL Lease page not showing in ControlCatalog (#21198)
1 parent 42dd647 commit a3c571b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
<UserControl xmlns="https://github.com/avaloniaui"
1+
<ContentPage xmlns="https://github.com/avaloniaui"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
x:Class="ControlCatalog.Pages.OpenGlLeasePage"
4-
xmlns:pages="using:ControlCatalog.Pages"
54
xmlns:openGl="clr-namespace:ControlCatalog.Pages.OpenGl">
65
<Grid>
76
<Control x:Name="Viewport" AttachedToVisualTree="ViewportAttachedToVisualTree" DetachedFromVisualTree="ViewportDetachedFromVisualTree"/>
87
<openGl:GlPageKnobs x:Name="Knobs" PropertyChanged="KnobsPropertyChanged" />
98
</Grid>
10-
</UserControl>
9+
</ContentPage>

samples/ControlCatalog/Pages/OpenGl/OpenGlLeasePage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace ControlCatalog.Pages;
1414

15-
public partial class OpenGlLeasePage : UserControl
15+
public partial class OpenGlLeasePage : ContentPage
1616
{
1717
private CompositionCustomVisual? _visual;
1818

0 commit comments

Comments
 (0)