-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
platform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
OnIdiom throws an not implemented Exception (in GridLengthTypeConverter)
Following Xaml throws at runtime a NotSupported Exception
<Grid>
<Grid.RowDefinitions>
<RowDefinition>
<RowDefinition.Height>
<OnIdiom x:TypeArguments="GridLength" Default="50" Desktop="100"/>
</RowDefinition.Height>
</RowDefinition>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label
Text="Hello, World!" />
</Grid>
Steps to Reproduce
- Create Maui App
- Replace MainPage Code with this
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp3.MainPage">
<ScrollView>
<Grid>
<Grid.RowDefinitions>
<RowDefinition>
<RowDefinition.Height>
<OnIdiom x:TypeArguments="GridLength" Default="50" Desktop="100"/>
</RowDefinition.Height>
</RowDefinition>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label
Text="Hello, World!" />
</Grid>
</ScrollView>
</ContentPage>
- Start Application
- Crashes with not supported exception
Link to public reproduction project repository
https://github.com/inforithmics/MauiOnIdiomGridLength
Version with bug
9.0.60 SR6
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
All
Did you find any workaround?
No
Similar issues: The workaround from there did not work
#10894
Relevant log output
Metadata
Metadata
Assignees
Labels
platform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done