We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting Panel.Clip and Composition.Visual.Clip causes a crash:
Panel.Clip
Composition.Visual.Clip
E_NOINTERFACE - No such interface supported in Microsoft_UI_Xaml!HWCompTreeNodeWinRT::UpdateVisualClipAndTransform
E_NOINTERFACE - No such interface supported
Microsoft_UI_Xaml!HWCompTreeNodeWinRT::UpdateVisualClipAndTransform
public class LayoutPanel : Panel { public LayoutPanel() { this.SizeChanged += LayoutPanel_SizeChanged; } private void LayoutPanel_SizeChanged(object sender, SizeChangedEventArgs e) { var visual = ElementCompositionPreview.GetElementVisual(this); var compositor = visual.Compositor; var device = CanvasDevice.GetSharedDevice(); CanvasPathBuilder pathBuilder = new CanvasPathBuilder(device); pathBuilder.BeginFigure(1, 1); pathBuilder.AddLine(300, 300); pathBuilder.AddLine(1, 300); pathBuilder.EndFigure(CanvasFigureLoop.Closed); CanvasGeometry geometry = CanvasGeometry.CreatePath(pathBuilder); var path = new CompositionPath(geometry); var pathGeometry = compositor.CreatePathGeometry(path); var geometricClip = compositor.CreateGeometricClip(pathGeometry); visual.Clip = geometricClip; } protected override Size ArrangeOverride(Size finalSize) { var actual = base.ArrangeOverride(finalSize); Clip = new RectangleGeometry { Rect = new Rect(0, 0, finalSize.Width, finalSize.Height) }; return actual; } }
<local:LayoutPanel Background="Red"> <TextBlock Text="Label Inside the Border"/> </local:LayoutPanel>
This should not crash
No response
Windows App SDK 1.6.3: 1.6.241114003
Packaged (MSIX), Unpackaged
Windows 11 version 22H2 (22621, 2022 Update)
Visual Studio 2022
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Setting
Panel.Clip
andComposition.Visual.Clip
causes a crash:E_NOINTERFACE - No such interface supported
inMicrosoft_UI_Xaml!HWCompTreeNodeWinRT::UpdateVisualClipAndTransform
Steps to reproduce the bug
Panel.Clip
property andComposition.Visual.Clip
property:Expected behavior
This should not crash
Screenshots
No response
NuGet package version
Windows App SDK 1.6.3: 1.6.241114003
Packaging type
Packaged (MSIX), Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: