SEBWIN-312: Optimized design of application instances in action center.
This commit is contained in:
parent
b4d8af716f
commit
3d55bd6ff4
4 changed files with 6 additions and 8 deletions
|
@ -19,11 +19,9 @@
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Grid.Row="0" x:Name="ApplicationName" Background="#AAD3D3D3" FontWeight="Bold" Padding="5" TextAlignment="Center" />
|
<TextBlock Grid.Row="0" x:Name="ApplicationName" Background="#99D3D3D3" FontWeight="Bold" Padding="5" TextAlignment="Center" />
|
||||||
<ContentControl Grid.Row="1" x:Name="ApplicationButton" />
|
<ContentControl Grid.Row="1" x:Name="ApplicationButton" />
|
||||||
<StackPanel Grid.Row="2" x:Name="InstancePanel" Orientation="Vertical" />
|
<StackPanel Grid.Row="2" x:Name="InstancePanel" Background="#99D3D3D3" Orientation="Vertical" />
|
||||||
<Border Grid.Row="3" BorderBrush="LightGray" BorderThickness="0,0,0,1" Margin="75,4" />
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|
|
@ -32,6 +32,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls
|
||||||
application.InstanceStarted += Application_InstanceStarted;
|
application.InstanceStarted += Application_InstanceStarted;
|
||||||
button.Clicked += (o, args) => application.Start();
|
button.Clicked += (o, args) => application.Start();
|
||||||
ApplicationName.Text = application.Info.Name;
|
ApplicationName.Text = application.Info.Name;
|
||||||
|
ApplicationName.Visibility = Visibility.Collapsed;
|
||||||
ApplicationButton.Content = button;
|
ApplicationButton.Content = button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,9 @@
|
||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="Auto" />
|
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<TextBlock Grid.Row="0" x:Name="ApplicationName" Background="#AAD3D3D3" FontWeight="Bold" Padding="5" TextAlignment="Center" />
|
<TextBlock Grid.Row="0" x:Name="ApplicationName" Background="#99D3D3D3" FontWeight="Bold" Padding="5" TextAlignment="Center" />
|
||||||
<ContentControl Grid.Row="1" x:Name="ApplicationButton" />
|
<ContentControl Grid.Row="1" x:Name="ApplicationButton" />
|
||||||
<StackPanel Grid.Row="2" x:Name="InstancePanel" Orientation="Vertical" />
|
<StackPanel Grid.Row="2" x:Name="InstancePanel" Background="#99D3D3D3" Orientation="Vertical" />
|
||||||
<Border Grid.Row="3" BorderBrush="LightGray" BorderThickness="0,0,0,1" Margin="75,4" />
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|
|
@ -32,6 +32,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls
|
||||||
application.InstanceStarted += Application_InstanceStarted;
|
application.InstanceStarted += Application_InstanceStarted;
|
||||||
button.Clicked += (o, args) => application.Start();
|
button.Clicked += (o, args) => application.Start();
|
||||||
ApplicationName.Text = application.Info.Name;
|
ApplicationName.Text = application.Info.Name;
|
||||||
|
ApplicationName.Visibility = Visibility.Collapsed;
|
||||||
ApplicationButton.Content = button;
|
ApplicationButton.Content = button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue