Skip to content

how to access the value of my App.xaml file from my Platforms for Windows #21023

Answered by cgp1976
RMrenex asked this question in Q&A
Discussion options

You must be logged in to vote

There is a static class for it. look into MauiWinUIApplication

var thickness= MauiWinUIApplication.Current.Resources["TextControlBorderThemeThickness"] as Microsoft.UI.Xaml.Thickness;

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@RMrenex
Comment options

Comment options

You must be logged in to vote
1 reply
@RMrenex
Comment options

Answer selected by RMrenex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants