Add WheelComboBox
This commit is contained in:
parent
6a8476c976
commit
4cfe72a63b
4 changed files with 51 additions and 10 deletions
|
|
@ -10,7 +10,7 @@
|
|||
Title="Book Details" Name="BookDetails"
|
||||
Icon="/AvaloniaUI/Assets/libation.ico">
|
||||
|
||||
<Grid RowDefinitions="*,Auto,Auto,Auto">
|
||||
<Grid RowDefinitions="*,Auto,Auto,40">
|
||||
<Grid.Styles>
|
||||
<Style Selector="Button:focus">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource SystemAccentColor}" />
|
||||
|
|
@ -75,8 +75,8 @@
|
|||
Margin="0,0,10,0"
|
||||
VerticalAlignment="Center"
|
||||
Text="PDF" />
|
||||
|
||||
<ComboBox
|
||||
|
||||
<controls:WheelComboBox
|
||||
Grid.Column="1"
|
||||
Width="150"
|
||||
MinHeight="25"
|
||||
|
|
@ -95,16 +95,16 @@
|
|||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
|
||||
</ComboBox>
|
||||
</controls:WheelComboBox>
|
||||
|
||||
<ComboBox
|
||||
<controls:WheelComboBox
|
||||
IsEnabled="{Binding HasPDF}"
|
||||
Grid.Column="4"
|
||||
MinHeight="25"
|
||||
Height="25"
|
||||
Width="150"
|
||||
VerticalAlignment="Center"
|
||||
SelectedItem="{Binding PdfLiberatedSelectedItem, Mode=TwoWay}"
|
||||
SelectedItem="{Binding PdfLiberatedSelectedItem, Mode=TwoWay}"
|
||||
Items="{Binding PdfLiberatedItems}">
|
||||
|
||||
<ComboBox.ItemTemplate>
|
||||
|
|
@ -117,7 +117,7 @@
|
|||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
|
||||
</ComboBox>
|
||||
</controls:WheelComboBox>
|
||||
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="120"
|
||||
xmlns:controls="clr-namespace:LibationWinForms.AvaloniaUI.Controls"
|
||||
x:Class="LibationWinForms.AvaloniaUI.Views.Dialogs.LiberatedStatusBatchDialog"
|
||||
Title="Liberated status: Whether the book has been downloaded"
|
||||
MinWidth="400" MinHeight="120"
|
||||
|
|
@ -27,8 +28,8 @@
|
|||
Margin="0,0,10,0"
|
||||
VerticalAlignment="Center"
|
||||
Text="Book" />
|
||||
|
||||
<ComboBox
|
||||
|
||||
<controls:WheelComboBox
|
||||
Width="130"
|
||||
MinHeight="25"
|
||||
Height="25"
|
||||
|
|
@ -45,7 +46,7 @@
|
|||
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
</controls:WheelComboBox>
|
||||
</StackPanel>
|
||||
|
||||
<Button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue