Three explicit buttons: Connect / Go Live / End Stream, shown per state
This commit is contained in:
+10
-3
@@ -91,10 +91,17 @@
|
||||
Width="400" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
<!-- Primary action: single button, adapts to state -->
|
||||
<!-- Primary actions: one relevant button per state -->
|
||||
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<Button Content="{Binding PrimaryButtonText}" Style="{StaticResource YtButton}"
|
||||
Command="{Binding PrimaryCommand}"/>
|
||||
<Button Content="Connect" Style="{StaticResource YtButton}"
|
||||
Command="{Binding ConnectCommand}"
|
||||
Visibility="{Binding ShowConnect, Converter={StaticResource BoolToVis}}"/>
|
||||
<Button Content="Go Live" Style="{StaticResource YtButton}"
|
||||
Command="{Binding GoLiveCommand}"
|
||||
Visibility="{Binding ShowGoLive, Converter={StaticResource BoolToVis}}"/>
|
||||
<Button Content="End Stream" Style="{StaticResource YtButton}"
|
||||
Background="#333" Command="{Binding EndStreamCommand}"
|
||||
Visibility="{Binding IsLive, Converter={StaticResource BoolToVis}}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
Reference in New Issue
Block a user