Skip to content

Commit

Permalink
fix searchcombobox
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Nov 2, 2024
1 parent a9d23af commit d84de30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/OneWare.Essentials/Controls/SearchComboBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,22 @@
<Border Background="{DynamicResource ThemeBackgroundBrush}"
BorderBrush="{DynamicResource ThemeBorderMidBrush}"
BorderThickness="1">
<Grid RowDefinitions="Auto, Auto, Auto">
<Border Padding="2 1">
<DockPanel>
<Border DockPanel.Dock="Top" Padding="2 1">
<DockPanel>
<Image DockPanel.Dock="Left" VerticalAlignment="Center" Height="14" Margin="2 0" Source="{DynamicResource VsImageLib.Search16XMd}"/>
<TextBox DockPanel.Dock="Left" VerticalAlignment="Center" Watermark="Search..." BorderThickness="0" Name="PART_SearchBox"/>
</DockPanel>
</Border>
<Border Grid.Row="1" Height="1" Margin="0 2" Background="{DynamicResource ThemeBorderLowBrush}"/>
<ScrollViewer Grid.Row="2"
<Border DockPanel.Dock="Top" Height="1" Margin="0 2" Background="{DynamicResource ThemeBorderLowBrush}"/>
<ScrollViewer DockPanel.Dock="Bottom"
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
IsDeferredScrollingEnabled="{TemplateBinding (ScrollViewer.IsDeferredScrollingEnabled)}">
<ItemsPresenter Name="PART_ItemsPresenter"
ItemsPanel="{TemplateBinding ItemsPanel}" />
</ScrollViewer>
</Grid>
</DockPanel>

</Border>
</Popup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="5" Margin="0 0 5 0">
<TextBlock Text="Board:" VerticalAlignment="Center" />

<ComboBox ItemsSource="{Binding FpgaPackages}"
<controls:SearchComboBox IsInteractive="False" ItemsSource="{Binding FpgaPackages}"
MinWidth="150"
SelectedItem="{Binding SelectedFpgaPackage, Mode=TwoWay}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" Margin="5 0" VerticalAlignment="Center" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</controls:SearchComboBox>

<Button Command="{Binding RefreshFpgasButtonAsync}"
CommandParameter="{Binding #UniversalFpgaProjectCompileViewView}"
Expand Down

0 comments on commit d84de30

Please sign in to comment.