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

@ -334,7 +334,8 @@
BorderThickness="1"
CornerRadius="5"
Height="{Binding UiStickBorderSize}"
Width="{Binding UiStickBorderSize}">
Width="{Binding UiStickBorderSize}"
IsVisible="{Binding IsLeft}">
<Canvas
Background="{DynamicResource ThemeBackgroundColor}"
Height="{Binding UiCanvasSize}"
@ -348,9 +349,7 @@
Stroke="Black"
StrokeThickness="1"
Width="{Binding UiCanvasSize}"
Height="{Binding UiCanvasSize}"
Canvas.Bottom="2"
Canvas.Left="2" />
Height="{Binding UiCanvasSize}"/>
<Ellipse
HorizontalAlignment="Center"
Fill="Gray"
@ -371,7 +370,8 @@
BorderThickness="1"
CornerRadius="5"
Height="{Binding UiStickBorderSize}"
Width="{Binding UiStickBorderSize}">
Width="{Binding UiStickBorderSize}"
IsVisible="{Binding IsRight}">
<Canvas
Background="{DynamicResource ThemeBackgroundColor}"
Height="{Binding UiCanvasSize}"
@ -385,9 +385,7 @@
Stroke="Black"
StrokeThickness="1"
Width="{Binding UiCanvasSize}"
Height="{Binding UiCanvasSize}"
Canvas.Bottom="2"
Canvas.Left="2" />
Height="{Binding UiCanvasSize}"/>
<Ellipse
HorizontalAlignment="Center"
Fill="Gray"