xaml Xaml/C# UWP App Won't Scale Properly
Go to solution
Solved by NPDPdev,
By using the Name attribute, it allows me to address a specific Xaml tag from within the C# file. I just use that name as if said tag was an object, and I can interact with it however I want. I did not end up using this solution though, and instead remembered that Grid row/column sizes support pixel counts OR factors. I simply entered the factors that I wanted, and everything now displays as it should.
Here is the changed code:
<Grid.RowDefinitions> <RowDefinition/> <RowDefinition x:Name="ContentArea" Height="12*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition x:Name="Sidebar" Width="0.125*"/> <ColumnDefinition/> </Grid.ColumnDefinitions>
Here is the correct screen displaying:
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now