mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-16 13:22:40 +00:00
Add a LinearVolume wrapper for mediaElement.Volume (#834)
Co-authored-by: Frank Becker <frank.becker@thoughtexchange.com>
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
<Button.Style>
|
||||
<Style TargetType="Button" BasedOn="{StaticResource ControlButtonStyle}">
|
||||
<Setter Property="Content"
|
||||
Value="{Binding ElementName=mediaElement, Path=Volume, Converter={StaticResource VolumeToIconConverter}}" />
|
||||
Value="{Binding ElementName=viewerPanel, Path=LinearVolume, Converter={StaticResource VolumeToIconConverter}}" />
|
||||
</Style>
|
||||
</Button.Style>
|
||||
</Button>
|
||||
@@ -198,7 +198,7 @@
|
||||
<Grid Height="32" Width="130" HorizontalAlignment="Right" VerticalAlignment="Bottom"
|
||||
Background="{DynamicResource CaptionButtonHoverBackground}" Margin="0,0,0,32">
|
||||
<Slider Style="{StaticResource CustomSliderStyle}" Width="110" Maximum="1"
|
||||
Value="{Binding ElementName=mediaElement, Path=Volume}" />
|
||||
Value="{Binding ElementName=viewerPanel, Path=LinearVolume}" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
Reference in New Issue
Block a user