- Jobs and sync rows announce a new state with their job or sequence; the update check announces each state, not each download percent. Live regions stay quiet when a recycled row shows another item or a language switch relabels them. - The first-run dialog keeps its chosen card as the window's focused element, so focus starts inside it even before the window is active. - Known-server addresses read left to right in the menu. - Smoke tests: row names and states, row buttons, radio chips, header and cell columns, Workers readout, badge and strip counts, Settings values set elsewhere, German labels never cut, the cache row at 1200 px, no Reset on Advanced, Forget asks first, first-run focus and the RTL window direction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
311 lines
23 KiB
XML
311 lines
23 KiB
XML
<UserControl x:Class="Titano.App.Sections.ServerView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:ui="clr-namespace:Titano.Ui.Controls;assembly=Titano.Ui"
|
|
xmlns:l="clr-namespace:Titano.Ui.Localization;assembly=Titano.Ui"
|
|
xmlns:infra="clr-namespace:Titano.App.Infrastructure"
|
|
xmlns:shell="clr-namespace:Titano.App.Shell"
|
|
xmlns:srv="clr-namespace:Titano.App.Server">
|
|
<UserControl.Resources>
|
|
<Style x:Key="Text.RowLabel" TargetType="TextBlock" BasedOn="{StaticResource Text.Label}">
|
|
<Setter Property="MinWidth" Value="60" />
|
|
<Setter Property="Margin" Value="0,0,10,0" />
|
|
</Style>
|
|
<Style x:Key="Text.Dot" TargetType="TextBlock">
|
|
<Setter Property="Text" Value="·" />
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.TextFaint}" />
|
|
<Setter Property="Margin" Value="8,0" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<ItemsPanelTemplate x:Key="Panel.Wrap">
|
|
<WrapPanel />
|
|
</ItemsPanelTemplate>
|
|
<!-- Filter chip (Server.html, aria-pressed): one of a group, so screen readers hear which filter is on. -->
|
|
<Style x:Key="RadioButton.Chip" TargetType="RadioButton" BasedOn="{StaticResource Button.Base}">
|
|
<Setter Property="Height" Value="28" />
|
|
<Setter Property="Padding" Value="12,0" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Typography.NumeralAlignment" Value="Tabular" />
|
|
<Setter Property="ui:ControlState.CornerRadius" Value="14" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource Brush.Accent}" />
|
|
<Setter Property="ui:ControlState.HoverBorderBrush" Value="{DynamicResource Brush.Accent}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<!-- A row reads as its sequence and state; Tab goes to its buttons. -->
|
|
<Style x:Key="ListBoxItem.Sync" TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItem.PlainRow}">
|
|
<Setter Property="AutomationProperties.Name" Value="{Binding Title}" />
|
|
<Setter Property="AutomationProperties.ItemStatus" Value="{Binding StateText}" />
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
<!-- Server.html: the connection panel, then the sync table. The render-node status panel is not built (see the decisions). -->
|
|
<Grid Margin="20,16,20,12">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Style="{StaticResource Border.Panel}" Padding="16,14">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Address (read-only while connected, still selectable), servers found on the LAN, connect / disconnect; Tab follows this order. -->
|
|
<TextBlock Style="{StaticResource Text.RowLabel}" Text="{l:Loc Server.Label.Server}" />
|
|
<Grid Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBox x:Name="AddressBox" Text="{Binding Address, UpdateSourceTrigger=PropertyChanged}" ui:Field.Placeholder="{l:Loc Server.AddressPlaceholder}"
|
|
ToolTip="{l:Loc Tooltips.Server.Address}" AutomationProperties.Name="{l:Loc Server.Label.Server}" IsReadOnly="{Binding IsConnected}"
|
|
FlowDirection="LeftToRight">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Key="Enter" Command="{Binding ConnectCommand}" />
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
<Button x:Name="KnownButton" Grid.Column="1" Style="{StaticResource Button.Icon}" Margin="10,0,0,0" ui:ButtonIcon.Glyph="{StaticResource Icon.ChevronDown}"
|
|
IsEnabled="{Binding HasKnownServers}" Click="OnShowKnown" ToolTip="{Binding KnownToolTip}" AutomationProperties.Name="{l:Loc Server.Found}">
|
|
<Button.ContextMenu>
|
|
<ContextMenu ItemsSource="{Binding KnownServers}">
|
|
<ContextMenu.ItemContainerStyle>
|
|
<Style TargetType="MenuItem" BasedOn="{StaticResource {x:Type MenuItem}}">
|
|
<Setter Property="Header" Value="{Binding Address}" />
|
|
<!-- An address reads left to right in every language. -->
|
|
<Setter Property="HeaderTemplate">
|
|
<Setter.Value>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding}" FlowDirection="LeftToRight" />
|
|
</DataTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="InputGestureText" Value="{Binding Name}" />
|
|
<Setter Property="Command" Value="{Binding DataContext.UseServerCommand, RelativeSource={RelativeSource AncestorType=ContextMenu}}" />
|
|
<Setter Property="CommandParameter" Value="{Binding}" />
|
|
<Setter Property="ToolTip" Value="{l:Loc Tooltips.Server.UseFound}" />
|
|
</Style>
|
|
</ContextMenu.ItemContainerStyle>
|
|
</ContextMenu>
|
|
</Button.ContextMenu>
|
|
</Button>
|
|
<Button Grid.Column="2" Style="{StaticResource Button.Primary}" Content="{l:Loc Server.Connect}" Command="{Binding ConnectCommand}"
|
|
ToolTip="{Binding ConnectToolTip}" Margin="10,0,0,0" MinWidth="96"
|
|
Visibility="{Binding IsDisconnected, Converter={StaticResource BoolToVisibility}}" />
|
|
<Button Grid.Column="2" Content="{l:Loc Server.Disconnect}" Command="{Binding DisconnectCommand}" ToolTip="{l:Loc Tooltips.Server.Disconnect}"
|
|
Margin="10,0,0,0" MinWidth="96" Visibility="{Binding IsConnected, Converter={StaticResource BoolToVisibility}}" />
|
|
</Grid>
|
|
|
|
<!-- Status: state · server · version · latency · trusted certificate; screen readers hear the state and the error change. -->
|
|
<TextBlock Grid.Row="1" Style="{StaticResource Text.RowLabel}" Text="{l:Loc Server.Label.Status}" Margin="0,12,10,0" />
|
|
<WrapPanel Grid.Row="1" Grid.Column="1" Margin="0,12,0,0" VerticalAlignment="Center">
|
|
<ui:StatusGlyph Kind="{Binding StatusKind}" Text="{Binding StatusText}" FontSize="13" VerticalAlignment="Center" ToolTip="{l:Loc Tooltips.Server.Status}"
|
|
AutomationProperties.LiveSetting="Polite" infra:LiveRegion.Text="{Binding StatusText}" />
|
|
<StackPanel Orientation="Horizontal" Visibility="{Binding ServerText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}">
|
|
<TextBlock Style="{StaticResource Text.Dot}" />
|
|
<TextBlock Text="{Binding ServerText}" VerticalAlignment="Center" Typography.NumeralAlignment="Tabular" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Visibility="{Binding CertificateText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}">
|
|
<TextBlock Style="{StaticResource Text.Dot}" />
|
|
<TextBlock Text="{Binding CertificateText}" VerticalAlignment="Center" ToolTip="{Binding CertificateToolTip}" />
|
|
<Button Style="{StaticResource Button.Row}" Content="{l:Loc Server.Certificate}" Command="{Binding CertificateCommand}"
|
|
ToolTip="{l:Loc Tooltips.Server.Certificate}" Height="24" Margin="10,0,0,0" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Visibility="{Binding ErrorText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}">
|
|
<TextBlock Style="{StaticResource Text.Dot}" />
|
|
<ui:StatusGlyph Kind="Error" Text="{Binding ErrorText}" FontSize="13" VerticalAlignment="Center"
|
|
AutomationProperties.LiveSetting="Assertive" infra:LiveRegion.Text="{Binding ErrorText}" />
|
|
</StackPanel>
|
|
</WrapPanel>
|
|
|
|
<!-- Account: user · role · quota · sign out. -->
|
|
<TextBlock Grid.Row="2" Style="{StaticResource Text.RowLabel}" Text="{l:Loc Server.Label.Account}" Margin="0,12,10,0"
|
|
Visibility="{Binding IsConnected, Converter={StaticResource BoolToVisibility}}" />
|
|
<DockPanel Grid.Row="2" Grid.Column="1" Margin="0,12,0,0" LastChildFill="False" Visibility="{Binding IsConnected, Converter={StaticResource BoolToVisibility}}">
|
|
<Button DockPanel.Dock="Right" Style="{StaticResource Button.Compact}" Content="{l:Loc Server.SignOut}" Command="{Binding SignOutCommand}" ToolTip="{l:Loc Tooltips.Server.SignOut}" />
|
|
<Border Width="28" Height="28" CornerRadius="14" Background="{DynamicResource Brush.Card}" BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="1">
|
|
<TextBlock Text="{Binding Initial}" FontWeight="SemiBold" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<TextBlock Text="{Binding Username}" Margin="10,0,0,0" VerticalAlignment="Center" />
|
|
<TextBlock Style="{StaticResource Text.Dot}" />
|
|
<TextBlock Text="{Binding RoleText}" ToolTip="{Binding RoleToolTip}" VerticalAlignment="Center" />
|
|
<StackPanel Orientation="Horizontal" Visibility="{Binding HasQuota, Converter={StaticResource BoolToVisibility}}">
|
|
<TextBlock Style="{StaticResource Text.Dot}" />
|
|
<ProgressBar Width="160" Maximum="1" Value="{Binding QuotaFraction, Mode=OneWay}" VerticalAlignment="Center" ToolTip="{l:Loc Tooltips.Server.Quota}"
|
|
AutomationProperties.Name="{Binding QuotaText}" />
|
|
</StackPanel>
|
|
<TextBlock Text="{Binding QuotaText}" Foreground="{DynamicResource Brush.TextMuted}" Margin="10,0,0,0" VerticalAlignment="Center"
|
|
Typography.NumeralAlignment="Tabular" ToolTip="{l:Loc Tooltips.Server.Quota}" />
|
|
</DockPanel>
|
|
|
|
<!-- Options of this PC; the render-node option names the encoders it offers. -->
|
|
<Border Grid.Row="3" Grid.ColumnSpan="2" Margin="0,14,0,0" Padding="0,10,0,0" BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,1,0,0">
|
|
<WrapPanel>
|
|
<StackPanel Orientation="Horizontal" Margin="0,0,22,0">
|
|
<CheckBox Content="{l:Loc Server.RenderNode}" IsChecked="{Binding RenderNodeOptIn}" ToolTip="{l:Loc Tooltips.Server.RenderNode}" VerticalAlignment="Center" />
|
|
<TextBlock Text="{Binding NodeCodecsText}" ToolTip="{Binding NodeCodecsToolTip}" Foreground="{DynamicResource Brush.TextMuted}" Margin="10,0,0,0"
|
|
VerticalAlignment="Center" Visibility="{Binding NodeCodecsText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}" />
|
|
</StackPanel>
|
|
<CheckBox Content="{l:Loc Server.KeepProxies}" IsChecked="{Binding KeepProxiesOffline}" ToolTip="{l:Loc Tooltips.Server.KeepProxies}" Margin="0,0,22,0" />
|
|
<CheckBox Content="{l:Loc Server.AutoSync}" IsChecked="{Binding SyncSettingsAutomatically}" ToolTip="{l:Loc Tooltips.Server.AutoSync}" Margin="0,0,22,0" />
|
|
<CheckBox Content="{l:Loc Server.PauseMetered}" IsChecked="{Binding PauseUploadsOnMetered}" ToolTip="{l:Loc Tooltips.Server.PauseMetered}" Margin="0,0,22,0" />
|
|
</WrapPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Sequences of this PC and of the server: chips, search, Upload all local; table; footer. -->
|
|
<Border Grid.Row="1" Style="{StaticResource Border.Panel}" Margin="0,14,0,0" DataContext="{Binding Sync}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Toolbar in visual (and Tab) order: title, chips, search, Upload all local. Chips wrap before anything is cut;
|
|
the filters and search show only while signed in. -->
|
|
<Grid Margin="14,10">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<WrapPanel VerticalAlignment="Center">
|
|
<TextBlock Text="{l:Loc Server.Sync.Title}" FontWeight="SemiBold" VerticalAlignment="Center" Margin="0,4,10,4" />
|
|
<ItemsControl ItemsSource="{Binding Chips}" ItemsPanel="{StaticResource Panel.Wrap}" Focusable="False" VerticalAlignment="Center"
|
|
Visibility="{Binding IsActive, Converter={StaticResource BoolToVisibility}}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate DataType="{x:Type srv:SyncFilterChip}">
|
|
<RadioButton x:Name="Chip" Style="{StaticResource RadioButton.Chip}" GroupName="SyncFilters" Content="{Binding Text}"
|
|
IsChecked="{Binding IsSelected, Mode=OneWay}" Command="{Binding SelectCommand}" ToolTip="{Binding ToolTip}" Margin="0,1,10,1" />
|
|
<DataTemplate.Triggers>
|
|
<!-- Conflicts waiting are drawn in warning colours, unless the chip is the chosen one (then Accent, DESIGN §4). -->
|
|
<MultiDataTrigger>
|
|
<MultiDataTrigger.Conditions>
|
|
<Condition Binding="{Binding NeedsAttention}" Value="True" />
|
|
<Condition Binding="{Binding IsSelected}" Value="False" />
|
|
</MultiDataTrigger.Conditions>
|
|
<Setter TargetName="Chip" Property="BorderBrush" Value="{DynamicResource Brush.Warning}" />
|
|
<Setter TargetName="Chip" Property="Foreground" Value="{DynamicResource Brush.Warning}" />
|
|
</MultiDataTrigger>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</WrapPanel>
|
|
<TextBox Grid.Column="1" Width="200" Height="30" Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}" ui:Field.Glyph="{StaticResource Icon.Search}"
|
|
ui:Field.Placeholder="{l:Loc Server.Sync.Search}" ToolTip="{l:Loc Tooltips.Server.Sync.Search}" AutomationProperties.Name="{l:Loc Server.Sync.Search}"
|
|
Margin="10,0,0,0" Visibility="{Binding IsActive, Converter={StaticResource BoolToVisibility}}" />
|
|
<Button Grid.Column="2" Content="{l:Loc Server.Sync.UploadAll}" Command="{Binding UploadAllCommand}" ToolTip="{Binding UploadAllToolTip}"
|
|
ToolTipService.ShowOnDisabled="True" Height="30" Margin="10,0,0,0" />
|
|
</Grid>
|
|
|
|
<!-- Header; the rows repeat its columns (Server.html: 1.6fr 150px 150px 150px 1.4fr with 10 px gaps). The list always
|
|
keeps its 10 px scroll-bar gutter and the header the same on its right, so the columns line up with or without scrolling. -->
|
|
<Border Grid.Row="1" BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,1,0,1" Padding="14,8,24,8">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1.6*" MinWidth="140" />
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="1.4*" MinWidth="280" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Sequence}" />
|
|
<TextBlock Grid.Column="1" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Local}" Margin="10,0,0,0" />
|
|
<TextBlock Grid.Column="2" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.Server}" Margin="10,0,0,0" />
|
|
<TextBlock Grid.Column="3" Style="{StaticResource Text.Header}" Text="{l:Loc Server.Sync.Column.State}" Margin="10,0,0,0" />
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Rows (virtualised): this PC, the server, the state and the actions that apply; conflicts on the warning tint.
|
|
Tab walks every row button (the rows themselves take no focus). Actions wrap when longer labels need it. -->
|
|
<ListBox x:Name="SyncList" Grid.Row="2" ItemsSource="{Binding Rows}" ItemContainerStyle="{StaticResource ListBoxItem.Sync}"
|
|
VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling" VirtualizingPanel.ScrollUnit="Pixel"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible" KeyboardNavigation.TabNavigation="Continue"
|
|
AutomationProperties.Name="{l:Loc Server.Sync.Title}" Visibility="{Binding HasRows, Converter={StaticResource BoolToVisibility}}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate DataType="{x:Type srv:SyncRow}">
|
|
<Border x:Name="RowBorder" Background="Transparent" Padding="14,0">
|
|
<Grid MinHeight="40">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1.6*" MinWidth="140" />
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="160" />
|
|
<ColumnDefinition Width="1.4*" MinWidth="280" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Style="{StaticResource Text.Cell}" Text="{Binding Title}" ToolTip="{Binding Title}" />
|
|
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding LocalText}" ToolTip="{Binding LocalText}" Margin="10,0,0,0" />
|
|
<TextBlock Grid.Column="2" Style="{StaticResource Text.Cell}" Text="{Binding ServerText}" ToolTip="{Binding ServerText}" Margin="10,0,0,0" />
|
|
<!-- A new state (uploading, in sync, failed) is announced with its sequence; progress ticks are not. -->
|
|
<ui:StatusGlyph Grid.Column="3" Kind="{Binding StateKind}" Text="{Binding StateText}" ToolTip="{Binding StateToolTip}"
|
|
FontSize="13" VerticalAlignment="Center" Margin="10,0,0,0"
|
|
AutomationProperties.LiveSetting="Polite" infra:LiveRegion.Text="{Binding StateAnnouncement}" />
|
|
<ItemsControl Grid.Column="4" ItemsSource="{Binding Actions}" ItemsPanel="{StaticResource Panel.Wrap}" Focusable="False" VerticalAlignment="Center" Margin="10,4,0,4">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate DataType="{x:Type srv:SyncRowAction}">
|
|
<Button Style="{StaticResource Button.Row}" Content="{Binding Text}" Command="{Binding Command}" ToolTip="{Binding ToolTip}"
|
|
AutomationProperties.Name="{Binding AccessibleName}" FontSize="12" Margin="0,2,6,2" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</Grid>
|
|
</Border>
|
|
<DataTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding IsConflict}" Value="True">
|
|
<Setter TargetName="RowBorder" Property="Background" Value="{DynamicResource Brush.WarningSubtle}" />
|
|
</DataTrigger>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
<!-- One sentence and its one action: connect, bring photos in, or show every sequence again. -->
|
|
<ui:EmptyState Grid.Row="2" Message="{Binding EmptyText}" Visibility="{Binding EmptyText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}">
|
|
<Grid>
|
|
<Button Content="{l:Loc Server.Connect}" Command="{Binding DataContext.ConnectCommand, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
ToolTip="{Binding DataContext.ConnectToolTip, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Visibility="{Binding Empty, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=SignedOut}" />
|
|
<Button Content="{l:Loc Shell.Nav.Import}" Command="{Binding ImportCommand}" ToolTip="{l:Loc Tooltips.Server.Sync.Import}"
|
|
Visibility="{Binding Empty, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Nothing}" />
|
|
<Button Content="{l:Loc Server.Sync.ClearFilters}" Command="{Binding ClearFiltersCommand}" ToolTip="{l:Loc Tooltips.Server.Sync.ClearFilters}"
|
|
Visibility="{Binding Empty, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=NoMatch}" />
|
|
</Grid>
|
|
</ui:EmptyState>
|
|
|
|
<!-- Footer: last comparison · server archive · retry state (announced) · admin panel for administrators. -->
|
|
<Border Grid.Row="3" BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,1,0,0" Padding="14,8">
|
|
<DockPanel LastChildFill="False" TextElement.FontSize="12">
|
|
<Button DockPanel.Dock="Right" Style="{StaticResource Button.Link}" Content="{l:Loc Server.Sync.OpenAdmin}" Command="{Binding OpenAdminCommand}"
|
|
ToolTip="{l:Loc Tooltips.Server.Sync.OpenAdmin}" Visibility="{Binding CanOpenAdmin, Converter={StaticResource BoolToVisibility}}" />
|
|
<TextBlock Text="{Binding LastSyncText}" Foreground="{DynamicResource Brush.TextMuted}" Margin="0,0,16,0" VerticalAlignment="Center"
|
|
Typography.NumeralAlignment="Tabular" ToolTip="{l:Loc Tooltips.Server.Sync.LastSync}"
|
|
Visibility="{Binding LastSyncText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}" />
|
|
<TextBlock Text="{Binding ArchiveText}" Foreground="{DynamicResource Brush.TextMuted}" Margin="0,0,16,0" VerticalAlignment="Center"
|
|
Typography.NumeralAlignment="Tabular" ToolTip="{l:Loc Tooltips.Server.Sync.Archive}"
|
|
Visibility="{Binding ArchiveText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}" />
|
|
<ui:StatusGlyph Kind="Warning" Text="{Binding ErrorText}" ToolTip="{Binding ErrorToolTip}" FontSize="12" VerticalAlignment="Center"
|
|
AutomationProperties.LiveSetting="Polite" infra:LiveRegion.Text="{Binding ErrorText}"
|
|
Visibility="{Binding ErrorText, Converter={x:Static ui:NullToCollapsedConverter.Instance}}" />
|
|
</DockPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|