Cleanup AXAML and hide sticks when only one is present on guest controller.

This commit is contained in:
MutantAura 2024-05-30 18:45:57 +01:00
parent 00d27597ff
commit 979d387f5d

View file

@ -318,7 +318,7 @@
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"> VerticalAlignment="Stretch">
<!-- Controller Picture --> <!-- Controller Picture -->
<Border <Border
BorderBrush="{DynamicResource ThemeControlBorderColor}" BorderBrush="{DynamicResource ThemeControlBorderColor}"
BorderThickness="1" BorderThickness="1"
CornerRadius="5" CornerRadius="5"
@ -334,7 +334,8 @@
BorderThickness="1" BorderThickness="1"
CornerRadius="5" CornerRadius="5"
Height="{Binding UiStickBorderSize}" Height="{Binding UiStickBorderSize}"
Width="{Binding UiStickBorderSize}"> Width="{Binding UiStickBorderSize}"
IsVisible="{Binding IsLeft}">
<Canvas <Canvas
Background="{DynamicResource ThemeBackgroundColor}" Background="{DynamicResource ThemeBackgroundColor}"
Height="{Binding UiCanvasSize}" Height="{Binding UiCanvasSize}"
@ -348,9 +349,7 @@
Stroke="Black" Stroke="Black"
StrokeThickness="1" StrokeThickness="1"
Width="{Binding UiCanvasSize}" Width="{Binding UiCanvasSize}"
Height="{Binding UiCanvasSize}" Height="{Binding UiCanvasSize}"/>
Canvas.Bottom="2"
Canvas.Left="2" />
<Ellipse <Ellipse
HorizontalAlignment="Center" HorizontalAlignment="Center"
Fill="Gray" Fill="Gray"
@ -366,12 +365,13 @@
Canvas.Left="{Binding UiStickLeftX}" /> Canvas.Left="{Binding UiStickLeftX}" />
</Canvas> </Canvas>
</Border> </Border>
<Border <Border
BorderBrush="{DynamicResource ThemeControlBorderColor}" BorderBrush="{DynamicResource ThemeControlBorderColor}"
BorderThickness="1" BorderThickness="1"
CornerRadius="5" CornerRadius="5"
Height="{Binding UiStickBorderSize}" Height="{Binding UiStickBorderSize}"
Width="{Binding UiStickBorderSize}"> Width="{Binding UiStickBorderSize}"
IsVisible="{Binding IsRight}">
<Canvas <Canvas
Background="{DynamicResource ThemeBackgroundColor}" Background="{DynamicResource ThemeBackgroundColor}"
Height="{Binding UiCanvasSize}" Height="{Binding UiCanvasSize}"
@ -385,9 +385,7 @@
Stroke="Black" Stroke="Black"
StrokeThickness="1" StrokeThickness="1"
Width="{Binding UiCanvasSize}" Width="{Binding UiCanvasSize}"
Height="{Binding UiCanvasSize}" Height="{Binding UiCanvasSize}"/>
Canvas.Bottom="2"
Canvas.Left="2" />
<Ellipse <Ellipse
HorizontalAlignment="Center" HorizontalAlignment="Center"
Fill="Gray" Fill="Gray"