Skip to content

Commit

Permalink
Disable Click track slider on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
JunielKatarn committed Jul 23, 2019
1 parent 6c3810a commit e5bc989
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Forms/Views/Mixer.xaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Jammit.Forms.Views"
x:Class="Jammit.Forms.Views.Mixer">

<StackLayout x:Name="ControlsLayout">
<local:TrackSlider Player="{Binding Player}" Track="{Binding Media.BackingTrack}" />
<local:TrackSlider Player="{Binding Player}" Track="{Binding Media.ClickTrack}" IsEnabled="false" />
<local:TrackSlider Player="{Binding Player}" Track="{Binding Media.ClickTrack}" IsEnabled="false">
<local:TrackSlider.IsVisible>
<OnPlatform x:TypeArguments="x:Boolean">
<On Platform="Android" Value="true" />
<On Platform="iOS" Value="true" />
<On Platform="macOS" Value="false" />
<On Platform="UWP" Value="true" />
</OnPlatform>
</local:TrackSlider.IsVisible>
</local:TrackSlider>
</StackLayout>

</ContentView>

0 comments on commit e5bc989

Please sign in to comment.