-
Notifications
You must be signed in to change notification settings - Fork 0
/
OutlookFolder.xaml
147 lines (144 loc) · 8.63 KB
/
OutlookFolder.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<Window x:Class="Worksly.OutlookFolder"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Worksly"
mc:Ignorable="d"
Title="Worksly" SizeToContent="WidthAndHeight" ResizeMode="NoResize"
WindowStyle="None" ShowInTaskbar="False" Topmost="True"
WindowStartupLocation="CenterScreen" AllowsTransparency="True"
Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown"
Visibility="Visible" Height="450" Width="350">
<Window.Resources>
<Style x:Key="RepeatButtonTransparent" TargetType="{x:Type RepeatButton}">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="Background" Value="#505050"/>
<Setter Property="Opacity" Value="0.1"/>
<Setter Property="Focusable" Value="false"/>
<Setter Property="IsTabStop" Value="false"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RepeatButton}">
<Border Background="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="10" CornerRadius="10"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ScrollBarThumbVertical" TargetType="{x:Type Thumb}">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<!--<Setter Property="Margin" Value="3"/>-->
<Setter Property="IsTabStop" Value="false"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Thumb}">
<Border x:Name="rectangle" Background="Black" Height="{TemplateBinding Height}" SnapsToDevicePixels="True" Width="4" CornerRadius="8"/>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Background" TargetName="rectangle" Value="Black"/>
</Trigger>
<Trigger Property="IsDragging" Value="true">
<Setter Property="Background" TargetName="rectangle" Value="Black"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Canvas Height="450" Width="350">
<Rectangle Stroke="Black" StrokeThickness="1" Name="UIPath" RadiusX="35" RadiusY="35"
Height="450" Width="350" Canvas.Left="-1">
<Rectangle.Fill>
<RadialGradientBrush>
<GradientStop Color="#FF0F0F0F" Offset="1"/>
<GradientStop Color="#FF212123" Offset="0.291"/>
</RadialGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Button x:Name="CloseButton" Content="X" Style="{StaticResource exitBtn}"
HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="16"
FontFamily="Arial" ForceCursor="True" Width="20" Height="20"
RenderTransformOrigin="1.2,1.25" Canvas.Left="316" Canvas.Top="10" IsTabStop="False"/>
<Label Canvas.Left="15" Foreground="White" FontSize="18" FontFamily="Courier New" Canvas.Top="12">
<Label.Content>
<TextBlock>
<Run Typography.Capitals="SmallCaps" Text="Feedback Folder"/>
</TextBlock>
</Label.Content>
</Label>
<Border Height="1" Canvas.Left="20" Canvas.Top="37" Width="193">
<Border.Background>
<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
<GradientStop Color="Black" Offset="1" />
<GradientStop Color="#FFC3C3C3"/>
<GradientStop Color="#FFC3C3C3" Offset="0.65"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<ListBox x:Name="foldersListBox" Background="{x:Null}" Height="366" Width="320"
Canvas.Left="15" Canvas.Top="41" BorderBrush="{x:Null}" Foreground="White"
ScrollViewer.HorizontalScrollBarVisibility="Hidden" FontFamily="Courier New"
SelectionChanged="foldersListBox_Selected" >
<ListBox.Resources>
<Style TargetType="{x:Type ScrollBar}">
<Setter Property="Background" Value="#85505050"/>
<Setter Property="BorderBrush" Value="#90505050"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollBar}">
<Grid x:Name="Bg" SnapsToDevicePixels="true" Width="10">
<Grid.RowDefinitions>
<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
<RowDefinition Height="0.00001*"/>
<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
</Grid.RowDefinitions>
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Row="1" CornerRadius="10"/>
<Track x:Name="PART_Track" IsDirectionReversed="true" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="1" Width="10">
<Track.DecreaseRepeatButton>
<RepeatButton Command="{x:Static ScrollBar.PageUpCommand}" Style="{StaticResource RepeatButtonTransparent}" HorizontalAlignment="Left" Width="10"/>
</Track.DecreaseRepeatButton>
<Track.IncreaseRepeatButton>
<RepeatButton Command="{x:Static ScrollBar.PageDownCommand}" Style="{StaticResource RepeatButtonTransparent}"/>
</Track.IncreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource ScrollBarThumbVertical}" Margin="2"/>
</Track.Thumb>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListBox.Resources>
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="300"/>
</Grid.ColumnDefinitions>
<Image Source="{Binding IconName}" x:Name="textPrepend" Margin="10,0,2,0" Width="24"/>
<TextBlock Grid.Column="1" FontSize="16" VerticalAlignment="Center" Padding="2,0,0,0">
<Run Typography.Capitals="SmallCaps" Text="{Binding FolderName}"/>
</TextBlock>
</Grid>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource PreviousData}}" Value="{x:Null}">
<Setter Property="Visibility" Value="Collapsed" TargetName="textPrepend"/>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Padding" Value="0"/>
<Setter Property="Margin" Value="0,0,0,-1"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
</ListBox.ItemContainerStyle>
</ListBox>
<Button x:Name="submitButton" Style="{StaticResource submitBtn}" Content="Submit" Canvas.Left="138"
Canvas.Top="413" Width="74" Height="27"/>
</Canvas>
</Window>