|
1 | | -<ui:Page |
| 1 | +<ui:Page |
2 | 2 | x:Class="iNKORE.UI.WPF.Modern.Gallery.Pages.Controls.Windows.AcrylicPage" |
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
24 | 24 | </ResourceDictionary> |
25 | 25 | </Page.Resources> |
26 | 26 | <StackPanel> |
27 | | - <TextBlock> |
28 | | - Acrylic Brush might fall back to SolidColorbrush in certain scenarios. |
29 | | - If you can't see the Acrylic effect, please refer to<Hyperlink NavigateUri="https://docs.microsoft.com/windows/apps/design/style/acrylic#usability-and-adaptability">Acrylic brush adaptability documentation</Hyperlink> |
30 | | - .</TextBlock> |
| 27 | + <TextBlock TextWrapping="Wrap"> |
| 28 | + Acrylic Brush might fall back to SolidColorBrush in certain scenarios. |
| 29 | + If you can't see the Acrylic effect, please refer to |
| 30 | + <Hyperlink NavigateUri="https://learn.microsoft.com/windows/apps/design/style/acrylic#usability-and-adaptability" |
| 31 | + RequestNavigate="Hyperlink_RequestNavigate"> |
| 32 | + Acrylic brush adaptability documentation |
| 33 | + </Hyperlink>. |
| 34 | + Acrylic Brush uses in-app acrylic. See |
| 35 | + <Hyperlink Click="SystemBackdropLink_Click"> |
| 36 | + SystemBackdrops (Mica/Acrylic) |
| 37 | + </Hyperlink> |
| 38 | + for background acrylic. |
| 39 | + </TextBlock> |
31 | 40 | <local:ControlExample x:Name="Example1" HeaderText="Default in-app acrylic brush."> |
32 | 41 | <local:ControlExample.Example> |
33 | 42 | <Grid |
|
101 | 110 | </local:ControlExample.Example> |
102 | 111 | <local:ControlExample.Options> |
103 | 112 | <StackPanel> |
104 | | - <TextBlock Margin="0,0,0,12" Text="Tint Opacity :" /> |
105 | 113 | <Slider |
106 | 114 | x:Name="OpacitySliderInApp" |
| 115 | + ui:ControlHelper.Header="Tint Opacity" |
107 | 116 | Width="200" |
108 | 117 | HorizontalAlignment="Left" |
109 | 118 | AutomationProperties.Name="tint opacity" |
|
159 | 168 | Margin="12" |
160 | 169 | Target="{Binding ElementName=Acrylic4Grid}" |
161 | 170 | TintColor="SkyBlue" |
162 | | - TintOpacity="0.8" /> |
| 171 | + TintOpacity="0.8" |
| 172 | + Amount="80" /> |
163 | 173 | </Grid> |
164 | 174 | </local:ControlExample.Example> |
165 | 175 | <local:ControlExample.Options> |
166 | 176 | <StackPanel> |
167 | | - <TextBlock Margin="0,0,0,12" Text="Tint Opacity :" /> |
168 | 177 | <Slider |
169 | 178 | x:Name="OpacitySliderLumin" |
| 179 | + ui:ControlHelper.Header="Tint Opacity" |
170 | 180 | Width="200" |
171 | 181 | HorizontalAlignment="Left" |
172 | 182 | AutomationProperties.Name="tint opacity" |
173 | 183 | Maximum="1" |
174 | 184 | Minimum="0" |
175 | 185 | SmallChange="0.001" |
176 | 186 | TickFrequency="0.001" |
177 | | - Value="{Binding TintOpacity, ElementName=CustomAcrylicShapeLumin, Mode=TwoWay}" /> |
178 | | - <TextBlock Margin="0,0,0,12" Text="Tint Luminosity Opacity :" /> |
179 | | - <ui:NumberBox |
| 187 | + Value="{Binding TintOpacity, ElementName=CustomAcrylicShapeLumin, Mode=TwoWay}" |
| 188 | + ValueChanged="OpacitySliderLumin_ValueChanged" /> |
| 189 | + <Slider |
180 | 190 | x:Name="LuminositySlider" |
| 191 | + ui:ControlHelper.Header="Tint Luminosity Opacity" |
181 | 192 | Width="200" |
182 | 193 | HorizontalAlignment="Left" |
183 | 194 | AutomationProperties.Name="tint luminosity" |
| 195 | + Maximum="100" |
184 | 196 | Minimum="0" |
185 | | - SpinButtonPlacementMode="Inline" |
186 | | - Value="{Binding Amount, ElementName=CustomAcrylicShapeLumin, Mode=TwoWay}" /> |
| 197 | + SmallChange="0.001" |
| 198 | + TickFrequency="0.001" |
| 199 | + Value="{Binding Amount, ElementName=CustomAcrylicShapeLumin, Mode=TwoWay}" |
| 200 | + ValueChanged="LuminositySlider_ValueChanged" /> |
187 | 201 | </StackPanel> |
188 | 202 | </local:ControlExample.Options> |
189 | 203 | </local:ControlExample> |
|
0 commit comments