|
6 | 6 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
7 | 7 | xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" |
8 | 8 | xmlns:vio="http://schemas.lepo.co/wpfui/2022/xaml/violeta" |
| 9 | + xmlns:hotfix="clr-namespace:Wpf.Ui.Violeta.Hotfix;assembly=Wpf.Ui.Violeta" |
9 | 10 | xmlns:lang="clr-namespace:Wpf.Ui.Violeta.Gallery.Globalization" |
10 | 11 | Title="{I18N {x:Static lang:LangKeys.Gallery_Page_Slider}}" |
11 | 12 | d:Background="#1C1C1C" |
|
178 | 179 | </Grid> |
179 | 180 | </StackPanel> |
180 | 181 | </Border> |
| 182 | + |
| 183 | + <Border |
| 184 | + Margin="0,0,0,16" |
| 185 | + Padding="20" |
| 186 | + Background="{DynamicResource ControlFillColorSecondaryBrush}" |
| 187 | + BorderBrush="{DynamicResource CardStrokeColorDefaultBrush}" |
| 188 | + BorderThickness="1" |
| 189 | + CornerRadius="10"> |
| 190 | + <StackPanel> |
| 191 | + <TextBlock |
| 192 | + Margin="0,0,0,4" |
| 193 | + FontSize="14" |
| 194 | + FontWeight="SemiBold" |
| 195 | + Text="{I18N {x:Static lang:LangKeys.Sample_5f1a3c8d}}" /> |
| 196 | + <TextBlock |
| 197 | + Margin="0,0,0,12" |
| 198 | + Foreground="{DynamicResource TextFillColorSecondaryBrush}" |
| 199 | + Text="{I18N {x:Static lang:LangKeys.Sample_b9d2e4a0}}" |
| 200 | + TextWrapping="Wrap" /> |
| 201 | + <Grid> |
| 202 | + <Grid.ColumnDefinitions> |
| 203 | + <ColumnDefinition Width="*" /> |
| 204 | + <ColumnDefinition Width="Auto" /> |
| 205 | + </Grid.ColumnDefinitions> |
| 206 | + <Slider |
| 207 | + x:Name="PrefixedSlider" |
| 208 | + Width="200" |
| 209 | + HorizontalAlignment="Left" |
| 210 | + VerticalAlignment="Center" |
| 211 | + AutoToolTipPlacement="TopLeft" |
| 212 | + Maximum="100" |
| 213 | + Minimum="0" |
| 214 | + hotfix:SliderAutoToolTipHelper.Prefix="Volume: " |
| 215 | + hotfix:SliderAutoToolTipHelper.Suffix=" %" |
| 216 | + Value="35" /> |
| 217 | + <StackPanel Grid.Column="1" Margin="16,0,0,0" VerticalAlignment="Center"> |
| 218 | + <TextBlock Foreground="{DynamicResource TextFillColorTertiaryBrush}" Text="{I18N {x:Static lang:LangKeys.Sample_b1282d58a4}}" /> |
| 219 | + <TextBlock Text="{Binding Value, ElementName=PrefixedSlider}" /> |
| 220 | + </StackPanel> |
| 221 | + </Grid> |
| 222 | + </StackPanel> |
| 223 | + </Border> |
181 | 224 | </StackPanel> |
182 | 225 | </ScrollViewer> |
183 | 226 | </vio:Page> |
0 commit comments