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

Added support for Shadow Behavior in NativeViewHost #1380

Merged
merged 3 commits into from
Nov 15, 2020

Conversation

ichan-mb
Copy link
Member

Experimental support for drawing Shadow inside NativeViewHost.

Test Case:

<App Background="White">
	<ClientPanel Color="White">
		<StackPanel Alignment="Center" ItemSpacing="20">
			<Rectangle Size="200" Color="Red" StrokeColor="Blue" StrokeWidth="1" CornerRadius="10" ux:Name="rect">
				<Shadow Size="10" Distance="5" Color="Green" />
			</Rectangle>
			<NativeViewHost>
				<Rectangle Size="200" Color="Red" StrokeColor="Blue" StrokeWidth="1" CornerRadius="10" ux:Name="rect2">
					<Shadow Size="10" Distance="5" Color="Green" />
				</Rectangle>
			</NativeViewHost>
		</StackPanel>
	</ClientPanel>
</App>

Note:
Shadow drawing (distance, size) slightly different between in graphics view and nativeviewhost

This PR contains:

  • Changelog
  • Documentation
  • Tests

@mortend
Copy link
Member

mortend commented Nov 15, 2020

@mortend mortend merged commit 5efba8c into fuse-open:master Nov 15, 2020
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

Successfully merging this pull request may close these issues.

2 participants