-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
161 lines (141 loc) · 5.35 KB
/
MainWindow.xaml
File metadata and controls
161 lines (141 loc) · 5.35 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<Window x:Class="mapApi.MainWindow"
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:mapApi"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="1100">
<Grid>
<Grid.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#4A90E2" Offset="0.0"/>
<GradientStop Color="#5F259F" Offset="0.3"/>
</LinearGradientBrush>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="9*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
<TextBlock Text="북대맵"
FontSize="40"
FontWeight="Bold"
Foreground="White"
HorizontalAlignment="Left"
Margin="10,10,0,0"/>
<Button Content="TIP"
ToolTip="집 구하기 Tip! "
Background="Black"
Click="Button_Click_1"
Margin="20"
Foreground="Yellow">
<Button.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius" Value="100"/>
</Style>
</Button.Resources>
</Button>
</StackPanel>
<!-- 검색 -->
<TextBlock HorizontalAlignment="Right"
VerticalAlignment="Center">
</TextBlock>
<TextBox Name="tbox_query"
VerticalAlignment="Center"
Margin="5,0,5,0"
Background="Gray"
Grid.Column="1"
Grid.ColumnSpan="2"/>
<Button Name="btn_search"
IsDefault="True"
Click="Button_Click"
VerticalAlignment="Center"
Grid.Column="3"
Content="검색"/>
<!-- 검색 결과 -->
<StackPanel Grid.Row="1" Grid.Column="2" Margin="0">
<TextBlock Text="검색 결과" FontWeight="Bold" Margin="0,0,0,5"/>
<ListBox Name="lbox_locale"
SelectionChanged="ListBox_SelectionChanged"
Background="AliceBlue"
Height="200"/>
<Button Content="즐겨찾기 추가"
Name="btn_favorite"
Click="btn_favorite_Click"
Margin="0,5,0,5"
Height="30"/>
<!-- 즐겨찾기 리스트 -->
<TextBlock Text="즐겨찾기" FontWeight="Bold" Margin="0,20,0,5"/>
<ListBox Name="lbox_favorite"
SelectionChanged="lbox_favorite_SelectionChanged"
Background="LightYellow"
Height="200"/>
</StackPanel>
<!-- 지도 -->
<WebBrowser Name="wb"
Source="http://localhost:8000/kakaoMap.html"
Grid.Row="1"
Grid.Column="1"
/>
<StackPanel Grid.Row="1" Grid.Column="0" VerticalAlignment="Top">
<!-- 주변 시설 -->
<GroupBox Header="주변 시설">
<ListBox x:Name="Category" SelectionChanged="Category_SelectionChanged">
<ListBoxItem Tag="CS2">편의점</ListBoxItem>
<ListBoxItem Tag="PM9">약국</ListBoxItem>
<ListBoxItem Tag="BK9">은행</ListBoxItem>
<ListBoxItem Tag="CT1">PC방</ListBoxItem>
</ListBox>
</GroupBox>
<!-- 구역 선택 -->
<GroupBox Header="구역 선택" Margin="0,10,0,0">
<StackPanel>
<RadioButton Content="사대부고" GroupName="AreaGroup" Click="AreaButton_Click" Tag="사대부고"/>
<RadioButton Content="덕진 광장" GroupName="AreaGroup" Click="AreaButton_Click" Tag="덕진 광장"/>
<RadioButton Content="구정문 카페 거리" GroupName="AreaGroup" Click="AreaButton_Click" Tag="구정문 카페 거리"/>
<RadioButton Content="덕진초" GroupName="AreaGroup" Click="AreaButton_Click" Tag="덕진초"/>
<RadioButton Content="할리스 건물 뒷편" GroupName="AreaGroup" Click="AreaButton_Click" Tag="할리스 건물 뒷편"/>
</StackPanel>
</GroupBox>
<!-- 관광명소 -->
<GroupBox Header="관광명소"
Grid.Row="1"
Grid.Column="2"
VerticalAlignment="Center">
<TreeView x:Name="play">
<TreeViewItem Header="전주 동물원">
<Image Source="/Resources/전주동물원.png"
Width="100"
Height="70"/>
<TreeViewItem Header="운영시간">
<TreeViewItem Header="매일 09:00 - 19:00(3월~10월)* 매표마감 18:00"/>
<TreeViewItem Header="매일 09:00 - 18:00(11월~2월) * 매표마감 17:00"/>
</TreeViewItem>
<TreeViewItem Header="입장료">
<TreeViewItem Header="성인:3000원"/>
<TreeViewItem Header="아동:1000원"/>
<TreeViewItem Header="청소년, 군인:2000원"/>
</TreeViewItem>
</TreeViewItem>
<TreeViewItem Header="전주 한옥마을">
<Image Source="/Resources/전주한옥마을.gif"
Width="100"
Height="70"/>
<TreeViewItem Header="운영시간">
<TreeViewItem Header="0:00-24:00"/>
</TreeViewItem>
<TreeViewItem Header="입장료">
<TreeViewItem Header="무료"/>
</TreeViewItem>
</TreeViewItem>
</TreeView>
</GroupBox>
</StackPanel>
</Grid>
</Window>