|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
5 | 5 | xmlns:atc="https://github.com/atc-net/atc-wpf/tree/main/schemas"
|
6 |
| - xmlns:atcTranslation="https://github.com/atc-net/atc-wpf/tree/main/schemas/translations" |
| 6 | + xmlns:atcValueConverters="https://github.com/atc-net/atc-wpf/tree/main/schemas/value-converters" |
7 | 7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
8 | 8 | xmlns:dialogs="clr-namespace:Atc.Wpf.Theming.Themes.Dialogs;assembly=Atc.Wpf.Theming"
|
9 | 9 | xmlns:local="clr-namespace:Atc.Wpf.Controls.Dialogs"
|
10 | 10 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
11 | 11 | xmlns:settingsControls="clr-namespace:Atc.Wpf.Controls.SettingsControls"
|
12 | 12 | x:Name="DialogApplicationSettings"
|
13 |
| - Title="{atcTranslation:Resx ResxName=Atc.Wpf.Controls.Resources.Miscellaneous, |
14 |
| - Key=ApplicationSettings}" |
| 13 | + Title="{Binding Path=TitleBarText}" |
15 | 14 | Width="550"
|
16 |
| - Height="300" |
| 15 | + Height="360" |
17 | 16 | d:DataContext="{d:DesignInstance Type=local:BasicApplicationSettingsDialogBoxViewModel}"
|
18 | 17 | ShowCloseButton="False"
|
19 | 18 | ShowMaxRestoreButton="False"
|
|
22 | 21 | WindowStyle="SingleBorderWindow"
|
23 | 22 | mc:Ignorable="d">
|
24 | 23 |
|
| 24 | + <dialogs:NiceDialogBox.Resources> |
| 25 | + <atcValueConverters:ObjectNotNullToVisibilityVisibleValueConverter x:Key="ObjectNotNullToVisibilityVisibleValueConverter" /> |
| 26 | + </dialogs:NiceDialogBox.Resources> |
| 27 | + |
25 | 28 | <DockPanel>
|
26 | 29 |
|
27 | 30 | <Border
|
| 31 | + x:Name="ContentTop" |
| 32 | + Height="50" |
| 33 | + Background="{DynamicResource AtcApps.Brushes.ThemeBackground1}" |
| 34 | + BorderBrush="{DynamicResource AtcApps.Brushes.Accent}" |
| 35 | + BorderThickness="0,0,0,1" |
| 36 | + DockPanel.Dock="Top" |
| 37 | + Visibility="{Binding Path=HeaderControl, Converter={StaticResource ObjectNotNullToVisibilityVisibleValueConverter}}"> |
| 38 | + <ContentControl Content="{Binding Path=HeaderControl}" /> |
| 39 | + </Border> |
| 40 | + |
| 41 | + <Border |
| 42 | + x:Name="ContentButton" |
28 | 43 | Height="50"
|
29 | 44 | Background="{DynamicResource AtcApps.Brushes.ThemeBackground1}"
|
30 | 45 | BorderBrush="{DynamicResource AtcApps.Brushes.Accent}"
|
|
55 | 70 | </atc:UniformSpacingPanel>
|
56 | 71 | </Border>
|
57 | 72 |
|
58 |
| - <settingsControls:BasicApplicationSettingsView Margin="20" DataContext="{Binding Path=ApplicationSettings}" /> |
| 73 | + <ScrollViewer x:Name="ContentCenter" Padding="20"> |
| 74 | + <settingsControls:BasicApplicationSettingsView |
| 75 | + Margin="20" |
| 76 | + VerticalAlignment="Center" |
| 77 | + DataContext="{Binding Path=ApplicationSettings}" /> |
| 78 | + </ScrollViewer> |
59 | 79 |
|
60 | 80 | </DockPanel>
|
61 | 81 |
|
|
0 commit comments