ControllerSettingsWindow.axaml 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169
  1. <UserControl
  2. x:Class="Ryujinx.Ava.UI.Windows.ControllerSettingsWindow"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
  6. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  10. xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers"
  11. HorizontalAlignment="Stretch"
  12. VerticalAlignment="Stretch"
  13. d:DesignHeight="800"
  14. d:DesignWidth="800"
  15. x:CompileBindings="False"
  16. mc:Ignorable="d"
  17. Focusable="True">
  18. <Design.DataContext>
  19. <viewModels:ControllerSettingsViewModel />
  20. </Design.DataContext>
  21. <UserControl.Resources>
  22. <helpers:KeyValueConverter x:Key="Key" />
  23. </UserControl.Resources>
  24. <StackPanel
  25. HorizontalAlignment="Stretch"
  26. VerticalAlignment="Stretch"
  27. Orientation="Vertical">
  28. <Grid Margin="2,2,2,5" HorizontalAlignment="Stretch">
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="Auto" />
  31. <ColumnDefinition Width="*" />
  32. <ColumnDefinition Width="0.5*" />
  33. <ColumnDefinition Width="Auto" />
  34. </Grid.ColumnDefinitions>
  35. <Border
  36. Grid.Column="0"
  37. Margin="0,0,2,0"
  38. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  39. BorderThickness="1"
  40. Padding="2,0">
  41. <StackPanel
  42. Margin="2"
  43. HorizontalAlignment="Center"
  44. VerticalAlignment="Center"
  45. Orientation="Vertical">
  46. <TextBlock
  47. Margin="0,0,0,4"
  48. HorizontalAlignment="Center"
  49. Text="{locale:Locale ControllerSettingsPlayer}" />
  50. <ComboBox
  51. Name="PlayerIndexBox"
  52. Width="150"
  53. SelectionChanged="PlayerIndexBox_OnSelectionChanged"
  54. Items="{Binding PlayerIndexes}"
  55. SelectedIndex="{Binding PlayerId}">
  56. <ComboBox.ItemTemplate>
  57. <DataTemplate>
  58. <TextBlock Text="{Binding Name}" />
  59. </DataTemplate>
  60. </ComboBox.ItemTemplate>
  61. </ComboBox>
  62. </StackPanel>
  63. </Border>
  64. <!-- Main Controller Settings -->
  65. <Border
  66. Grid.Column="1"
  67. Margin="0,0,2,0"
  68. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  69. BorderThickness="1"
  70. Padding="2,0">
  71. <StackPanel
  72. Margin="2"
  73. HorizontalAlignment="Stretch"
  74. VerticalAlignment="Center"
  75. Orientation="Vertical">
  76. <TextBlock
  77. Margin="0,0,0,5"
  78. HorizontalAlignment="Center"
  79. Text="{locale:Locale ControllerSettingsInputDevice}" />
  80. <Grid HorizontalAlignment="Stretch">
  81. <Grid.ColumnDefinitions>
  82. <ColumnDefinition />
  83. <ColumnDefinition Width="Auto" />
  84. </Grid.ColumnDefinitions>
  85. <ComboBox
  86. Name="DeviceBox"
  87. HorizontalAlignment="Stretch"
  88. Items="{Binding DeviceList}"
  89. SelectedIndex="{Binding Device}" />
  90. <Button
  91. Grid.Column="1"
  92. MinWidth="0"
  93. Margin="5,0,0,0"
  94. VerticalAlignment="Center"
  95. Command="{Binding LoadDevices}">
  96. <ui:SymbolIcon
  97. Symbol="Refresh"
  98. FontSize="15"
  99. Height="20" />
  100. </Button>
  101. </Grid>
  102. </StackPanel>
  103. </Border>
  104. <Border
  105. Grid.Column="2"
  106. Margin="0,0,2,0"
  107. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  108. BorderThickness="1"
  109. Padding="2,0">
  110. <Grid
  111. Margin="2"
  112. HorizontalAlignment="Stretch"
  113. VerticalAlignment="Center">
  114. <Grid.RowDefinitions>
  115. <RowDefinition />
  116. <RowDefinition />
  117. </Grid.RowDefinitions>
  118. <TextBlock
  119. Margin="0,0,0,4"
  120. HorizontalAlignment="Center"
  121. Text="{locale:Locale ControllerSettingsControllerType}" />
  122. <ComboBox
  123. Grid.Row="1"
  124. HorizontalAlignment="Stretch"
  125. Items="{Binding Controllers}"
  126. SelectedIndex="{Binding Controller}">
  127. <ComboBox.ItemTemplate>
  128. <DataTemplate>
  129. <TextBlock Text="{Binding Name}" />
  130. </DataTemplate>
  131. </ComboBox.ItemTemplate>
  132. </ComboBox>
  133. </Grid>
  134. </Border>
  135. <Border
  136. Grid.Column="3"
  137. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  138. BorderThickness="1"
  139. Padding="2,0" >
  140. <StackPanel
  141. Margin="2"
  142. HorizontalAlignment="Center"
  143. VerticalAlignment="Center"
  144. Orientation="Vertical">
  145. <TextBlock
  146. Margin="0,0,0,4"
  147. HorizontalAlignment="Center"
  148. Text="{locale:Locale ControllerSettingsProfile}" />
  149. <StackPanel Orientation="Horizontal">
  150. <ui:ComboBox
  151. IsEditable="True"
  152. Name="ProfileBox"
  153. Width="100"
  154. SelectedIndex="0"
  155. Items="{Binding ProfilesList}"
  156. Text="{Binding ProfileName}" />
  157. <Button
  158. MinWidth="0"
  159. Margin="5,0,0,0"
  160. VerticalAlignment="Center"
  161. ToolTip.Tip="{locale:Locale ControllerSettingsLoadProfileToolTip}"
  162. Command="{Binding LoadProfile}">
  163. <ui:SymbolIcon
  164. Symbol="Upload"
  165. FontSize="15"
  166. Height="20" />
  167. </Button>
  168. <Button
  169. MinWidth="0"
  170. Margin="5,0,0,0"
  171. VerticalAlignment="Center"
  172. ToolTip.Tip="{locale:Locale ControllerSettingsSaveProfileToolTip}"
  173. Command="{Binding SaveProfile}">
  174. <ui:SymbolIcon
  175. Symbol="Save"
  176. FontSize="15"
  177. Height="20" />
  178. </Button>
  179. <Button
  180. MinWidth="0"
  181. Margin="5,0,0,0"
  182. VerticalAlignment="Center"
  183. ToolTip.Tip="{locale:Locale ControllerSettingsRemoveProfileToolTip}"
  184. Command="{Binding RemoveProfile}">
  185. <ui:SymbolIcon
  186. Symbol="Delete"
  187. FontSize="15"
  188. Height="20" />
  189. </Button>
  190. </StackPanel>
  191. </StackPanel>
  192. </Border>
  193. </Grid>
  194. <!-- Button / JoyStick Settings -->
  195. <Grid
  196. Name="SettingButtons"
  197. MinHeight="450"
  198. IsVisible="{Binding ShowSettings}">
  199. <Grid.ColumnDefinitions>
  200. <ColumnDefinition Width="Auto" />
  201. <ColumnDefinition Width="*" />
  202. <ColumnDefinition Width="Auto" />
  203. </Grid.ColumnDefinitions>
  204. <!-- Left -->
  205. <Grid
  206. Margin="0,0,10,0"
  207. Grid.Column="0"
  208. VerticalAlignment="Stretch"
  209. DockPanel.Dock="Left">
  210. <Grid.RowDefinitions>
  211. <RowDefinition Height="Auto" />
  212. <RowDefinition Height="Auto" />
  213. <RowDefinition Height="Auto" />
  214. </Grid.RowDefinitions>
  215. <!-- Left Triggers -->
  216. <Border
  217. Grid.Row="0"
  218. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  219. BorderThickness="1"
  220. IsVisible="{Binding IsLeft}">
  221. <Grid Margin="10" HorizontalAlignment="Stretch">
  222. <Grid.ColumnDefinitions>
  223. <ColumnDefinition />
  224. <ColumnDefinition />
  225. </Grid.ColumnDefinitions>
  226. <Grid.RowDefinitions>
  227. <RowDefinition />
  228. <RowDefinition />
  229. </Grid.RowDefinitions>
  230. <StackPanel
  231. Margin="0,0,0,4"
  232. Grid.Column="0"
  233. Grid.Row="0"
  234. Background="{DynamicResource ThemeDarkColor}"
  235. Orientation="Horizontal">
  236. <TextBlock
  237. Width="20"
  238. HorizontalAlignment="Center"
  239. VerticalAlignment="Center"
  240. Text="{locale:Locale ControllerSettingsTriggerZL}"
  241. TextAlignment="Center" />
  242. <ToggleButton
  243. Width="90"
  244. Height="27"
  245. HorizontalAlignment="Stretch">
  246. <TextBlock
  247. Text="{Binding Configuration.ButtonZl, Mode=TwoWay, Converter={StaticResource Key}}"
  248. TextAlignment="Center" />
  249. </ToggleButton>
  250. </StackPanel>
  251. <StackPanel
  252. Grid.Column="0"
  253. Grid.Row="1"
  254. Background="{DynamicResource ThemeDarkColor}"
  255. Orientation="Horizontal">
  256. <TextBlock
  257. Width="20"
  258. HorizontalAlignment="Center"
  259. VerticalAlignment="Center"
  260. Text="{locale:Locale ControllerSettingsTriggerL}"
  261. TextAlignment="Center" />
  262. <ToggleButton
  263. Width="90"
  264. Height="27"
  265. HorizontalAlignment="Stretch">
  266. <TextBlock
  267. Text="{Binding Configuration.ButtonL, Mode=TwoWay, Converter={StaticResource Key}}"
  268. TextAlignment="Center" />
  269. </ToggleButton>
  270. </StackPanel>
  271. <StackPanel
  272. Margin="0,0,0,4"
  273. Grid.Column="1"
  274. Grid.Row="0"
  275. Background="{DynamicResource ThemeDarkColor}"
  276. Orientation="Horizontal">
  277. <TextBlock
  278. Width="20"
  279. HorizontalAlignment="Center"
  280. VerticalAlignment="Center"
  281. Text="{locale:Locale ControllerSettingsButtonMinus}"
  282. TextAlignment="Center" />
  283. <ToggleButton
  284. Width="90"
  285. Height="27"
  286. HorizontalAlignment="Stretch">
  287. <TextBlock
  288. Text="{Binding Configuration.ButtonMinus, Mode=TwoWay, Converter={StaticResource Key}}"
  289. TextAlignment="Center" />
  290. </ToggleButton>
  291. </StackPanel>
  292. </Grid>
  293. </Border>
  294. <!-- Left Joystick -->
  295. <Border
  296. Grid.Row="1"
  297. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  298. BorderThickness="1"
  299. IsVisible="{Binding IsLeft}">
  300. <StackPanel Margin="10" Orientation="Vertical">
  301. <TextBlock
  302. Margin="0,0,0,10"
  303. HorizontalAlignment="Center"
  304. Text="{locale:Locale ControllerSettingsLStick}" />
  305. <!-- Left Joystick Keyboard -->
  306. <StackPanel IsVisible="{Binding !IsController}" Orientation="Vertical">
  307. <!-- Left Joystick Button -->
  308. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  309. <TextBlock
  310. Margin="0,0,10,0"
  311. Width="120"
  312. HorizontalAlignment="Center"
  313. VerticalAlignment="Center"
  314. Text="{locale:Locale ControllerSettingsLStickButton}"
  315. TextAlignment="Center" />
  316. <ToggleButton
  317. Width="90"
  318. Height="27"
  319. HorizontalAlignment="Stretch">
  320. <TextBlock
  321. Text="{Binding Configuration.LeftKeyboardStickButton, Mode=TwoWay, Converter={StaticResource Key}}"
  322. TextAlignment="Center" />
  323. </ToggleButton>
  324. </StackPanel>
  325. <!-- Left Joystick Up -->
  326. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  327. <TextBlock
  328. Margin="0,0,10,0"
  329. Width="120"
  330. HorizontalAlignment="Center"
  331. VerticalAlignment="Center"
  332. Text="{locale:Locale ControllerSettingsLStickUp}"
  333. TextAlignment="Center" />
  334. <ToggleButton
  335. Width="90"
  336. Height="27"
  337. HorizontalAlignment="Stretch">
  338. <TextBlock
  339. Text="{Binding Configuration.LeftStickUp, Mode=TwoWay, Converter={StaticResource Key}}"
  340. TextAlignment="Center" />
  341. </ToggleButton>
  342. </StackPanel>
  343. <!-- Left Joystick Down -->
  344. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  345. <TextBlock
  346. Margin="0,0,10,0"
  347. Width="120"
  348. HorizontalAlignment="Center"
  349. VerticalAlignment="Center"
  350. Text="{locale:Locale ControllerSettingsLStickDown}"
  351. TextAlignment="Center" />
  352. <ToggleButton
  353. Width="90"
  354. Height="27"
  355. HorizontalAlignment="Stretch">
  356. <TextBlock
  357. Text="{Binding Configuration.LeftStickDown, Mode=TwoWay, Converter={StaticResource Key}}"
  358. TextAlignment="Center" />
  359. </ToggleButton>
  360. </StackPanel>
  361. <!-- Left Joystick Left -->
  362. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  363. <TextBlock
  364. Margin="0,0,10,0"
  365. Width="120"
  366. HorizontalAlignment="Center"
  367. VerticalAlignment="Center"
  368. Text="{locale:Locale ControllerSettingsLStickLeft}"
  369. TextAlignment="Center" />
  370. <ToggleButton
  371. Width="90"
  372. Height="27"
  373. HorizontalAlignment="Stretch">
  374. <TextBlock
  375. Text="{Binding Configuration.LeftStickLeft, Mode=TwoWay, Converter={StaticResource Key}}"
  376. TextAlignment="Center" />
  377. </ToggleButton>
  378. </StackPanel>
  379. <!-- Left Joystick Right -->
  380. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  381. <TextBlock
  382. Margin="0,0,10,0"
  383. Width="120"
  384. HorizontalAlignment="Center"
  385. VerticalAlignment="Center"
  386. Text="{locale:Locale ControllerSettingsLStickRight}"
  387. TextAlignment="Center" />
  388. <ToggleButton
  389. Width="90"
  390. Height="27"
  391. HorizontalAlignment="Stretch">
  392. <TextBlock
  393. Text="{Binding Configuration.LeftStickRight, Mode=TwoWay, Converter={StaticResource Key}}"
  394. TextAlignment="Center" />
  395. </ToggleButton>
  396. </StackPanel>
  397. </StackPanel>
  398. <!-- Left Joystick Controller -->
  399. <StackPanel IsVisible="{Binding IsController}" Orientation="Vertical">
  400. <!-- Left Joystick Button -->
  401. <StackPanel Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  402. <TextBlock
  403. Margin="0,0,10,0"
  404. Width="120"
  405. HorizontalAlignment="Center"
  406. VerticalAlignment="Center"
  407. Text="{locale:Locale ControllerSettingsLStickButton}"
  408. TextAlignment="Center" />
  409. <ToggleButton
  410. Width="90"
  411. Height="27"
  412. HorizontalAlignment="Stretch">
  413. <TextBlock
  414. Text="{Binding Configuration.LeftControllerStickButton, Mode=TwoWay, Converter={StaticResource Key}}"
  415. TextAlignment="Center" />
  416. </ToggleButton>
  417. </StackPanel>
  418. <!-- Left Joystick Stick -->
  419. <StackPanel Margin="0,4,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  420. <TextBlock
  421. Margin="0,0,10,0"
  422. Width="120"
  423. HorizontalAlignment="Center"
  424. VerticalAlignment="Center"
  425. Text="{locale:Locale ControllerSettingsLStickStick}"
  426. TextAlignment="Center" />
  427. <ToggleButton
  428. Width="90"
  429. Height="27"
  430. HorizontalAlignment="Stretch"
  431. Tag="stick">
  432. <TextBlock
  433. Text="{Binding Configuration.LeftJoystick, Mode=TwoWay, Converter={StaticResource Key}}"
  434. TextAlignment="Center" />
  435. </ToggleButton>
  436. </StackPanel>
  437. <CheckBox IsChecked="{Binding Configuration.LeftInvertStickX}">
  438. <TextBlock Text="{locale:Locale ControllerSettingsLStickInvertXAxis}" />
  439. </CheckBox>
  440. <CheckBox IsChecked="{Binding Configuration.LeftInvertStickY}">
  441. <TextBlock Text="{locale:Locale ControllerSettingsLStickInvertYAxis}" />
  442. </CheckBox>
  443. <CheckBox IsChecked="{Binding Configuration.LeftRotate90}">
  444. <TextBlock Text="{locale:Locale ControllerSettingsRotate90}" />
  445. </CheckBox>
  446. <Separator Margin="0,4,0,4" Height="1" />
  447. <StackPanel Orientation="Vertical">
  448. <TextBlock Text="{locale:Locale ControllerSettingsLStickDeadzone}" />
  449. <StackPanel
  450. HorizontalAlignment="Center"
  451. VerticalAlignment="Center"
  452. Orientation="Horizontal">
  453. <Slider
  454. Width="130"
  455. Maximum="1"
  456. TickFrequency="0.01"
  457. IsSnapToTickEnabled="True"
  458. Minimum="0"
  459. Value="{Binding Configuration.DeadzoneLeft, Mode=TwoWay}" />
  460. <TextBlock
  461. VerticalAlignment="Center"
  462. Text="{Binding Configuration.DeadzoneLeft, StringFormat=\{0:0.00\}}" />
  463. </StackPanel>
  464. <TextBlock Text="{locale:Locale ControllerSettingsStickRange}" />
  465. <StackPanel
  466. HorizontalAlignment="Center"
  467. VerticalAlignment="Center"
  468. Orientation="Horizontal">
  469. <Slider
  470. Width="130"
  471. Maximum="2"
  472. TickFrequency="0.01"
  473. IsSnapToTickEnabled="True"
  474. Minimum="0"
  475. Value="{Binding Configuration.RangeLeft, Mode=TwoWay}" />
  476. <TextBlock
  477. VerticalAlignment="Center"
  478. Text="{Binding Configuration.RangeLeft, StringFormat=\{0:0.00\}}" />
  479. </StackPanel>
  480. </StackPanel>
  481. </StackPanel>
  482. </StackPanel>
  483. </Border>
  484. <!-- Left DPad -->
  485. <Border
  486. Grid.Row="2"
  487. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  488. BorderThickness="1"
  489. VerticalAlignment="Top"
  490. IsVisible="{Binding IsLeft}">
  491. <StackPanel Margin="10" Orientation="Vertical">
  492. <TextBlock
  493. Margin="0,0,0,10"
  494. HorizontalAlignment="Center"
  495. Text="{locale:Locale ControllerSettingsDPad}" />
  496. <StackPanel Orientation="Vertical">
  497. <!-- Left DPad Up -->
  498. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  499. <TextBlock
  500. Margin="0,0,10,0"
  501. Width="120"
  502. HorizontalAlignment="Center"
  503. VerticalAlignment="Center"
  504. Text="{locale:Locale ControllerSettingsDPadUp}"
  505. TextAlignment="Center" />
  506. <ToggleButton
  507. Width="90"
  508. Height="27"
  509. HorizontalAlignment="Stretch">
  510. <TextBlock
  511. Text="{Binding Configuration.DpadUp, Mode=TwoWay, Converter={StaticResource Key}}"
  512. TextAlignment="Center" />
  513. </ToggleButton>
  514. </StackPanel>
  515. <!-- Left DPad Down -->
  516. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  517. <TextBlock
  518. Margin="0,0,10,0"
  519. Width="120"
  520. HorizontalAlignment="Center"
  521. VerticalAlignment="Center"
  522. Text="{locale:Locale ControllerSettingsDPadDown}"
  523. TextAlignment="Center" />
  524. <ToggleButton
  525. Width="90"
  526. Height="27"
  527. HorizontalAlignment="Stretch">
  528. <TextBlock
  529. Text="{Binding Configuration.DpadDown, Mode=TwoWay, Converter={StaticResource Key}}"
  530. TextAlignment="Center" />
  531. </ToggleButton>
  532. </StackPanel>
  533. <!-- Left DPad Left -->
  534. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  535. <TextBlock
  536. Margin="0,0,10,0"
  537. Width="120"
  538. HorizontalAlignment="Center"
  539. VerticalAlignment="Center"
  540. Text="{locale:Locale ControllerSettingsDPadLeft}"
  541. TextAlignment="Center" />
  542. <ToggleButton
  543. Width="90"
  544. Height="27"
  545. HorizontalAlignment="Stretch">
  546. <TextBlock
  547. Text="{Binding Configuration.DpadLeft, Mode=TwoWay, Converter={StaticResource Key}}"
  548. TextAlignment="Center" />
  549. </ToggleButton>
  550. </StackPanel>
  551. <!-- Left DPad Right -->
  552. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  553. <TextBlock
  554. Margin="0,0,10,0"
  555. Width="120"
  556. HorizontalAlignment="Center"
  557. VerticalAlignment="Center"
  558. Text="{locale:Locale ControllerSettingsDPadRight}"
  559. TextAlignment="Center" />
  560. <ToggleButton
  561. Width="90"
  562. Height="27"
  563. HorizontalAlignment="Stretch">
  564. <TextBlock
  565. Text="{Binding Configuration.DpadRight, Mode=TwoWay, Converter={StaticResource Key}}"
  566. TextAlignment="Center" />
  567. </ToggleButton>
  568. </StackPanel>
  569. </StackPanel>
  570. </StackPanel>
  571. </Border>
  572. </Grid>
  573. <!-- Triggers And Side Buttons-->
  574. <StackPanel Grid.Column="1" HorizontalAlignment="Stretch">
  575. <Border
  576. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  577. BorderThickness="1">
  578. <StackPanel Margin="10" Orientation="Vertical">
  579. <TextBlock HorizontalAlignment="Center" Text="{locale:Locale ControllerSettingsTriggerThreshold}" />
  580. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  581. <Slider
  582. Width="130"
  583. Maximum="1"
  584. TickFrequency="0.01"
  585. IsSnapToTickEnabled="True"
  586. Minimum="0"
  587. Value="{Binding Configuration.TriggerThreshold, Mode=TwoWay}" />
  588. <TextBlock Text="{Binding Configuration.TriggerThreshold, StringFormat=\{0:0.00\}}" />
  589. </StackPanel>
  590. <StackPanel
  591. Margin="0,4,0,0"
  592. HorizontalAlignment="Center"
  593. VerticalAlignment="Center"
  594. Background="{DynamicResource ThemeDarkColor}"
  595. IsVisible="{Binding !IsRight}"
  596. Orientation="Horizontal">
  597. <TextBlock
  598. Width="20"
  599. HorizontalAlignment="Center"
  600. VerticalAlignment="Center"
  601. Text="{locale:Locale ControllerSettingsLeftSR}"
  602. TextAlignment="Center" />
  603. <ToggleButton
  604. Width="90"
  605. Height="27"
  606. HorizontalAlignment="Stretch">
  607. <TextBlock
  608. Text="{Binding Configuration.LeftButtonSr, Mode=TwoWay, Converter={StaticResource Key}}"
  609. TextAlignment="Center" />
  610. </ToggleButton>
  611. </StackPanel>
  612. <StackPanel
  613. Margin="0,4,0,0"
  614. HorizontalAlignment="Center"
  615. VerticalAlignment="Center"
  616. IsVisible="{Binding !IsRight}"
  617. Background="{DynamicResource ThemeDarkColor}"
  618. Orientation="Horizontal">
  619. <TextBlock
  620. Width="20"
  621. HorizontalAlignment="Center"
  622. VerticalAlignment="Center"
  623. Text="{locale:Locale ControllerSettingsLeftSL}"
  624. TextAlignment="Center" />
  625. <ToggleButton
  626. Width="90"
  627. Height="27"
  628. HorizontalAlignment="Stretch">
  629. <TextBlock
  630. Text="{Binding Configuration.LeftButtonSl, Mode=TwoWay, Converter={StaticResource Key}}"
  631. TextAlignment="Center" />
  632. </ToggleButton>
  633. </StackPanel>
  634. <StackPanel
  635. Margin="0,4,0,0"
  636. HorizontalAlignment="Center"
  637. VerticalAlignment="Center"
  638. IsVisible="{Binding !IsLeft}"
  639. Background="{DynamicResource ThemeDarkColor}"
  640. Orientation="Horizontal">
  641. <TextBlock
  642. Width="20"
  643. HorizontalAlignment="Center"
  644. VerticalAlignment="Center"
  645. Text="{locale:Locale ControllerSettingsRightSR}"
  646. TextAlignment="Center" />
  647. <ToggleButton
  648. Width="90"
  649. Height="27"
  650. HorizontalAlignment="Stretch">
  651. <TextBlock
  652. Text="{Binding Configuration.RightButtonSr, Mode=TwoWay, Converter={StaticResource Key}}"
  653. TextAlignment="Center" />
  654. </ToggleButton>
  655. </StackPanel>
  656. <StackPanel
  657. Margin="0,4,0,0"
  658. HorizontalAlignment="Center"
  659. VerticalAlignment="Center"
  660. IsVisible="{Binding !IsLeft}"
  661. Background="{DynamicResource ThemeDarkColor}"
  662. Orientation="Horizontal">
  663. <TextBlock
  664. Width="20"
  665. HorizontalAlignment="Center"
  666. VerticalAlignment="Center"
  667. Text="{locale:Locale ControllerSettingsRightSL}"
  668. TextAlignment="Center" />
  669. <ToggleButton
  670. Width="90"
  671. Height="27"
  672. HorizontalAlignment="Stretch">
  673. <TextBlock
  674. Text="{Binding Configuration.RightButtonSl, Mode=TwoWay, Converter={StaticResource Key}}"
  675. TextAlignment="Center" />
  676. </ToggleButton>
  677. </StackPanel>
  678. </StackPanel>
  679. </Border>
  680. <!-- Controller Picture -->
  681. <Image
  682. Margin="0,10,0,0"
  683. MaxHeight="250"
  684. HorizontalAlignment="Stretch"
  685. VerticalAlignment="Top"
  686. Source="{Binding Image}" />
  687. <!-- Motion+Rumble -->
  688. <StackPanel Margin="0,10,0,0" Orientation="Vertical" >
  689. <Border
  690. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  691. BorderThickness="1"
  692. HorizontalAlignment="Stretch"
  693. IsVisible="{Binding IsController}">
  694. <Grid>
  695. <Grid.ColumnDefinitions>
  696. <ColumnDefinition Width="*" />
  697. <ColumnDefinition Width="Auto" />
  698. </Grid.ColumnDefinitions>
  699. <CheckBox
  700. Margin="10"
  701. MinWidth="0"
  702. Grid.Column="0"
  703. IsChecked="{Binding Configuration.EnableMotion, Mode=TwoWay}">
  704. <TextBlock Text="{locale:Locale ControllerSettingsMotion}" />
  705. </CheckBox>
  706. <Button Margin="10" Grid.Column="1" Command="{Binding ShowMotionConfig}">
  707. <TextBlock Text="{locale:Locale ControllerSettingsConfigureGeneral}" />
  708. </Button>
  709. </Grid>
  710. </Border>
  711. <Border
  712. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  713. BorderThickness="1"
  714. HorizontalAlignment="Stretch"
  715. IsVisible="{Binding IsController}">
  716. <Grid>
  717. <Grid.ColumnDefinitions>
  718. <ColumnDefinition Width="*" />
  719. <ColumnDefinition Width="Auto" />
  720. </Grid.ColumnDefinitions>
  721. <CheckBox
  722. Margin="10"
  723. MinWidth="0"
  724. Grid.Column="0"
  725. IsChecked="{Binding Configuration.EnableRumble, Mode=TwoWay}">
  726. <TextBlock Text="{locale:Locale ControllerSettingsRumble}" />
  727. </CheckBox>
  728. <Button Margin="10" Grid.Column="1" Command="{Binding ShowRumbleConfig}">
  729. <TextBlock Text="{locale:Locale ControllerSettingsConfigureGeneral}" />
  730. </Button>
  731. </Grid>
  732. </Border>
  733. </StackPanel>
  734. </StackPanel>
  735. <!--Right Controls-->
  736. <Grid
  737. Margin="10,0,0,0"
  738. Grid.Column="2"
  739. VerticalAlignment="Top"
  740. HorizontalAlignment="Stretch" >
  741. <Grid.RowDefinitions>
  742. <RowDefinition />
  743. <RowDefinition />
  744. <RowDefinition />
  745. <RowDefinition />
  746. </Grid.RowDefinitions>
  747. <Border
  748. Grid.Row="0"
  749. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  750. BorderThickness="1"
  751. IsVisible="{Binding IsRight}">
  752. <StackPanel Margin="10" Orientation="Vertical">
  753. <Grid HorizontalAlignment="Stretch">
  754. <Grid.ColumnDefinitions>
  755. <ColumnDefinition />
  756. <ColumnDefinition />
  757. </Grid.ColumnDefinitions>
  758. <Grid.RowDefinitions>
  759. <RowDefinition />
  760. <RowDefinition />
  761. </Grid.RowDefinitions>
  762. <StackPanel
  763. Margin="0,0,0,4"
  764. Grid.Column="1"
  765. Grid.Row="0"
  766. Background="{DynamicResource ThemeDarkColor}"
  767. Orientation="Horizontal">
  768. <TextBlock
  769. Width="20"
  770. HorizontalAlignment="Center"
  771. VerticalAlignment="Center"
  772. Text="{locale:Locale ControllerSettingsTriggerZR}"
  773. TextAlignment="Center" />
  774. <ToggleButton
  775. Width="90"
  776. Height="27"
  777. HorizontalAlignment="Stretch">
  778. <TextBlock
  779. Text="{Binding Configuration.ButtonZr, Mode=TwoWay, Converter={StaticResource Key}}"
  780. TextAlignment="Center" />
  781. </ToggleButton>
  782. </StackPanel>
  783. <StackPanel
  784. Grid.Column="1"
  785. Grid.Row="1"
  786. HorizontalAlignment="Center"
  787. VerticalAlignment="Center"
  788. Background="{DynamicResource ThemeDarkColor}"
  789. Orientation="Horizontal">
  790. <TextBlock
  791. Width="20"
  792. HorizontalAlignment="Center"
  793. VerticalAlignment="Center"
  794. Text="{locale:Locale ControllerSettingsTriggerR}"
  795. TextAlignment="Center" />
  796. <ToggleButton
  797. Width="90"
  798. Height="27"
  799. HorizontalAlignment="Stretch">
  800. <TextBlock
  801. Text="{Binding Configuration.ButtonR, Mode=TwoWay, Converter={StaticResource Key}}"
  802. TextAlignment="Center" />
  803. </ToggleButton>
  804. </StackPanel>
  805. <StackPanel
  806. Margin="0,0,8,4"
  807. Grid.Column="0"
  808. Grid.Row="0"
  809. HorizontalAlignment="Right"
  810. VerticalAlignment="Center"
  811. Background="{DynamicResource ThemeDarkColor}"
  812. Orientation="Horizontal">
  813. <TextBlock
  814. Width="20"
  815. HorizontalAlignment="Center"
  816. VerticalAlignment="Center"
  817. Text="{locale:Locale ControllerSettingsButtonPlus}"
  818. TextAlignment="Center" />
  819. <ToggleButton
  820. Width="90"
  821. Height="27"
  822. HorizontalAlignment="Stretch">
  823. <TextBlock
  824. Text="{Binding Configuration.ButtonPlus, Mode=TwoWay, Converter={StaticResource Key}}"
  825. TextAlignment="Center" />
  826. </ToggleButton>
  827. </StackPanel>
  828. </Grid>
  829. </StackPanel>
  830. </Border>
  831. <Border
  832. Grid.Row="1"
  833. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  834. BorderThickness="1"
  835. IsVisible="{Binding IsRight}">
  836. <StackPanel Margin="10" Orientation="Vertical">
  837. <TextBlock
  838. Margin="0,0,0,10"
  839. HorizontalAlignment="Center"
  840. Text="{locale:Locale ControllerSettingsButtons}" />
  841. <Grid HorizontalAlignment="Stretch">
  842. <Grid.ColumnDefinitions>
  843. <ColumnDefinition />
  844. <ColumnDefinition />
  845. </Grid.ColumnDefinitions>
  846. <Grid.RowDefinitions>
  847. <RowDefinition />
  848. <RowDefinition />
  849. </Grid.RowDefinitions>
  850. <!-- Right Buttons X -->
  851. <StackPanel
  852. Margin="0,0,0,4"
  853. Grid.Column="0"
  854. Grid.Row="0"
  855. Background="{DynamicResource ThemeDarkColor}"
  856. Orientation="Horizontal">
  857. <TextBlock
  858. Width="20"
  859. HorizontalAlignment="Center"
  860. VerticalAlignment="Center"
  861. Text="{locale:Locale ControllerSettingsButtonX}"
  862. TextAlignment="Center" />
  863. <ToggleButton
  864. Width="90"
  865. Height="27"
  866. HorizontalAlignment="Stretch">
  867. <TextBlock
  868. Text="{Binding Configuration.ButtonX, Mode=TwoWay, Converter={StaticResource Key}}"
  869. TextAlignment="Center" />
  870. </ToggleButton>
  871. </StackPanel>
  872. <!-- Right Buttons Y -->
  873. <StackPanel
  874. Grid.Column="0"
  875. Grid.Row="1"
  876. Background="{DynamicResource ThemeDarkColor}"
  877. Orientation="Horizontal">
  878. <TextBlock
  879. Width="20"
  880. HorizontalAlignment="Center"
  881. VerticalAlignment="Center"
  882. Text="{locale:Locale ControllerSettingsButtonY}"
  883. TextAlignment="Center" />
  884. <ToggleButton
  885. Width="90"
  886. Height="27"
  887. HorizontalAlignment="Stretch">
  888. <TextBlock
  889. Text="{Binding Configuration.ButtonY, Mode=TwoWay, Converter={StaticResource Key}}"
  890. TextAlignment="Center" />
  891. </ToggleButton>
  892. </StackPanel>
  893. <!-- Right Buttons A -->
  894. <StackPanel
  895. Margin="0,0,0,4"
  896. Grid.Column="1"
  897. Grid.Row="0"
  898. Background="{DynamicResource ThemeDarkColor}"
  899. Orientation="Horizontal">
  900. <TextBlock
  901. Width="20"
  902. HorizontalAlignment="Center"
  903. VerticalAlignment="Center"
  904. Text="{locale:Locale ControllerSettingsButtonA}"
  905. TextAlignment="Center" />
  906. <ToggleButton
  907. Width="90"
  908. Height="27"
  909. HorizontalAlignment="Stretch">
  910. <TextBlock
  911. Text="{Binding Configuration.ButtonA, Mode=TwoWay, Converter={StaticResource Key}}"
  912. TextAlignment="Center" />
  913. </ToggleButton>
  914. </StackPanel>
  915. <!-- Right Buttons B -->
  916. <StackPanel
  917. Grid.Column="1"
  918. Grid.Row="1"
  919. Background="{DynamicResource ThemeDarkColor}"
  920. Orientation="Horizontal">
  921. <TextBlock
  922. Width="20"
  923. HorizontalAlignment="Center"
  924. VerticalAlignment="Center"
  925. Text="{locale:Locale ControllerSettingsButtonB}"
  926. TextAlignment="Center" />
  927. <ToggleButton
  928. Width="90"
  929. Height="27"
  930. HorizontalAlignment="Stretch">
  931. <TextBlock
  932. Text="{Binding Configuration.ButtonB, Mode=TwoWay, Converter={StaticResource Key}}"
  933. TextAlignment="Center" />
  934. </ToggleButton>
  935. </StackPanel>
  936. </Grid>
  937. </StackPanel>
  938. </Border>
  939. <Border
  940. Grid.Row="2"
  941. Padding="10"
  942. BorderBrush="{DynamicResource ThemeControlBorderColor}"
  943. BorderThickness="1"
  944. IsVisible="{Binding IsRight}">
  945. <StackPanel Orientation="Vertical">
  946. <TextBlock
  947. Margin="0,0,0,10"
  948. HorizontalAlignment="Center"
  949. Text="{locale:Locale ControllerSettingsRStick}" />
  950. <!-- Right Joystick Keyboard -->
  951. <StackPanel IsVisible="{Binding !IsController}" Orientation="Vertical">
  952. <!-- Right Joystick Button -->
  953. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  954. <TextBlock
  955. Margin="0,0,10,0"
  956. Width="120"
  957. HorizontalAlignment="Center"
  958. VerticalAlignment="Center"
  959. Text="{locale:Locale ControllerSettingsRStickButton}"
  960. TextAlignment="Center" />
  961. <ToggleButton
  962. Width="90"
  963. Height="27"
  964. HorizontalAlignment="Stretch">
  965. <TextBlock
  966. Text="{Binding Configuration.RightKeyboardStickButton, Mode=TwoWay, Converter={StaticResource Key}}"
  967. TextAlignment="Center" />
  968. </ToggleButton>
  969. </StackPanel>
  970. <!-- Right Joystick Up -->
  971. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  972. <TextBlock
  973. Margin="0,0,10,0"
  974. Width="120"
  975. HorizontalAlignment="Center"
  976. VerticalAlignment="Center"
  977. Text="{locale:Locale ControllerSettingsRStickUp}"
  978. TextAlignment="Center" />
  979. <ToggleButton
  980. Width="90"
  981. Height="27"
  982. HorizontalAlignment="Stretch">
  983. <TextBlock
  984. Text="{Binding Configuration.RightStickUp, Mode=TwoWay, Converter={StaticResource Key}}"
  985. TextAlignment="Center" />
  986. </ToggleButton>
  987. </StackPanel>
  988. <!-- Right Joystick Down -->
  989. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  990. <TextBlock
  991. Margin="0,0,10,0"
  992. Width="120"
  993. HorizontalAlignment="Center"
  994. VerticalAlignment="Center"
  995. Text="{locale:Locale ControllerSettingsRStickDown}"
  996. TextAlignment="Center" />
  997. <ToggleButton
  998. Width="90"
  999. Height="27"
  1000. HorizontalAlignment="Stretch">
  1001. <TextBlock
  1002. Text="{Binding Configuration.RightStickDown, Mode=TwoWay, Converter={StaticResource Key}}"
  1003. TextAlignment="Center" />
  1004. </ToggleButton>
  1005. </StackPanel>
  1006. <!-- Right Joystick Left -->
  1007. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  1008. <TextBlock
  1009. Margin="0,0,10,0"
  1010. Width="120"
  1011. HorizontalAlignment="Center"
  1012. VerticalAlignment="Center"
  1013. Text="{locale:Locale ControllerSettingsRStickLeft}"
  1014. TextAlignment="Center" />
  1015. <ToggleButton
  1016. Width="90"
  1017. Height="27"
  1018. HorizontalAlignment="Stretch">
  1019. <TextBlock
  1020. Text="{Binding Configuration.RightStickLeft, Mode=TwoWay, Converter={StaticResource Key}}"
  1021. TextAlignment="Center" />
  1022. </ToggleButton>
  1023. </StackPanel>
  1024. <!-- Right Joystick Right -->
  1025. <StackPanel Margin="0,0,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  1026. <TextBlock
  1027. Margin="0,0,10,0"
  1028. Width="120"
  1029. HorizontalAlignment="Center"
  1030. VerticalAlignment="Center"
  1031. Text="{locale:Locale ControllerSettingsRStickRight}"
  1032. TextAlignment="Center" />
  1033. <ToggleButton
  1034. Width="90"
  1035. Height="27"
  1036. HorizontalAlignment="Stretch">
  1037. <TextBlock
  1038. Text="{Binding Configuration.RightStickRight, Mode=TwoWay, Converter={StaticResource Key}}"
  1039. TextAlignment="Center" />
  1040. </ToggleButton>
  1041. </StackPanel>
  1042. </StackPanel>
  1043. <!-- Right Joystick Controller -->
  1044. <StackPanel IsVisible="{Binding IsController}" Orientation="Vertical">
  1045. <!-- Right Joystick Button -->
  1046. <StackPanel Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  1047. <TextBlock
  1048. Margin="0,0,10,0"
  1049. Width="120"
  1050. HorizontalAlignment="Center"
  1051. VerticalAlignment="Center"
  1052. Text="{locale:Locale ControllerSettingsRStickButton}"
  1053. TextAlignment="Center" />
  1054. <ToggleButton
  1055. Width="90"
  1056. Height="27"
  1057. HorizontalAlignment="Stretch">
  1058. <TextBlock
  1059. Text="{Binding Configuration.RightControllerStickButton, Mode=TwoWay, Converter={StaticResource Key}}"
  1060. TextAlignment="Center" />
  1061. </ToggleButton>
  1062. </StackPanel>
  1063. <!-- Right Joystick Stick -->
  1064. <StackPanel Margin="0,4,0,4" Background="{DynamicResource ThemeDarkColor}" Orientation="Horizontal">
  1065. <TextBlock
  1066. Margin="0,0,10,0"
  1067. Width="120"
  1068. HorizontalAlignment="Center"
  1069. VerticalAlignment="Center"
  1070. Text="{locale:Locale ControllerSettingsRStickStick}"
  1071. TextAlignment="Center" />
  1072. <ToggleButton
  1073. Width="90"
  1074. Height="27"
  1075. HorizontalAlignment="Stretch"
  1076. Tag="stick">
  1077. <TextBlock
  1078. Text="{Binding Configuration.RightJoystick, Mode=TwoWay, Converter={StaticResource Key}}"
  1079. TextAlignment="Center" />
  1080. </ToggleButton>
  1081. </StackPanel>
  1082. <CheckBox IsChecked="{Binding Configuration.RightInvertStickX}">
  1083. <TextBlock Text="{locale:Locale ControllerSettingsRStickInvertXAxis}" />
  1084. </CheckBox>
  1085. <CheckBox IsChecked="{Binding Configuration.RightInvertStickY}">
  1086. <TextBlock Text="{locale:Locale ControllerSettingsRStickInvertYAxis}" />
  1087. </CheckBox>
  1088. <CheckBox IsChecked="{Binding Configuration.RightRotate90}">
  1089. <TextBlock Text="{locale:Locale ControllerSettingsRotate90}" />
  1090. </CheckBox>
  1091. <Separator Margin="0,4,0,4" Height="1" />
  1092. <StackPanel Orientation="Vertical">
  1093. <TextBlock Text="{locale:Locale ControllerSettingsRStickDeadzone}" />
  1094. <StackPanel
  1095. HorizontalAlignment="Center"
  1096. VerticalAlignment="Center"
  1097. Orientation="Horizontal">
  1098. <Slider
  1099. Width="130"
  1100. Maximum="1"
  1101. TickFrequency="0.01"
  1102. IsSnapToTickEnabled="True"
  1103. Padding="0"
  1104. VerticalAlignment="Center"
  1105. Minimum="0"
  1106. Value="{Binding Configuration.DeadzoneRight, Mode=TwoWay}" />
  1107. <TextBlock
  1108. VerticalAlignment="Center"
  1109. Text="{Binding Configuration.DeadzoneRight, StringFormat=\{0:0.00\}}" />
  1110. </StackPanel>
  1111. <TextBlock Text="{locale:Locale ControllerSettingsStickRange}" />
  1112. <StackPanel
  1113. HorizontalAlignment="Center"
  1114. VerticalAlignment="Center"
  1115. Orientation="Horizontal">
  1116. <Slider
  1117. Width="130"
  1118. Maximum="2"
  1119. TickFrequency="0.01"
  1120. IsSnapToTickEnabled="True"
  1121. Minimum="0"
  1122. Value="{Binding Configuration.RangeRight, Mode=TwoWay}" />
  1123. <TextBlock
  1124. VerticalAlignment="Center"
  1125. Text="{Binding Configuration.RangeRight, StringFormat=\{0:0.00\}}" />
  1126. </StackPanel>
  1127. </StackPanel>
  1128. </StackPanel>
  1129. </StackPanel>
  1130. </Border>
  1131. </Grid>
  1132. </Grid>
  1133. </StackPanel>
  1134. </UserControl>