|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | 6 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 7 | + xmlns:Converter="clr-namespace:NCodeParser.Control.Converter" |
7 | 8 | xmlns:ViewModel="clr-namespace:NCodeParser.ViewModel" |
8 | 9 | xmlns:local="clr-namespace:NCodeParser" |
| 10 | + WindowStartupLocation="CenterScreen" |
9 | 11 | mc:Ignorable="d" |
10 | 12 | Title="NCodeParser" |
11 | 13 | Width="1300" |
|
20 | 22 | <Setter Property="HorizontalContentAlignment" Value="Center" /> |
21 | 23 | </Style> |
22 | 24 |
|
| 25 | + <Converter:VisibilityConverter x:Key="VisibleConverter" /> |
| 26 | + |
23 | 27 | <Style x:Key="DataGridCellStyle" |
24 | 28 | TargetType="DataGridCell"> |
25 | 29 | <Setter Property="Template"> |
|
41 | 45 | </i:EventTrigger> |
42 | 46 | </i:Interaction.Triggers> |
43 | 47 |
|
44 | | - <Grid> |
| 48 | + <DockPanel> |
| 49 | + <Menu DockPanel.Dock="Top"> |
| 50 | + <MenuItem Header="File"> |
| 51 | + <MenuItem Header="Exit" /> |
| 52 | + </MenuItem> |
| 53 | + |
| 54 | + <MenuItem Header="Settings" Command="{Binding SettingCommand}" /> |
| 55 | + |
| 56 | + <MenuItem Header="Help"> |
| 57 | + <MenuItem Header="View License" /> |
| 58 | + |
| 59 | + <Separator /> |
| 60 | + |
| 61 | + <MenuItem Header="About NCodeParser" /> |
| 62 | + </MenuItem> |
| 63 | + </Menu> |
| 64 | + |
45 | 65 | <Grid> |
46 | 66 | <Grid.ColumnDefinitions> |
47 | 67 | <ColumnDefinition Width="0.6*" /> |
|
176 | 196 | <TextBlock Grid.Row="0" Margin="2,0,0,4" Text="소설 개요" /> |
177 | 197 |
|
178 | 198 | <Border Grid.Row="1" BorderBrush="LightGray" BorderThickness="1"> |
179 | | - <ScrollViewer> |
180 | | - <TextBox IsReadOnly="True" TextWrapping="Wrap" Text="{Binding SelectedNovel.DescWithPrologue, Mode=OneWay}" /> |
181 | | - </ScrollViewer> |
| 199 | + <Grid> |
| 200 | + <ScrollViewer> |
| 201 | + <TextBox IsReadOnly="True" TextWrapping="Wrap" Text="{Binding SelectedNovel.DescWithPrologue, Mode=OneWay}" /> |
| 202 | + </ScrollViewer> |
| 203 | + |
| 204 | + <Grid Background="#11000000" |
| 205 | + Visibility="{Binding SelectedNovel.ShowProgress, Converter={StaticResource VisibleConverter}}"> |
| 206 | + <ProgressBar HorizontalAlignment="Center" |
| 207 | + VerticalAlignment="Center" |
| 208 | + IsIndeterminate="True" |
| 209 | + Width="250" |
| 210 | + Height="20" /> |
| 211 | + </Grid> |
| 212 | + </Grid> |
182 | 213 | </Border> |
183 | 214 | </Grid> |
184 | 215 | </Grid> |
185 | 216 | </Grid> |
186 | | - </Grid> |
| 217 | + </DockPanel> |
187 | 218 | </Window> |
0 commit comments