|
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | 6 | xmlns:hc="https://handyorg.github.io/handycontrol" |
7 | | - xmlns:userControl="clr-namespace:HandyControlDemo.UserControl" |
8 | | - xmlns:data="clr-namespace:HandyControlDemo.Data" |
9 | 7 | mc:Ignorable="d" |
10 | 8 | Title="HandyControlDemo" |
11 | 9 | ShowTitle="False" |
12 | 10 | Background="{DynamicResource SecondaryRegionBrush}" |
13 | 11 | ResizeMode="CanResizeWithGrip" |
14 | 12 | WindowStartupLocation="CenterScreen" |
15 | | - DataContext="{Binding Main,Source={StaticResource Locator}}" |
16 | | - hc:GlobalShortcut.Host="True" |
17 | | - hc:Dialog.Token="{x:Static data:MessageToken.MainWindow}" |
18 | | - hc:WindowAttach.IgnoreAltF4="True" |
19 | 13 | d:DesignHeight="800" |
20 | 14 | d:DesignWidth="1400" |
21 | 15 | Icon="/HandyControlDemo;component/Resources/Img/icon.ico"> |
22 | | - <hc:GlobalShortcut.KeyBindings> |
23 | | - <KeyBinding Modifiers="Control+Alt" Key="I" Command="{Binding Main.GlobalShortcutInfoCmd, Source={StaticResource Locator}}"/> |
24 | | - <KeyBinding Modifiers="Control+Alt" Key="E" Command="{Binding Main.GlobalShortcutWarningCmd, Source={StaticResource Locator}}"/> |
25 | | - </hc:GlobalShortcut.KeyBindings> |
26 | | - <hc:Window.NonClientAreaContent> |
27 | | - <userControl:NoUserContent/> |
28 | | - </hc:Window.NonClientAreaContent> |
29 | | - <Border BorderThickness="0,1,0,0" BorderBrush="{DynamicResource BorderBrush}" Background="{StaticResource CloudDrawingBrush}"> |
30 | | - <Grid> |
31 | | - <Grid.ColumnDefinitions> |
32 | | - <ColumnDefinition Width="240" MinWidth="240" MaxWidth="400"/> |
33 | | - <ColumnDefinition MinWidth="200"/> |
34 | | - </Grid.ColumnDefinitions> |
35 | | - <userControl:LeftMainContent/> |
36 | | - <userControl:MainContent Grid.Column="1" d:IsHidden="true"/> |
37 | | - <GridSplitter Margin="0,26,10,26" Grid.Column="0" HorizontalAlignment="Right" Width="4" Background="Transparent"/> |
38 | | - <hc:ScrollViewer Grid.Column="1" VerticalScrollBarVisibility="Hidden" HorizontalAlignment="Right" IsInertiaEnabled="True" IsPenetrating="True"> |
39 | | - <StackPanel hc:Growl.GrowlParent="True" VerticalAlignment="Top" Margin="0,10,10,10"/> |
40 | | - </hc:ScrollViewer> |
41 | | - </Grid> |
42 | | - </Border> |
| 16 | + <ContentControl Name="ControlMain"/> |
43 | 17 | </hc:Window> |
0 commit comments