111 lines
4.8 KiB
XML
111 lines
4.8 KiB
XML
<UserControl x:Class="C4IT_CustomerPanel.UserControls.Incidents"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:C4IT_CustomerPanel.UserControls"
|
|
xmlns:resx="clr-namespace:C4IT_CustomerPanel.Properties"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
<UserControl.Resources>
|
|
<Style TargetType="Button"
|
|
x:Key="ButtonStyle">
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource navForeground}" />
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource inactiveButtonColor}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Border Background="{TemplateBinding Background}">
|
|
<ContentPresenter HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver"
|
|
Value="True">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource activeButtonColor}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
|
|
<Grid x:Name="GridEtc"
|
|
Width="500"
|
|
Canvas.Left="1000"
|
|
HorizontalAlignment="Center"
|
|
Canvas.Top="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="250*" />
|
|
<RowDefinition Height="450" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100*" />
|
|
<ColumnDefinition Width="185*" />
|
|
<ColumnDefinition Width="185*" />
|
|
<ColumnDefinition Width="30*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Canvas x:Name="Canvas2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Grid.Row="0">
|
|
<Image Source="{DynamicResource appbar_clipboard_variant_text}"
|
|
Width="48"
|
|
Tag="MAINICO" />
|
|
<Label Foreground="{DynamicResource mainForeground}"
|
|
Content="{x:Static resx:Resources.incidents}"
|
|
FontSize="16"
|
|
Canvas.Top="10"
|
|
Canvas.Left="40" />
|
|
<ScrollViewer x:Name="CanvasIncident"
|
|
Canvas.Top="50"
|
|
Canvas.Left="10"
|
|
MaxHeight="460"
|
|
MinHeight="60"
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
VerticalScrollBarVisibility="Auto"
|
|
Width="{Binding ActualWidth, ElementName=Canvas2, Mode=OneWay}"
|
|
Visibility="Visible" />
|
|
<StackPanel x:Name="NoIncident"
|
|
Background="White"
|
|
Width="{Binding ActualWidth, ElementName=Canvas2, Mode=OneWay}"
|
|
Height="50"
|
|
Canvas.Top="50"
|
|
Canvas.Left="10">
|
|
<TextBlock Text="{x:Static resx:Resources.noincidents}"
|
|
Margin="25,5,10,0"
|
|
Foreground="Black" />
|
|
</StackPanel>
|
|
<Button Foreground="{DynamicResource navForeground}"
|
|
Style="{StaticResource ButtonStyle}"
|
|
Canvas.Top="450"
|
|
Canvas.Left="62"
|
|
Width="250"
|
|
Height="40"
|
|
Content="{x:Static resx:Resources.createNewTicket}"
|
|
FontSize="18"
|
|
x:Name="BtnCreateNewTicket"
|
|
Click="OnCreateNewTicketClicked"
|
|
Margin="0 70 0 0" />
|
|
</Canvas>
|
|
<Image Source="{DynamicResource appbar_list_check}"
|
|
x:Name="buttonReadAllTickets"
|
|
Tag="readAllTickets"
|
|
Grid.Column="2"
|
|
Cursor="Hand"
|
|
Margin="153,10,0,8"
|
|
PreviewMouseDown="ReadAll_PreviewMouseDown"
|
|
RenderTransformOrigin="1.536,1.429"
|
|
Height="32"
|
|
Width="32"
|
|
ToolTip="{x:Static resx:Resources.removeMarkups}" />
|
|
</Grid>
|
|
</UserControl>
|