Skip to content

Commit

Permalink
Minor padding fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabboxl committed Jul 29, 2023
1 parent cc36788 commit b2348e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
18 changes: 1 addition & 17 deletions ClassevivaPCTO/Views/Agenda.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,16 @@
<VisualStateManager.VisualStateGroups>
<VisualStateGroup>
<VisualState x:Name="WideState">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="1230" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="SuggestBoxRelativePanel.(Grid.Row)" Value="0" />
<Setter Target="SuggestBoxRelativePanel.(Grid.Column)" Value="3" />
<Setter Target="PopupButtonsRelativePanel.(Grid.Row)" Value="0" />
<Setter Target="PopupButtonsRelativePanel.(Grid.Column)" Value="2" />

</VisualState.Setters>
</VisualState>
<VisualState x:Name="NarrowState1">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="930" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="SuggestBoxRelativePanel.(Grid.Row)" Value="1" />
<Setter Target="SuggestBoxRelativePanel.(Grid.Column)" Value="1" />
<Setter Target="PopupButtonsRelativePanel.(Grid.Row)" Value="0" />
<Setter Target="PopupButtonsRelativePanel.(Grid.Column)" Value="2" />

</VisualState.Setters>
</VisualState>

<VisualState x:Name="NarrowState2">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="0" />
Expand All @@ -57,9 +44,6 @@
<Setter Target="PopupButtonsRelativePanel.(Grid.Row)" Value="1" />
<Setter Target="PopupButtonsRelativePanel.(Grid.Column)" Value="1" />

<Setter Target="SuggestBoxRelativePanel.(Grid.Row)" Value="2" />
<Setter Target="SuggestBoxRelativePanel.(Grid.Column)" Value="1" />

</VisualState.Setters>
</VisualState>
</VisualStateGroup>
Expand Down
13 changes: 6 additions & 7 deletions ClassevivaPCTO/Views/Assenze.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="using:ClassevivaPCTO.Controls"
xmlns:microconverters="using:Microsoft.Toolkit.Uwp.UI.Converters"
xmlns:toolkit="using:Microsoft.Toolkit.Uwp.UI.Controls"
mc:Ignorable="d"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
Expand Down Expand Up @@ -66,16 +65,16 @@
</VisualStateManager.VisualStateGroups>


<RelativePanel Grid.Row="0" Margin="0,16,0,0">
<RelativePanel Grid.Row="0" Margin="0,16,0,16">

<TextBlock x:Name="TextTitolo" Grid.Row="0" Text="Assenze e Ritardi" FontSize="42" VerticalAlignment="Top"
<TextBlock x:Name="TextTitolo" Text="Assenze e Ritardi" FontSize="42" VerticalAlignment="Top"
Margin="32,0,0,0" />

<Button RelativePanel.RightOf="TextTitolo" x:Name="AggiornaCommand"
RelativePanel.AlignVerticalCenterWith="TextTitolo"
Width="48"
Height="36"
Margin="16,0,0,0" Click="AggiornaCommand_Click" >
Margin="16,0,0,0" Click="AggiornaCommand_Click">
<FontIcon Glyph="&#xE72C;" HorizontalAlignment="Center" />
</Button>

Expand All @@ -93,9 +92,9 @@
Grid.Row="2">


<Grid Grid.Row="2" x:Name="MyGrid"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<Grid
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<Grid.ColumnDefinitions>

<ColumnDefinition Width="Auto"></ColumnDefinition>
Expand Down

0 comments on commit b2348e5

Please sign in to comment.