Fix build errors
This commit is contained in:
@@ -28,7 +28,7 @@ public class FontService : IFontService
|
|||||||
|
|
||||||
public string? GetMainFont()
|
public string? GetMainFont()
|
||||||
{
|
{
|
||||||
var installedFonts = FontManager.Current.GetInstalledFontFamilyNames().ToList();
|
var installedFonts = FontManager.Current.SystemFonts.Select(f => f.Name).ToList();
|
||||||
return _fontConfiguration.CurrentValue.Main.Find(installedFonts.Contains);
|
return _fontConfiguration.CurrentValue.Main.Find(installedFonts.Contains);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||||
<Setter Property="ContextMenu">
|
<Setter Property="ContextMenu">
|
||||||
<ContextMenu Items="{Binding Converter={StaticResource ContextMenuGenerator}}" />
|
<ContextMenu ItemsSource="{Binding Converter={StaticResource ContextMenuGenerator}}" />
|
||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
using Avalonia;
|
||||||
|
using Avalonia.Input.Platform;
|
||||||
using FileTime.App.Core.Services;
|
using FileTime.App.Core.Services;
|
||||||
|
|
||||||
namespace FileTime.GuiApp.Services;
|
namespace FileTime.GuiApp.Services;
|
||||||
@@ -6,7 +8,8 @@ public class SystemClipboardService : ISystemClipboardService
|
|||||||
{
|
{
|
||||||
public async Task CopyToClipboardAsync(string text)
|
public async Task CopyToClipboardAsync(string text)
|
||||||
{
|
{
|
||||||
if (global::Avalonia.Application.Current?.Clipboard is { } clipboard)
|
var clipboard = AvaloniaLocator.Current.GetService<IClipboard>();
|
||||||
|
if (clipboard is not null)
|
||||||
{
|
{
|
||||||
await clipboard.SetTextAsync(text);
|
await clipboard.SetTextAsync(text);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,12 +88,16 @@ public class WindowsContextMenuProvider : IContextMenuProvider
|
|||||||
}
|
}
|
||||||
else if (shellKey.GetValue("ExtendedSubCommandsKey") is string extendedCommands)
|
else if (shellKey.GetValue("ExtendedSubCommandsKey") is string extendedCommands)
|
||||||
{
|
{
|
||||||
var rootMenu = new MenuItem() {Header = text, Icon = image};
|
|
||||||
var rootMenuItems = new List<object>();
|
var rootMenuItems = new List<object>();
|
||||||
|
|
||||||
ProcessRegistryKey(Registry.ClassesRoot.OpenSubKey(extendedCommands), rootMenuItems, folderPath);
|
ProcessRegistryKey(Registry.ClassesRoot.OpenSubKey(extendedCommands), rootMenuItems, folderPath);
|
||||||
|
|
||||||
rootMenu.Items = rootMenuItems.ToArray();
|
var rootMenu = new MenuItem {Header = text, Icon = image};
|
||||||
|
foreach (var item in rootMenuItems)
|
||||||
|
{
|
||||||
|
rootMenu.Items.Add(item);
|
||||||
|
}
|
||||||
|
|
||||||
menuItems.Add(rootMenu);
|
menuItems.Add(rootMenu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<ListBox
|
<ListBox
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Classes="CommandPalette"
|
Classes="CommandPalette"
|
||||||
Items="{Binding FilteredMatches}"
|
ItemsSource="{Binding FilteredMatches}"
|
||||||
SelectedItem="{Binding SelectedItem}">
|
SelectedItem="{Binding SelectedItem}">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate x:DataType="x:String">
|
<DataTemplate x:DataType="x:String">
|
||||||
|
|||||||
@@ -1,97 +1,153 @@
|
|||||||
<UserControl xmlns="https://github.com/avaloniaui"
|
<UserControl
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
x:Class="FileTime.GuiApp.Views.ItemView"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:appcore="using:FileTime.App.Core.ViewModels"
|
xmlns:appcore="using:FileTime.App.Core.ViewModels"
|
||||||
xmlns:appcoreenums="using:FileTime.App.Core.Models.Enums"
|
xmlns:appcoreenums="using:FileTime.App.Core.Models.Enums"
|
||||||
xmlns:guiappvm="using:FileTime.GuiApp.ViewModels"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
xmlns:guiappvm="using:FileTime.GuiApp.ViewModels"
|
||||||
x:Class="FileTime.GuiApp.Views.ItemView"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
x:Name="ItemRoot"
|
x:Name="ItemRoot"
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
Background="{Binding ViewMode^,Converter={StaticResource ItemViewModeToBackgroundConverter}}"
|
d:DesignHeight="450"
|
||||||
x:CompileBindings="True"
|
d:DesignWidth="800"
|
||||||
x:DataType="appcore:IItemViewModel">
|
x:CompileBindings="True"
|
||||||
<Grid ColumnDefinitions="20,*,Auto" Margin="3" x:Name="RootGrid">
|
x:DataType="appcore:IItemViewModel"
|
||||||
<Grid.Styles>
|
Background="{Binding ViewMode^, Converter={StaticResource ItemViewModeToBackgroundConverter}}"
|
||||||
<Style Selector="TextBlock">
|
mc:Ignorable="d">
|
||||||
<Setter x:CompileBindings="False" Property="Foreground" Value="{Binding DataContext.ViewMode^,Converter={StaticResource ItemViewModeToForegroundConverter},ElementName=ItemRoot}"/>
|
<Grid
|
||||||
</Style>
|
x:Name="RootGrid"
|
||||||
</Grid.Styles>
|
Margin="3"
|
||||||
<Image
|
ColumnDefinitions="20,*,Auto">
|
||||||
Width="18"
|
<Grid.Styles>
|
||||||
Height="18"
|
<Style Selector="TextBlock">
|
||||||
HorizontalAlignment="Left"
|
<Setter x:CompileBindings="False" Property="Foreground" Value="{Binding DataContext.ViewMode^, Converter={StaticResource ItemViewModeToForegroundConverter}, ElementName=ItemRoot}" />
|
||||||
VerticalAlignment="Center"
|
</Style>
|
||||||
Source="{Binding Converter={StaticResource ItemToImageConverter}}" />
|
</Grid.Styles>
|
||||||
|
<Image
|
||||||
|
Width="18"
|
||||||
|
Height="18"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Source="{Binding Converter={StaticResource ItemToImageConverter}}" />
|
||||||
|
|
||||||
<ItemsControl
|
<ItemsControl
|
||||||
Margin="5,0,0,0"
|
Grid.Column="1"
|
||||||
Grid.Column="1"
|
Margin="5,0,0,0"
|
||||||
VerticalAlignment="Center"
|
HorizontalAlignment="Stretch"
|
||||||
HorizontalAlignment="Stretch">
|
VerticalAlignment="Center">
|
||||||
<ItemsControl.Items>
|
<ItemsControl.ItemsSource>
|
||||||
<MultiBinding Converter="{StaticResource NamePartShrinkerConverter}">
|
<MultiBinding Converter="{StaticResource NamePartShrinkerConverter}">
|
||||||
<MultiBinding.Bindings>
|
<MultiBinding.Bindings>
|
||||||
<Binding Path="DisplayName^"/>
|
<Binding Path="DisplayName^" />
|
||||||
<Binding ElementName="RootGrid" Path="Bounds.Width"/>
|
<Binding
|
||||||
<Binding ElementName="ItemRoot" Path="ShowAttributes"/>
|
ElementName="RootGrid"
|
||||||
</MultiBinding.Bindings>
|
Path="Bounds.Width" />
|
||||||
</MultiBinding>
|
<Binding
|
||||||
</ItemsControl.Items>
|
ElementName="ItemRoot"
|
||||||
<ItemsControl.ItemsPanel>
|
Path="ShowAttributes" />
|
||||||
<ItemsPanelTemplate>
|
</MultiBinding.Bindings>
|
||||||
<StackPanel Orientation="Horizontal" />
|
</MultiBinding>
|
||||||
</ItemsPanelTemplate>
|
</ItemsControl.ItemsSource>
|
||||||
</ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsPanelTemplate>
|
||||||
<DataTemplate x:DataType="guiappvm:ItemNamePartViewModel">
|
<StackPanel Orientation="Horizontal" />
|
||||||
<Grid>
|
</ItemsPanelTemplate>
|
||||||
<TextBlock
|
</ItemsControl.ItemsPanel>
|
||||||
Text="{Binding Text}"
|
<ItemsControl.ItemTemplate>
|
||||||
TextDecorations="{Binding TextDecorations}"/>
|
<DataTemplate x:DataType="guiappvm:ItemNamePartViewModel">
|
||||||
</Grid>
|
<Grid>
|
||||||
</DataTemplate>
|
<TextBlock
|
||||||
</ItemsControl.ItemTemplate>
|
Text="{Binding Text}"
|
||||||
</ItemsControl>
|
TextDecorations="{Binding TextDecorations}" />
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
|
||||||
<Grid Grid.Column="2" IsVisible="{Binding ShowAttributes,ElementName=ItemRoot}">
|
<Grid
|
||||||
<Grid ColumnDefinitions="50,50,90,40,45"
|
Grid.Column="2"
|
||||||
HorizontalAlignment="Right"
|
IsVisible="{Binding ShowAttributes, ElementName=ItemRoot}">
|
||||||
IsVisible="{Binding Converter={StaticResource ItemViewModelIsAttributeTypeConverter},ConverterParameter={x:Static appcoreenums:ItemAttributeType.File}}"
|
<Grid
|
||||||
x:DataType="appcore:IFileViewModel">
|
HorizontalAlignment="Right"
|
||||||
|
x:DataType="appcore:IFileViewModel"
|
||||||
|
ColumnDefinitions="50,50,90,40,45"
|
||||||
|
IsVisible="{Binding Converter={StaticResource ItemViewModelIsAttributeTypeConverter}, ConverterParameter={x:Static appcoreenums:ItemAttributeType.File}}">
|
||||||
|
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Text="{Binding BaseItem.DisplayName, Converter={StaticResource GetFileExtensionConverter}}"/>
|
<TextBlock
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Grid.Column="1" Text="{Binding Size, Converter={StaticResource FormatSizeConverter}, ConverterParameter=0}"/>
|
HorizontalAlignment="Right"
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Grid.Column="2" Text="{Binding BaseItem.CreatedAt, Converter={StaticResource DateTimeConverter}, ConverterParameter=yyyy-MM-dd}"/>
|
Classes="SmallText"
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Grid.Column="3" Text="{Binding BaseItem.CreatedAt, Converter={StaticResource DateTimeConverter}, ConverterParameter=hh:mm}"/>
|
Text="{Binding BaseItem.DisplayName, Converter={StaticResource GetFileExtensionConverter}}" />
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Grid.Column="4" Text="{Binding BaseItem.Attributes}"/>
|
<TextBlock
|
||||||
</Grid>
|
Grid.Column="1"
|
||||||
<Grid ColumnDefinitions="90,40,45"
|
HorizontalAlignment="Right"
|
||||||
HorizontalAlignment="Right"
|
Classes="SmallText"
|
||||||
IsVisible="{Binding Converter={StaticResource ItemViewModelIsAttributeTypeConverter},ConverterParameter={x:Static appcoreenums:ItemAttributeType.Container}}"
|
Text="{Binding Size, Converter={StaticResource FormatSizeConverter}, ConverterParameter=0}" />
|
||||||
x:DataType="appcore:IContainerViewModel">
|
<TextBlock
|
||||||
|
Grid.Column="2"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Classes="SmallText"
|
||||||
|
Text="{Binding BaseItem.CreatedAt, Converter={StaticResource DateTimeConverter}, ConverterParameter=yyyy-MM-dd}" />
|
||||||
|
<TextBlock
|
||||||
|
Grid.Column="3"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Classes="SmallText"
|
||||||
|
Text="{Binding BaseItem.CreatedAt, Converter={StaticResource DateTimeConverter}, ConverterParameter=hh:mm}" />
|
||||||
|
<TextBlock
|
||||||
|
Grid.Column="4"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Classes="SmallText"
|
||||||
|
Text="{Binding BaseItem.Attributes}" />
|
||||||
|
</Grid>
|
||||||
|
<Grid
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
x:DataType="appcore:IContainerViewModel"
|
||||||
|
ColumnDefinitions="90,40,45"
|
||||||
|
IsVisible="{Binding Converter={StaticResource ItemViewModelIsAttributeTypeConverter}, ConverterParameter={x:Static appcoreenums:ItemAttributeType.Container}}">
|
||||||
|
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Text="{Binding CreatedAt, Converter={StaticResource DateTimeConverter}, ConverterParameter=yyyy-MM-dd}"/>
|
<TextBlock
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Grid.Column="1" Text="{Binding BaseItem.CreatedAt, Converter={StaticResource DateTimeConverter}, ConverterParameter=hh:mm}"/>
|
HorizontalAlignment="Right"
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Grid.Column="2" Text="{Binding BaseItem.Attributes}"/>
|
Classes="SmallText"
|
||||||
</Grid>
|
Text="{Binding CreatedAt, Converter={StaticResource DateTimeConverter}, ConverterParameter=yyyy-MM-dd}" />
|
||||||
<Grid ColumnDefinitions="50,90,40,45"
|
<TextBlock
|
||||||
HorizontalAlignment="Right"
|
Grid.Column="1"
|
||||||
IsVisible="{Binding Converter={StaticResource ItemViewModelIsAttributeTypeConverter},ConverterParameter={x:Static appcoreenums:ItemAttributeType.SizeContainer}}"
|
HorizontalAlignment="Right"
|
||||||
x:DataType="appcore:IContainerSizeContainerViewModel">
|
Classes="SmallText"
|
||||||
|
Text="{Binding BaseItem.CreatedAt, Converter={StaticResource DateTimeConverter}, ConverterParameter=hh:mm}" />
|
||||||
|
<TextBlock
|
||||||
|
Grid.Column="2"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Classes="SmallText"
|
||||||
|
Text="{Binding BaseItem.Attributes}" />
|
||||||
|
</Grid>
|
||||||
|
<Grid
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
x:DataType="appcore:IContainerSizeContainerViewModel"
|
||||||
|
ColumnDefinitions="50,90,40,45"
|
||||||
|
IsVisible="{Binding Converter={StaticResource ItemViewModelIsAttributeTypeConverter}, ConverterParameter={x:Static appcoreenums:ItemAttributeType.SizeContainer}}">
|
||||||
|
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Text="{Binding Size, Converter={StaticResource FormatSizeConverter}, ConverterParameter=0}"/>
|
<TextBlock
|
||||||
</Grid>
|
HorizontalAlignment="Right"
|
||||||
<Grid ColumnDefinitions="50,50"
|
Classes="SmallText"
|
||||||
HorizontalAlignment="Right"
|
Text="{Binding Size, Converter={StaticResource FormatSizeConverter}, ConverterParameter=0}" />
|
||||||
IsVisible="{Binding Converter={StaticResource ItemViewModelIsAttributeTypeConverter},ConverterParameter={x:Static appcoreenums:ItemAttributeType.Element}}"
|
</Grid>
|
||||||
x:DataType="appcore:IElementViewModel">
|
<Grid
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
x:DataType="appcore:IElementViewModel"
|
||||||
|
ColumnDefinitions="50,50"
|
||||||
|
IsVisible="{Binding Converter={StaticResource ItemViewModelIsAttributeTypeConverter}, ConverterParameter={x:Static appcoreenums:ItemAttributeType.Element}}">
|
||||||
|
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Text="{Binding BaseItem.DisplayName, Converter={StaticResource GetFileExtensionConverter}}"/>
|
<TextBlock
|
||||||
<TextBlock HorizontalAlignment="Right" Classes="SmallText" Grid.Column="1" Text="{Binding Size, Converter={StaticResource FormatSizeConverter}, ConverterParameter=0}"/>
|
HorizontalAlignment="Right"
|
||||||
</Grid>
|
Classes="SmallText"
|
||||||
</Grid>
|
Text="{Binding BaseItem.DisplayName, Converter={StaticResource GetFileExtensionConverter}}" />
|
||||||
</Grid>
|
<TextBlock
|
||||||
</UserControl>
|
Grid.Column="1"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Classes="SmallText"
|
||||||
|
Text="{Binding Size, Converter={StaticResource FormatSizeConverter}, ConverterParameter=0}" />
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
|
|
||||||
<ItemsRepeater
|
<ItemsRepeater
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Items="{Binding AppState.RootDriveInfos.Collection}">
|
ItemsSource="{Binding AppState.RootDriveInfos.Collection}">
|
||||||
<ItemsRepeater.ItemTemplate>
|
<ItemsRepeater.ItemTemplate>
|
||||||
<DataTemplate x:DataType="vm:RootDriveInfo">
|
<DataTemplate x:DataType="vm:RootDriveInfo">
|
||||||
<Grid
|
<Grid
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
|
|
||||||
<ItemsRepeater
|
<ItemsRepeater
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Items="{Binding AppState.Places}">
|
ItemsSource="{Binding AppState.Places}">
|
||||||
<ItemsRepeater.ItemTemplate>
|
<ItemsRepeater.ItemTemplate>
|
||||||
<DataTemplate x:DataType="vm:PlaceInfo">
|
<DataTemplate x:DataType="vm:PlaceInfo">
|
||||||
<Grid
|
<Grid
|
||||||
@@ -280,7 +280,7 @@
|
|||||||
RowDefinitions="Auto,40,*,Auto">
|
RowDefinitions="Auto,40,*,Auto">
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<ItemsControl Items="{Binding AppState.TimelineViewModel.ParallelCommandsGroups.Collection}">
|
<ItemsControl ItemsSource="{Binding AppState.TimelineViewModel.ParallelCommandsGroups.Collection}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<StackPanel Orientation="Horizontal" />
|
<StackPanel Orientation="Horizontal" />
|
||||||
@@ -295,7 +295,7 @@
|
|||||||
Background="{DynamicResource ContainerBackgroundColor}"
|
Background="{DynamicResource ContainerBackgroundColor}"
|
||||||
CornerRadius="10">
|
CornerRadius="10">
|
||||||
<ScrollViewer>
|
<ScrollViewer>
|
||||||
<ItemsControl Items="{Binding Commands.Collection}">
|
<ItemsControl ItemsSource="{Binding Commands.Collection}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Border
|
<Border
|
||||||
@@ -321,7 +321,7 @@
|
|||||||
|
|
||||||
<ItemsControl
|
<ItemsControl
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Items="{Binding AppState.Tabs}">
|
ItemsSource="{Binding AppState.Tabs}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<StackPanel Orientation="Horizontal" />
|
<StackPanel Orientation="Horizontal" />
|
||||||
@@ -363,7 +363,7 @@
|
|||||||
AutoScrollToSelectedItem="True"
|
AutoScrollToSelectedItem="True"
|
||||||
Classes="ContentListView"
|
Classes="ContentListView"
|
||||||
IsTabStop="True"
|
IsTabStop="True"
|
||||||
Items="{Binding AppState.SelectedTab^.ParentsChildrenCollection.Collection}"
|
ItemsSource="{Binding AppState.SelectedTab^.ParentsChildrenCollection.Collection}"
|
||||||
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||||
ScrollViewer.VerticalScrollBarVisibility="Visible">
|
ScrollViewer.VerticalScrollBarVisibility="Visible">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
@@ -408,7 +408,7 @@
|
|||||||
AutoScrollToSelectedItem="True"
|
AutoScrollToSelectedItem="True"
|
||||||
Classes="ContentListView"
|
Classes="ContentListView"
|
||||||
IsTabStop="True"
|
IsTabStop="True"
|
||||||
Items="{Binding AppState.SelectedTab^.CurrentItemsCollection.Collection}"
|
ItemsSource="{Binding AppState.SelectedTab^.CurrentItemsCollection.Collection}"
|
||||||
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||||
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
||||||
SelectedItem="{Binding AppState.SelectedTab^.CurrentSelectedItem^}">
|
SelectedItem="{Binding AppState.SelectedTab^.CurrentSelectedItem^}">
|
||||||
@@ -451,7 +451,7 @@
|
|||||||
AutoScrollToSelectedItem="True"
|
AutoScrollToSelectedItem="True"
|
||||||
Classes="ContentListView"
|
Classes="ContentListView"
|
||||||
IsVisible="{Binding AppState.SelectedTab^.SelectedsChildrenCollection.Collection.Count, Converter={StaticResource NotEqualsConverter}, ConverterParameter=0}"
|
IsVisible="{Binding AppState.SelectedTab^.SelectedsChildrenCollection.Collection.Count, Converter={StaticResource NotEqualsConverter}, ConverterParameter=0}"
|
||||||
Items="{Binding AppState.SelectedTab^.SelectedsChildrenCollection.Collection}">
|
ItemsSource="{Binding AppState.SelectedTab^.SelectedsChildrenCollection.Collection}">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate x:DataType="corevm:IItemViewModel">
|
<DataTemplate x:DataType="corevm:IItemViewModel">
|
||||||
<local:ItemView />
|
<local:ItemView />
|
||||||
@@ -483,7 +483,7 @@
|
|||||||
|
|
||||||
<ItemsRepeater
|
<ItemsRepeater
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Items="{Binding AppState.SelectedTab^.CurrentSelectedItem^.BaseItem.Exceptions^}">
|
ItemsSource="{Binding AppState.SelectedTab^.CurrentSelectedItem^.BaseItem.Exceptions^}">
|
||||||
<ItemsRepeater.ItemTemplate>
|
<ItemsRepeater.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
@@ -518,7 +518,7 @@
|
|||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
IsVisible="{Binding AppState.PopupTexts.Count, Converter={StaticResource NotEqualsConverter}, ConverterParameter=0}"
|
IsVisible="{Binding AppState.PopupTexts.Count, Converter={StaticResource NotEqualsConverter}, ConverterParameter=0}"
|
||||||
Items="{Binding AppState.PopupTexts}">
|
ItemsSource="{Binding AppState.PopupTexts}">
|
||||||
<ItemsRepeater.Styles>
|
<ItemsRepeater.Styles>
|
||||||
<Style Selector="TextBlock">
|
<Style Selector="TextBlock">
|
||||||
<Style.Animations>
|
<Style.Animations>
|
||||||
@@ -591,7 +591,7 @@
|
|||||||
|
|
||||||
<ItemsRepeater
|
<ItemsRepeater
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Items="{Binding AppState.PossibleCommands}">
|
ItemsSource="{Binding AppState.PossibleCommands}">
|
||||||
<ItemsRepeater.ItemTemplate>
|
<ItemsRepeater.ItemTemplate>
|
||||||
<DataTemplate x:DataType="config:CommandBindingConfiguration">
|
<DataTemplate x:DataType="config:CommandBindingConfiguration">
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -627,7 +627,7 @@
|
|||||||
|
|
||||||
<ItemsControl
|
<ItemsControl
|
||||||
x:Name="InputList"
|
x:Name="InputList"
|
||||||
Items="{Binding DialogService.ReadInput^.Inputs}">
|
ItemsSource="{Binding DialogService.ReadInput^.Inputs}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Grid
|
<Grid
|
||||||
@@ -655,7 +655,7 @@
|
|||||||
x:DataType="interactions:IOptionsInputElement"
|
x:DataType="interactions:IOptionsInputElement"
|
||||||
Classes="RadioButtonListBox"
|
Classes="RadioButtonListBox"
|
||||||
IsVisible="{Binding Type, Converter={StaticResource EqualityConverter}, ConverterParameter={x:Static interactions:InputType.Options}}"
|
IsVisible="{Binding Type, Converter={StaticResource EqualityConverter}, ConverterParameter={x:Static interactions:InputType.Options}}"
|
||||||
Items="{Binding Options}"
|
ItemsSource="{Binding Options}"
|
||||||
SelectedItem="{Binding Value}" />
|
SelectedItem="{Binding Value}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
<UserControl xmlns="https://github.com/avaloniaui"
|
<UserControl
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
x:Class="FileTime.GuiApp.Views.PathPresenter"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
xmlns:coremodels="using:FileTime.Core.Models"
|
||||||
xmlns:coremodels="using:FileTime.Core.Models"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
x:Class="FileTime.GuiApp.Views.PathPresenter">
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
<ItemsControl Items="{Binding Converter={StaticResource SplitStringConverter}, ConverterParameter={x:Static coremodels:Constants.SeparatorChar}}">
|
d:DesignHeight="450"
|
||||||
|
d:DesignWidth="800"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
<ItemsControl ItemsSource="{Binding Converter={StaticResource SplitStringConverter}, ConverterParameter={x:Static coremodels:Constants.SeparatorChar}}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<StackPanel Orientation="Horizontal" />
|
<StackPanel Orientation="Horizontal" />
|
||||||
@@ -14,8 +17,11 @@
|
|||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBlock Text="{Binding}"/>
|
<TextBlock Text="{Binding}" />
|
||||||
<TextBlock Text="/" Margin="5,0,5,0" Foreground="{DynamicResource LightForegroundBrush}"/>
|
<TextBlock
|
||||||
|
Margin="5,0,5,0"
|
||||||
|
Foreground="{DynamicResource LightForegroundBrush}"
|
||||||
|
Text="/" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
|
|||||||
@@ -10,9 +10,4 @@ public partial class PathPresenter : UserControl
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
AvaloniaXamlLoader.Load(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user