ControllerSettingsWindow.axaml 62 KB

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