Modernize customer panel UI and add agent workflow rules
This commit is contained in:
@@ -14,15 +14,25 @@
|
||||
<Style TargetType="Button"
|
||||
x:Key="ButtonStyle">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource navForeground}" />
|
||||
Value="{DynamicResource buttonTextColor}" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource inactiveButtonColor}" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource panelBorderColor}" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="1" />
|
||||
<Setter Property="Padding"
|
||||
Value="12,6" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border Background="{TemplateBinding Background}">
|
||||
<Border Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="10">
|
||||
<ContentPresenter HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
VerticalAlignment="Center"
|
||||
Margin="{TemplateBinding Padding}" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
@@ -32,9 +42,36 @@
|
||||
Value="True">
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource activeButtonColor}" />
|
||||
<Setter Property="Foreground"
|
||||
Value="White" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="InfoTextBoxStyle"
|
||||
TargetType="{x:Type TextBox}">
|
||||
<Setter Property="Foreground"
|
||||
Value="{DynamicResource sectionTitleColor}" />
|
||||
<Setter Property="Background"
|
||||
Value="{DynamicResource inputBackgroundColor}" />
|
||||
<Setter Property="BorderBrush"
|
||||
Value="{DynamicResource inputBorderColor}" />
|
||||
<Setter Property="BorderThickness"
|
||||
Value="1" />
|
||||
<Setter Property="Padding"
|
||||
Value="8,3" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type TextBox}">
|
||||
<Border Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="8">
|
||||
<ScrollViewer x:Name="PART_ContentHost" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
|
||||
<!--ComputerInformation-->
|
||||
@@ -64,9 +101,9 @@
|
||||
Grid.Row="1"
|
||||
Height="70">
|
||||
<Image Source="{DynamicResource appbar_monitor}"
|
||||
Height="48"
|
||||
Height="34"
|
||||
x:Name="icoComputer_Inline" x:FieldModifier="private" />
|
||||
<Label Foreground="{DynamicResource mainForeground}"
|
||||
<Label Foreground="{DynamicResource sectionTitleColor}"
|
||||
x:Name="LblComputername" x:FieldModifier="private"
|
||||
Content="{x:Static resx:Resources.computername}"
|
||||
FontSize="16"
|
||||
@@ -76,12 +113,12 @@
|
||||
Width="300"
|
||||
FontSize="16"
|
||||
VerticalAlignment="Center"
|
||||
Style="{StaticResource InfoTextBoxStyle}"
|
||||
x:Name="TxtComputername" x:FieldModifier="private"
|
||||
IsReadOnly="true"
|
||||
Canvas.Top="45"
|
||||
Height="25"
|
||||
PreviewMouseDoubleClick="Info_TXT_OnMouseDoubleClick"
|
||||
Background="White" />
|
||||
PreviewMouseDoubleClick="Info_TXT_OnMouseDoubleClick" />
|
||||
<Image Cursor="Hand"
|
||||
Source="{DynamicResource appbar_page_copy}"
|
||||
Height="25"
|
||||
@@ -98,9 +135,9 @@
|
||||
Grid.Row="2"
|
||||
Height="70">
|
||||
<Image Source="{DynamicResource appbar_network}"
|
||||
Height="48"
|
||||
Height="34"
|
||||
x:Name="icoNetwork_Inline" x:FieldModifier="private" />
|
||||
<Label Foreground="{DynamicResource mainForeground}"
|
||||
<Label Foreground="{DynamicResource sectionTitleColor}"
|
||||
FontSize="16"
|
||||
x:Name="LblIpaddress" x:FieldModifier="private"
|
||||
Content="{x:Static resx:Resources.ipaddress}"
|
||||
@@ -111,11 +148,11 @@
|
||||
Height="25"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="16"
|
||||
Style="{StaticResource InfoTextBoxStyle}"
|
||||
x:Name="TxtIpaddress" x:FieldModifier="private"
|
||||
IsReadOnly="true"
|
||||
Canvas.Top="45"
|
||||
PreviewMouseDoubleClick="Info_TXT_OnMouseDoubleClick"
|
||||
Background="White" />
|
||||
PreviewMouseDoubleClick="Info_TXT_OnMouseDoubleClick" />
|
||||
<Image Cursor="Hand"
|
||||
Source="{DynamicResource appbar_page_copy}"
|
||||
Height="25"
|
||||
@@ -133,9 +170,9 @@
|
||||
Height="70"
|
||||
x:Name="CanvasHostname" x:FieldModifier="private">
|
||||
<Image Source="{DynamicResource appbar_remotehost}"
|
||||
Height="48"
|
||||
Height="34"
|
||||
x:Name="icoHost_Inline" x:FieldModifier="private"/>
|
||||
<Label Foreground="{DynamicResource mainForeground}"
|
||||
<Label Foreground="{DynamicResource sectionTitleColor}"
|
||||
x:Name="LblHostname" x:FieldModifier="private"
|
||||
Content="{x:Static resx:Resources.Hostname}"
|
||||
FontSize="16"
|
||||
@@ -145,12 +182,12 @@
|
||||
Width="300"
|
||||
FontSize="16"
|
||||
VerticalAlignment="Center"
|
||||
Style="{StaticResource InfoTextBoxStyle}"
|
||||
x:Name="TxtHostname" x:FieldModifier="private"
|
||||
IsReadOnly="true"
|
||||
Canvas.Top="45"
|
||||
Height="25"
|
||||
PreviewMouseDoubleClick="Info_TXT_OnMouseDoubleClick"
|
||||
Background="White" />
|
||||
PreviewMouseDoubleClick="Info_TXT_OnMouseDoubleClick" />
|
||||
<Image Cursor="Hand"
|
||||
Source="{DynamicResource appbar_page_copy}"
|
||||
Height="25"
|
||||
@@ -167,9 +204,9 @@
|
||||
Grid.Row="4"
|
||||
Height="70">
|
||||
<Image Source="{DynamicResource appbar_people}"
|
||||
Height="48"
|
||||
Height="34"
|
||||
x:Name="icoUser_Inline" x:FieldModifier="private" />
|
||||
<Label Foreground="{DynamicResource mainForeground}"
|
||||
<Label Foreground="{DynamicResource sectionTitleColor}"
|
||||
FontSize="16"
|
||||
x:Name="LblUsername" x:FieldModifier="private"
|
||||
Content="{x:Static resx:Resources.username}"
|
||||
@@ -180,12 +217,12 @@
|
||||
Height="25"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="16"
|
||||
Style="{StaticResource InfoTextBoxStyle}"
|
||||
x:Name="TxtUsername" x:FieldModifier="private"
|
||||
IsEnabled="true"
|
||||
IsReadOnly="true"
|
||||
Canvas.Top="45"
|
||||
PreviewMouseDoubleClick="Info_TXT_OnMouseDoubleClick"
|
||||
Background="White" />
|
||||
PreviewMouseDoubleClick="Info_TXT_OnMouseDoubleClick" />
|
||||
<Image Cursor="Hand"
|
||||
Source="{DynamicResource appbar_page_copy}"
|
||||
Height="25"
|
||||
@@ -202,10 +239,10 @@
|
||||
Grid.Row="5"
|
||||
Height="70">
|
||||
<Image Source="{DynamicResource appbar_reset}"
|
||||
Height="48"
|
||||
Height="34"
|
||||
x:Name="icoRestart_Inline" x:FieldModifier="private"
|
||||
Tag="MAINICO" />
|
||||
<Label Foreground="{DynamicResource mainForeground}"
|
||||
<Label Foreground="{DynamicResource sectionTitleColor}"
|
||||
FontSize="16"
|
||||
x:Name="LblLastreboot" x:FieldModifier="private"
|
||||
Content="{x:Static resx:Resources.lastreboot}"
|
||||
@@ -216,11 +253,11 @@
|
||||
Height="25"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="16"
|
||||
Style="{StaticResource InfoTextBoxStyle}"
|
||||
x:Name="TxtLastreboot" x:FieldModifier="private"
|
||||
IsReadOnly="true"
|
||||
Canvas.Top="45"
|
||||
MouseDoubleClick="Info_TXT_OnMouseDoubleClick"
|
||||
Background="White" />
|
||||
MouseDoubleClick="Info_TXT_OnMouseDoubleClick" />
|
||||
<Image Cursor="Hand"
|
||||
Source="{DynamicResource appbar_page_copy}"
|
||||
Height="25"
|
||||
@@ -237,10 +274,10 @@
|
||||
Grid.Row="6"
|
||||
Height="70">
|
||||
<Image Source="{DynamicResource appbar_folder_ellipsis}"
|
||||
Height="48"
|
||||
Height="34"
|
||||
x:Name="icoDrive_Inline" x:FieldModifier="private"
|
||||
Tag="MAINICO" />
|
||||
<Label Foreground="{DynamicResource mainForeground}"
|
||||
<Label Foreground="{DynamicResource sectionTitleColor}"
|
||||
x:Name="LblDrives" x:FieldModifier="private"
|
||||
Content="{x:Static resx:Resources.drives}"
|
||||
FontSize="16"
|
||||
@@ -273,7 +310,7 @@
|
||||
Grid.Row="7"
|
||||
Height="70">
|
||||
<Label Content="{x:Static resx:Resources.genReportHeader}"
|
||||
Foreground="{DynamicResource mainForeground}"
|
||||
Foreground="{DynamicResource sectionTitleColor}"
|
||||
Canvas.Left="53"
|
||||
Canvas.Top="15"
|
||||
FontSize="16"
|
||||
@@ -286,7 +323,7 @@
|
||||
<ColumnDefinition Width="43*" />
|
||||
<ColumnDefinition Width="57*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Foreground="{DynamicResource navForeground}"
|
||||
<Button Foreground="{DynamicResource buttonTextColor}"
|
||||
HorizontalAlignment="Left"
|
||||
Style="{StaticResource ButtonStyle}"
|
||||
Width="250"
|
||||
@@ -301,7 +338,7 @@
|
||||
<Grid Width="300"
|
||||
Canvas.Left="15"
|
||||
Canvas.Top="110">
|
||||
<Button Foreground="{DynamicResource navForeground}"
|
||||
<Button Foreground="{DynamicResource buttonTextColor}"
|
||||
HorizontalAlignment="Center"
|
||||
Style="{StaticResource ButtonStyle}"
|
||||
Width="250"
|
||||
@@ -340,16 +377,16 @@
|
||||
Opacity="0"
|
||||
Visibility="Collapsed">
|
||||
<Border BorderThickness="1"
|
||||
BorderBrush="Black"
|
||||
CornerRadius="3"
|
||||
Background="{DynamicResource inactiveButtonColor}"
|
||||
BorderBrush="{DynamicResource panelBorderColor}"
|
||||
CornerRadius="10"
|
||||
Background="{DynamicResource cardBackgroundColor}"
|
||||
Width="250"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Panel.ZIndex="100">
|
||||
<TextBlock Text="{x:Static resx:Resources.copied}"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
Foreground="{DynamicResource sectionTitleColor}"
|
||||
FontSize="15"
|
||||
Height="25"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center" />
|
||||
|
||||
Reference in New Issue
Block a user