Skip to content

Commit cdc0160

Browse files
author
eriklimakc
committed
chore: Use Responsive Extensions
1 parent 5da118a commit cdc0160

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

UI/Navigation/src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- See https://aka.platform.uno/using-uno-sdk#implicit-packages for more information regarding the Implicit Packages version properties. -->
1010
<PropertyGroup>
1111
<UnoExtensionsVersion>4.2.2</UnoExtensionsVersion>
12-
<UnoToolkitVersion>6.1.8</UnoToolkitVersion>
12+
<UnoToolkitVersion>6.2.0-dev.37</UnoToolkitVersion>
1313
<UnoThemesVersion>5.1.7</UnoThemesVersion>
1414
</PropertyGroup>
1515
</Project>

UI/Navigation/src/Navigation/Presentation/ContentControlNavigation/CControlNavigationPage.xaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
1010
mc:Ignorable="d">
1111

12+
<Page.Resources>
13+
<GridLength x:Key="ZeroWidth">0</GridLength>
14+
<GridLength x:Key="StarWidth">*</GridLength>
15+
</Page.Resources>
16+
1217
<Grid x:Name="ParentGrid">
1318
<Grid.RowDefinitions>
1419
<RowDefinition Height="Auto" />
@@ -19,7 +24,7 @@
1924
<Grid Grid.Row="1">
2025
<Grid.ColumnDefinitions>
2126
<ColumnDefinition Width="*" />
22-
<ColumnDefinition Width="*" />
27+
<ColumnDefinition Width="{utu:Responsive Narrow={StaticResource ZeroWidth}, Wide={StaticResource StarWidth}}" />
2328
</Grid.ColumnDefinitions>
2429

2530
<ListView Grid.Row="1"
@@ -32,12 +37,16 @@
3237
</ListView.ItemTemplate>
3338
</ListView>
3439

35-
<Grid Grid.Column="1" Background="AliceBlue">
40+
<Grid Grid.Column="1"
41+
Background="AliceBlue"
42+
Visibility="{utu:Responsive Narrow=Collapsed,
43+
Wide=Visible}">
3644
<ContentControl HorizontalAlignment="Stretch"
3745
VerticalAlignment="Stretch"
3846
HorizontalContentAlignment="Stretch"
3947
VerticalContentAlignment="Stretch"
40-
uen:Region.Attached="True" />
48+
uen:Region.Attached="{utu:Responsive Narrow=False,
49+
Wide=True}" />
4150
</Grid>
4251
</Grid>
4352
</Grid>

UI/Navigation/src/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
// To update the version of Uno please update the version of the Uno.Sdk here. See https://aka.platform.uno/upgrade-uno-packages for more information.
33
"msbuild-sdks": {
4-
"Uno.Sdk": "5.3.96"
4+
"Uno.Sdk": "5.4.0-dev.186"
55
},
66
"sdk": {
77
"allowPrerelease": false

0 commit comments

Comments
 (0)