Skip to content
New issue

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

Get error when using CommandBarFlyout #244

Closed
luojunyuan opened this issue Dec 29, 2020 · 1 comment
Closed

Get error when using CommandBarFlyout #244

luojunyuan opened this issue Dec 29, 2020 · 1 comment
Milestone

Comments

@luojunyuan
Copy link

<Button>
    <ui:FlyoutService.Flyout>
        <ui:CommandBarFlyout>
            <ui:AppBarButton />
        </ui:CommandBarFlyout>
    </ui:FlyoutService.Flyout>
</Button>

The button and each AppBarButton goes well, but always get this annoying error when drop the flyout first time.

System.Windows.Data Error: 2 : 
Cannot find governing FrameworkElement or FrameworkContentElement for target element. 
BindingExpression:Path=FlyoutTemplateSettings.ContentClipRect;
DataItem='CommandBarFlyoutToolBar' (Name='PART_ToolBar'); 
target element is 'RectangleGeometry' (HashCode=3068848); 
target property is 'Rect' (type 'Rect')
@Kinnara Kinnara closed this as completed in d898bef Jan 5, 2021
@Kinnara Kinnara added this to the 0.9.3 milestone Jan 5, 2021
@Kinnara
Copy link
Owner

Kinnara commented Jan 5, 2021

Thanks for reporting. Although I'm not getting this error with the sample app, I made a change that should eliminate the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants