-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.xaml
More file actions
83 lines (82 loc) · 5.22 KB
/
Project.xaml
File metadata and controls
83 lines (82 loc) · 5.22 KB
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
<UserControl x:Class="Pin.Project"
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:Pin"
xmlns:ColorPicker="clr-namespace:Pin.ColorPicker"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<UserControl.Resources>
<ControlTemplate x:Key="Template_Project_Open" TargetType="ToggleButton">
<Border CornerRadius="5" Background="{TemplateBinding Background}" Height="20" Width="20">
<ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-2,0,0" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
</Trigger>
<Trigger Property="IsPressed" Value="True">
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</UserControl.Resources>
<Grid>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="43"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Background="#FF646769">
<Grid Margin="10" Grid.Row="0" VerticalAlignment="Top">
<TextBlock FontSize="16" VerticalAlignment="Center" Foreground="White" Text="Projects"/>
<ToggleButton Template="{StaticResource Template_Project_Open}" HorizontalAlignment="Right" Padding="0" Name="projects" Click="projects_Click">
<ToggleButton.Style>
<Style TargetType="ToggleButton">
<Setter Property="Background" Value="DarkGray"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</ToggleButton.Style>
<TextBlock Name="addP" VerticalAlignment="Center" HorizontalAlignment="Center" Text="+"/>
</ToggleButton>
<Popup Name="popupToggle" IsOpen="{Binding IsChecked, ElementName=projects}" MouseEnter="popupToggle_MouseEnter" Placement="Left" HorizontalOffset="280" VerticalOffset="29">
<Border BorderBrush="DarkGray" BorderThickness="1,0,1,1">
<Grid Width="280" Background="#FF646769" Height="91">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ColorPicker:ColorSelectionBox x:Name="UI_ColorPicker_ColorSelectionBox" VerticalAlignment="Center" Margin="10,0" Width="20" Height="20"/>
<Grid Height="23" VerticalAlignment="Top" Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="10"/>
</Grid.ColumnDefinitions>
<TextBlock FontSize="16" Foreground="White" Margin="10,0,10,0" Text="Name"/>
<TextBox Name="UI_TxtBox_ProjectName" Grid.Column="1"/>
</Grid>
<Grid Height="23" Margin="0,30,0,0" VerticalAlignment="Top" Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="10"/>
</Grid.ColumnDefinitions>
<TextBlock FontSize="16" Foreground="White" Margin="10,0,10,0" Text="Path"/>
<TextBox Name="UI_TxtBox_ProjectPath" Grid.Column="1"/>
<Button x:Name="UI_Btn_FolderBrowse" Click="UI_Btn_FolderBrowse_Click" Grid.Column="2">Browse</Button>
</Grid>
<Button Name="UI_Btn_AddProject" Click="UI_Btn_AddProject_Click" HorizontalAlignment="Right" Margin="0,0,14,10" VerticalAlignment="Bottom" Width="50" Content="Add" Grid.Column="1"/>
</Grid>
</Border>
</Popup>
</Grid>
</Border>
<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
<StackPanel Name="projectPanel">
<!-- Dynamic content is filled here -->
</StackPanel>
</ScrollViewer>
</Grid>
</Grid>
</UserControl>