Skip to content

Commit

Permalink
Fix UI
Browse files Browse the repository at this point in the history
  • Loading branch information
niyari committed May 14, 2022
1 parent 0d27717 commit e45d522
Showing 1 changed file with 96 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,102 +55,6 @@
</StackPanel>
<!-- timezone / -->

<!-- datetime info -->
<StackPanel>
<UserControl>
<UserControl.Resources>
<Style
x:Key="CardStyle"
TargetType="Grid">
<Setter
Property="BorderBrush"
Value="{ThemeResource ExpanderHeaderBorderBrush}" />
<Setter
Property="BorderThickness"
Value="{ThemeResource ExpanderHeaderBorderThickness}" />
<Setter
Property="HorizontalAlignment"
Value="Stretch" />
<Setter
Property="MinHeight"
Value="{StaticResource ExpanderMinHeight}" />
<Setter
Property="Padding"
Value="{StaticResource ExpanderContentPadding}" />
<Setter
Property="CornerRadius"
Value="{ThemeResource ControlCornerRadius}" />
<Setter
Property="Background"
Value="{ThemeResource ExpanderHeaderBackground}" />
</Style>
</UserControl.Resources>
<Grid
Style="{StaticResource CardStyle}"
ColumnSpacing="12"
RowSpacing="4">
<Grid.ColumnDefinitions>
<ColumnDefinition
Width="*" />
<ColumnDefinition
Width="Auto" />
<ColumnDefinition
Width="*" />
<ColumnDefinition
Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock
Grid.Row="0"
Grid.Column="0"
Grid.ColumnSpan="4"
Text="{x:Bind ViewModel.DSTInfoText, Mode=OneWay}" />
<TextBlock
Grid.Row="1"
Grid.Column="0"
Text="{x:Bind ViewModel.Strings.OffsetTitle}" />
<TextBlock
Grid.Row="1"
Grid.Column="1"
Text="{x:Bind ViewModel.DSTInfoOffset, Mode=OneWay}"
IsTextSelectionEnabled="True" />
<TextBlock
Grid.Row="1"
Grid.Column="2"
Text="{x:Bind ViewModel.Strings.UtcTicksTitle}" />
<TextBlock
Grid.Row="1"
Grid.Column="3"
Text="{x:Bind ViewModel.DSTInfoUtcTicks, Mode=OneWay}"
IsTextSelectionEnabled="True" />
<TextBlock
Grid.Row="2"
Grid.Column="0"
Text="{x:Bind ViewModel.Strings.LocalDateTime}" />
<TextBlock
Grid.Row="2"
Grid.Column="1"
Text="{x:Bind ViewModel.DSTInfoLocalDateTime, Mode=OneWay}"
IsTextSelectionEnabled="True" />
<TextBlock
Grid.Row="2"
Grid.Column="2"
Text="{x:Bind ViewModel.Strings.UTCDateTime}" />
<TextBlock
Grid.Row="2"
Grid.Column="3"
Text="{x:Bind ViewModel.DSTInfoUtcDateTime, Mode=OneWay}"
IsTextSelectionEnabled="True" />
</Grid>
</UserControl>
</StackPanel>
<!-- datetime info / -->

<!-- unixtime -->
<StackPanel>
<Grid
Expand Down Expand Up @@ -358,5 +262,101 @@
</StackPanel>
</Grid>

<!-- datetime info -->
<StackPanel>
<UserControl>
<UserControl.Resources>
<Style
x:Key="CardStyle"
TargetType="Grid">
<Setter
Property="BorderBrush"
Value="{ThemeResource ExpanderHeaderBorderBrush}" />
<Setter
Property="BorderThickness"
Value="{ThemeResource ExpanderHeaderBorderThickness}" />
<Setter
Property="HorizontalAlignment"
Value="Stretch" />
<Setter
Property="MinHeight"
Value="{StaticResource ExpanderMinHeight}" />
<Setter
Property="Padding"
Value="{StaticResource ExpanderContentPadding}" />
<Setter
Property="CornerRadius"
Value="{ThemeResource ControlCornerRadius}" />
<Setter
Property="Background"
Value="{ThemeResource ExpanderHeaderBackground}" />
</Style>
</UserControl.Resources>
<Grid
Style="{StaticResource CardStyle}"
ColumnSpacing="12"
RowSpacing="4">
<Grid.ColumnDefinitions>
<ColumnDefinition
Width="*" />
<ColumnDefinition
Width="Auto" />
<ColumnDefinition
Width="*" />
<ColumnDefinition
Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock
Grid.Row="0"
Grid.Column="0"
Grid.ColumnSpan="4"
Text="{x:Bind ViewModel.DSTInfoText, Mode=OneWay}" />
<TextBlock
Grid.Row="1"
Grid.Column="0"
Text="{x:Bind ViewModel.Strings.OffsetTitle}" />
<TextBlock
Grid.Row="1"
Grid.Column="1"
Text="{x:Bind ViewModel.DSTInfoOffset, Mode=OneWay}"
IsTextSelectionEnabled="True" />
<TextBlock
Grid.Row="1"
Grid.Column="2"
Text="{x:Bind ViewModel.Strings.UtcTicksTitle}" />
<TextBlock
Grid.Row="1"
Grid.Column="3"
Text="{x:Bind ViewModel.DSTInfoUtcTicks, Mode=OneWay}"
IsTextSelectionEnabled="True" />
<TextBlock
Grid.Row="2"
Grid.Column="0"
Text="{x:Bind ViewModel.Strings.LocalDateTime}" />
<TextBlock
Grid.Row="2"
Grid.Column="1"
Text="{x:Bind ViewModel.DSTInfoLocalDateTime, Mode=OneWay}"
IsTextSelectionEnabled="True" />
<TextBlock
Grid.Row="2"
Grid.Column="2"
Text="{x:Bind ViewModel.Strings.UTCDateTime}" />
<TextBlock
Grid.Row="2"
Grid.Column="3"
Text="{x:Bind ViewModel.DSTInfoUtcDateTime, Mode=OneWay}"
IsTextSelectionEnabled="True" />
</Grid>
</UserControl>
</StackPanel>
<!-- datetime info / -->

</StackPanel>
</Page>

0 comments on commit e45d522

Please sign in to comment.