|
13 | 13 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
14 | 14 | xmlns:muxc="using:Microsoft.UI.Xaml.Controls" |
15 | 15 | x:Name="ProHomeInstance" |
16 | | - NavigationCacheMode="Disabled" |
17 | 16 | Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" |
18 | 17 | Loaded="Page_Loaded" |
| 18 | + NavigationCacheMode="Disabled" |
19 | 19 | mc:Ignorable="d"> |
20 | 20 | <Page.Resources> |
21 | 21 | <ResourceDictionary> |
|
82 | 82 | </Setter.Value> |
83 | 83 | </Setter> |
84 | 84 | </Style> |
85 | | - |
| 85 | + |
86 | 86 | </ResourceDictionary> |
87 | 87 | </Page.Resources> |
88 | 88 |
|
|
92 | 92 | <RowDefinition Height="*" /> |
93 | 93 | </Grid.RowDefinitions> |
94 | 94 |
|
95 | | - <StackPanel Grid.Row="0" Orientation="Vertical"> |
96 | | - <controls:RibbonArea |
97 | | - x:Name="RibbonArea" |
98 | | - x:FieldModifier="public" |
99 | | - /> |
100 | | - <Windows10version1903:Grid> |
101 | | - <Grid.Resources> |
102 | | - <Windows10version1903:ThemeShadow x:Name="themeShadow" /> |
103 | | - </Grid.Resources> |
104 | | - <Grid |
105 | | - x:Name="ShadowReceiver" |
106 | | - Height="8" |
107 | | - Background="Transparent" /> |
108 | | - <Grid |
109 | | - x:Name="ShadowCaster" |
110 | | - Height="4" |
111 | | - VerticalAlignment="Top" |
112 | | - Windows10version1903:Shadow="{x:Bind themeShadow}" |
113 | | - Background="{ThemeResource RibbonBackgroundColor}" |
114 | | - Canvas.ZIndex="2" |
115 | | - Translation="0,0,4" /> |
116 | | - </Windows10version1903:Grid> |
117 | | - </StackPanel> |
| 95 | + <Custom:DropShadowPanel |
| 96 | + Height="Auto" |
| 97 | + HorizontalAlignment="Stretch" |
| 98 | + HorizontalContentAlignment="Stretch" |
| 99 | + Canvas.ZIndex="100" |
| 100 | + OffsetY="3" |
| 101 | + ShadowOpacity=".1"> |
| 102 | + <controls:RibbonArea x:Name="RibbonArea" x:FieldModifier="public" /> |
| 103 | + </Custom:DropShadowPanel> |
118 | 104 |
|
119 | 105 | <SplitView |
120 | 106 | x:Name="splitView" |
|
128 | 114 | PaneBackground="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
129 | 115 | <SplitView.Pane> |
130 | 116 | <ScrollViewer Margin="0,0,0,0" VerticalScrollBarVisibility="Auto"> |
131 | | - <controls:Sidebar x:FieldModifier="public" x:Name="SidebarControl"/> |
| 117 | + <controls:Sidebar x:Name="SidebarControl" x:FieldModifier="public" /> |
132 | 118 | </ScrollViewer> |
133 | 119 | </SplitView.Pane> |
134 | 120 |
|
|
0 commit comments