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

Use theme to create DocumentGridPage borders #2574

Merged
merged 14 commits into from
Mar 27, 2021

Conversation

wjk
Copy link
Contributor

@wjk wjk commented Feb 13, 2020

Does what the title says. The border/shadow can now be customized by creating a style with the key {ComponentResourceKey TypeInTargetAssembly={x:Type FrameworkElement}, ResourceId=DocumentGridPageContainerWithBorder} at whatever scope you desire. The default value for this style is a copy of the current, manually constructed border. Here is a zipped demo project; note that you'll have to change the WpfRepoRoot variable in DocumentViewerTest.csproj before building.

I also took the opportunity to rewrite ThemeGenerator.nativeproj. It is now stripped of all MS-internal-isms and can be run with MSBuild directly to regenerate the XAML files in the theme projects.

Fixes #1518.

@ghost ghost requested review from vatsan-madhavan and rladuca February 13, 2020 22:07
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Feb 13, 2020
@ghost ghost requested a review from SamBent February 13, 2020 22:07
Base automatically changed from master to main March 17, 2021 17:38
@ryalanms ryalanms requested a review from a team as a code owner March 17, 2021 17:38
@ryalanms ryalanms merged commit 6cba46c into dotnet:main Mar 27, 2021
@wjk wjk deleted the document-viewer-page-borders branch March 27, 2021 16:30
@ghost ghost locked as resolved and limited conversation to collaborators Apr 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DocumentViewer uses hard coded page border and drop shadow colors
2 participants