|
397 | 397 | </Setter.Value>
|
398 | 398 | </Setter>
|
399 | 399 | </Style>
|
| 400 | + <Style x:Key="AutoSuggestBoxTextBoxStyleFixed" TargetType="TextBox" BasedOn="{StaticResource AutoSuggestBoxTextBoxStyle}"> |
| 401 | + <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/> |
| 402 | + <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/> |
| 403 | + <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}"/> |
| 404 | + <Setter Property="Background" Value="{ThemeResource TextControlBackground}"/> |
| 405 | + <Setter Property="BorderBrush" Value="{ThemeResource SystemBaseMediumLowColor}"/> |
| 406 | + <Setter Property="Opacity" Value="1"/> |
| 407 | + <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}"/> |
| 408 | + <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/> |
| 409 | + <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> |
| 410 | + <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/> |
| 411 | + <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/> |
| 412 | + <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/> |
| 413 | + <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/> |
| 414 | + <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/> |
| 415 | + <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/> |
| 416 | + <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/> |
| 417 | + </Style> |
| 418 | + |
400 | 419 | </UserControl.Resources>
|
401 | 420 | <Grid
|
402 | 421 | x:Name="ToolbarGrid"
|
|
504 | 523 | Padding="4"
|
505 | 524 | HorizontalAlignment="Stretch"
|
506 | 525 | VerticalAlignment="Center"
|
507 |
| - BorderBrush="{ThemeResource CustomInputFieldBorderBrush}" |
| 526 | + BorderBrush="{ThemeResource SystemBaseMediumLowColor}" |
508 | 527 | FocusDisengaged="VisiblePath_LostFocus"
|
509 | 528 | FontFamily="Segoe UI"
|
510 | 529 | FontSize="14"
|
|
519 | 538 |
|
520 | 539 | <Grid
|
521 | 540 | x:Name="ClickablePath"
|
522 |
| - Height="32.5" |
| 541 | + MinHeight="32" |
| 542 | + x:Load="{x:Bind ClickablePathLoaded, Mode=OneWay}" |
523 | 543 | HorizontalAlignment="Stretch"
|
524 |
| - VerticalAlignment="Center" |
525 |
| - BorderBrush="{ThemeResource TextBoxBorderThemeBrush}" |
| 544 | + BorderBrush="{ThemeResource SystemBaseMediumLowColor}" |
526 | 545 | BorderThickness="1"
|
527 | 546 | CornerRadius="2"
|
528 |
| - PointerPressed="ManualPathEntryItem_Click"> |
| 547 | + PointerPressed="ManualPathEntryItem_Click" VerticalAlignment="Center"> |
529 | 548 |
|
530 | 549 | <ListView
|
531 | 550 | x:Name="PathViewInteract"
|
532 |
| - x:Load="{x:Bind ClickablePathLoaded, Mode=OneWay}" |
533 | 551 | VerticalAlignment="Stretch"
|
534 | 552 | HorizontalContentAlignment="Stretch"
|
535 | 553 | VerticalContentAlignment="Stretch"
|
|
604 | 622 | ResizeDirection="Columns"
|
605 | 623 | Style="{StaticResource GridSplitterStyle_Invisible}" />
|
606 | 624 | <AutoSuggestBox
|
607 |
| - x:Name="SearchReigon" |
| 625 | + x:Name="SearchReigon" TextBoxStyle="{StaticResource AutoSuggestBoxTextBoxStyleFixed}" |
608 | 626 | x:Load="{x:Bind SearchBoxLoaded, Mode=OneWay}"
|
609 | 627 | Grid.Column="2"
|
610 | 628 | MaxWidth="485"
|
611 | 629 | Margin="0,0,4,0"
|
612 | 630 | VerticalAlignment="Center"
|
613 | 631 | PlaceholderText="Search"
|
614 | 632 | QueryIcon="Find">
|
615 |
| - <AutoSuggestBox.Resources> |
616 |
| - <StaticResource x:Key="TextControlBorderBrush" ResourceKey="TextBoxBorderThemeBrush" /> |
617 |
| - <StaticResource x:Key="TextControlBorderBrushPointerOver" ResourceKey="TextBoxBorderThemeBrush" /> |
618 |
| - </AutoSuggestBox.Resources> |
619 | 633 | </AutoSuggestBox>
|
620 | 634 | </Grid>
|
621 | 635 | <VisualStateManager.VisualStateGroups>
|
|
0 commit comments