44 lines
2.5 KiB
XML
44 lines
2.5 KiB
XML
<UserControl x:Class="Livia.Views.Controls.PagingControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:viewModels="clr-namespace:Livia.ViewModels"
|
|
xmlns:attachedProperties="clr-namespace:Livia.Views.AttachedProperties"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
mc:Ignorable="d"
|
|
d:Background="{StaticResource PrimaryColorBrush}"
|
|
d:DataContext="{d:DesignInstance Type=viewModels:PagingControlViewModel}">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Style="{StaticResource LiviaPrimaryProcessingIconButton}"
|
|
IsEnabled="{Binding Processing, Converter={StaticResource InvertBooleanConverter}}"
|
|
attachedProperties:IconKindProperties.IconKind="SkipBackward"
|
|
Click="FirstButtonClick" />
|
|
<Button Style="{StaticResource LiviaPrimaryProcessingIconButton}"
|
|
IsEnabled="{Binding Processing, Converter={StaticResource InvertBooleanConverter}}"
|
|
attachedProperties:IconKindProperties.IconKind="SkipPrevious"
|
|
Click="PreviousButtonClick" />
|
|
<TextBox Text="{Binding CurrentPage}"
|
|
d:Text="7"
|
|
Name="CurrentPageTextBox"
|
|
TextAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
KeyDown="PageBoxKeyDown"
|
|
PreviewTextInput="PageBoxOnPreview"
|
|
materialDesign:TextFieldAssist.SuffixText="{Binding PageCount, StringFormat={}/{0}}"
|
|
Foreground="{StaticResource White1Brush}"
|
|
FontSize="16" />
|
|
<Button Style="{StaticResource LiviaPrimaryProcessingIconButton}"
|
|
IsEnabled="{Binding Processing, Converter={StaticResource InvertBooleanConverter}}"
|
|
attachedProperties:IconKindProperties.IconKind="SkipNext"
|
|
Click="NextButtonClick" />
|
|
<Button Style="{StaticResource LiviaPrimaryProcessingIconButton}"
|
|
IsEnabled="{Binding Processing, Converter={StaticResource InvertBooleanConverter}}"
|
|
attachedProperties:IconKindProperties.IconKind="SkipForward"
|
|
Click="LastButtonClick" />
|
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|