|
20 | 20 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
21 | 21 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
22 | 22 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
23 | | - xmlns:draw="clr-namespace:System.Drawing;assembly=System.Drawing" |
24 | 23 | xmlns:local="clr-namespace:FloatTool" |
25 | 24 | xmlns:theme="clr-namespace:FloatTool.Theme" |
26 | | - mc:Ignorable="d" |
| 25 | + mc:Ignorable="d" KeyUp="Window_KeyUp" |
27 | 26 | MinWidth="875" MinHeight="420" |
28 | 27 | Width="875" Height="420" |
29 | 28 | WindowStartupLocation="CenterScreen" |
|
303 | 302 | <ColumnDefinition/> |
304 | 303 | <ColumnDefinition Width="Auto"/> |
305 | 304 | </Grid.ColumnDefinitions> |
306 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 305 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
307 | 306 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
308 | 307 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
309 | 308 | </Button> |
|
313 | 312 | <ColumnDefinition/> |
314 | 313 | <ColumnDefinition Width="Auto"/> |
315 | 314 | </Grid.ColumnDefinitions> |
316 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 315 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
317 | 316 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
318 | 317 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
319 | 318 | </Button> |
|
323 | 322 | <ColumnDefinition/> |
324 | 323 | <ColumnDefinition Width="Auto"/> |
325 | 324 | </Grid.ColumnDefinitions> |
326 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 325 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
327 | 326 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
328 | 327 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
329 | 328 | </Button> |
|
333 | 332 | <ColumnDefinition/> |
334 | 333 | <ColumnDefinition Width="Auto"/> |
335 | 334 | </Grid.ColumnDefinitions> |
336 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 335 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
337 | 336 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
338 | 337 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
339 | 338 | </Button> |
|
343 | 342 | <ColumnDefinition/> |
344 | 343 | <ColumnDefinition Width="Auto"/> |
345 | 344 | </Grid.ColumnDefinitions> |
346 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 345 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
347 | 346 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
348 | 347 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
349 | 348 | </Button> |
|
353 | 352 | <ColumnDefinition/> |
354 | 353 | <ColumnDefinition Width="Auto"/> |
355 | 354 | </Grid.ColumnDefinitions> |
356 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 355 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
357 | 356 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
358 | 357 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
359 | 358 | </Button> |
|
363 | 362 | <ColumnDefinition/> |
364 | 363 | <ColumnDefinition Width="Auto"/> |
365 | 364 | </Grid.ColumnDefinitions> |
366 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 365 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
367 | 366 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
368 | 367 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
369 | 368 | </Button> |
|
373 | 372 | <ColumnDefinition/> |
374 | 373 | <ColumnDefinition Width="Auto"/> |
375 | 374 | </Grid.ColumnDefinitions> |
376 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 375 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
377 | 376 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
378 | 377 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
379 | 378 | </Button> |
|
383 | 382 | <ColumnDefinition/> |
384 | 383 | <ColumnDefinition Width="Auto"/> |
385 | 384 | </Grid.ColumnDefinitions> |
386 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 385 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
387 | 386 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
388 | 387 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
389 | 388 | </Button> |
|
393 | 392 | <ColumnDefinition/> |
394 | 393 | <ColumnDefinition Width="Auto"/> |
395 | 394 | </Grid.ColumnDefinitions> |
396 | | - <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue}" VerticalContentAlignment="Center"/> |
| 395 | + <TextBox Style="{DynamicResource MainTextBoxStyle}" IsReadOnly="true" FontSize="13" Text="{Binding WearValue, StringFormat=0.00000000000000}" VerticalContentAlignment="Center"/> |
397 | 396 | <Button Grid.Column="1" Style="{DynamicResource MainButtonStyle}" HorizontalAlignment="Right" Command="{Binding CopyCommand}"> |
398 | 397 | <TextBlock Text="{DynamicResource m_Copy}" Margin="8,0"/> |
399 | 398 | </Button> |
|
0 commit comments