|
|
|
|
<Window x:Class="ToDoApp.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:ToDoApp" xmlns:subcontrol="clr-namespace:ToDoApp.SubControl"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Title="To Do" Height="800" Width="1000" WindowStartupLocation="CenterScreen"
|
|
|
|
|
Icon="./Resource/ToDo.png">
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="200"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="250"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Column="0" Margin="5" Background="WhiteSmoke">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="70"/>
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Vertical" Margin="15">
|
|
|
|
|
<TextBlock x:Name="tbName" Text="Name" HorizontalAlignment="Left"
|
|
|
|
|
FontSize="15" FontWeight="Bold"/>
|
|
|
|
|
<TextBlock x:Name="tbEmail" Text="mail@mail.com" HorizontalAlignment="Left"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<subcontrol:PlaceholderTextBox x:Name="tbxSearch" Grid.Row="1" VerticalAlignment="Center" TPlaceholder="검색" THeight="20"
|
|
|
|
|
KeyDown="tbxSearch_KeyDown"/>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Vertical">
|
|
|
|
|
<Button x:Name="btnToday" Content="☀️ 오늘 할 일" Height="30" Margin="5" Background="Transparent" BorderThickness="0" HorizontalContentAlignment="Left"
|
|
|
|
|
Click="btnToday_Click"/>
|
|
|
|
|
<Button x:Name="btnPlanned" Content="📅 계획된 일정" Height="30" Margin="5" Background="Transparent" BorderThickness="0" HorizontalContentAlignment="Left"
|
|
|
|
|
Click="btnPlanned_Click"/>
|
|
|
|
|
<Button x:Name="btnFinished" Content="✅ 완료됨" Height="30" Margin="5" Background="Transparent" BorderThickness="0" HorizontalContentAlignment="Left"
|
|
|
|
|
Click="btnCompleted_Click"/>
|
|
|
|
|
<Label Background="Gray" Height="1"/>
|
|
|
|
|
<Button x:Name="btnToDo" Content="💡 To Do" Height="30" Margin="5" Background="Transparent" BorderThickness="0" HorizontalContentAlignment="Left"
|
|
|
|
|
Click="btnToDo_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Column="1" Margin="20">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="30"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<TextBlock x:Name="tbTitle" Grid.Row="0" VerticalAlignment="Center" Text="Title"
|
|
|
|
|
FontSize="25" FontWeight="Bold"/>
|
|
|
|
|
<ListBox x:Name="lbxContent" Grid.Row="1" HorizontalContentAlignment="Left" BorderThickness="0" Margin="0 10 0 0"
|
|
|
|
|
SelectionChanged="lbxContent_SelectionChanged"/>
|
|
|
|
|
|
|
|
|
|
<subcontrol:PlaceholderTextBox x:Name="tbxNewItemName" Grid.Row="2" VerticalAlignment="Center" TPlaceholder="작업 추가" THeight="20"
|
|
|
|
|
KeyDown="tbxNewItem_KeyDown"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Column="2" Margin="5" Background="WhiteSmoke">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="50"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Vertical" Margin="5">
|
|
|
|
|
<subcontrol:PlaceholderTextBox x:Name="tbxItemName" VerticalAlignment="Center" TPlaceholder="할 일" TForeground="Black" THeight="40"
|
|
|
|
|
TFontWeight="Bold" TFontSize="20"/>
|
|
|
|
|
<TextBlock x:Name="tbItemCreatedAt" Foreground="Gray" TextAlignment="Right"/>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 5 0 0">
|
|
|
|
|
<CheckBox x:Name="chkItemToday" Background="Transparent"/>
|
|
|
|
|
<TextBlock Text="나의 하루에 추가" Margin="10 0 0 0" Background="Transparent"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<DatePicker x:Name="dpItemDueDate" Margin="0 5 0 0" Background="Transparent"/>
|
|
|
|
|
<subcontrol:PlaceholderTextBox x:Name="tbxItemDescription" Margin="0 5 0 0" TPlaceholder="메모" TForeground="Black" THeight="200" TVerticalAlignment="Top"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="50"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
<Button x:Name="btnUpdate" Grid.Column="0" Content="업데이트" Background="Transparent" BorderThickness="0" Margin="3"
|
|
|
|
|
Click="btnUpdate_Click"/>
|
|
|
|
|
<Button x:Name="btnDelete" Grid.Column="1" Content="🗑️" Background="Transparent" BorderThickness="0" Margin="3"
|
|
|
|
|
Click="btnDelete_Click"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</Window>
|