Parent's children, optimalizations
This commit is contained in:
@@ -26,6 +26,7 @@ namespace FileTime.GuiApp
|
||||
.AddSingleton<IGuiAppState, GuiAppState>(s => s.GetRequiredService<GuiAppState>())
|
||||
.AddSingleton<DefaultModeKeyInputHandler>()
|
||||
.AddSingleton<RapidTravelModeKeyInputHandler>()
|
||||
.AddSingleton<IRxSchedulerService, AvaloniaRxSchedulerService>()
|
||||
//TODO: move??
|
||||
.AddTransient<ITab, Tab>()
|
||||
.AddTransient<ITabViewModel, TabViewModel>()
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Reactive.Concurrency;
|
||||
using FileTime.App.Core.Services;
|
||||
using ReactiveUI;
|
||||
|
||||
namespace FileTime.GuiApp.Services
|
||||
{
|
||||
public class AvaloniaRxSchedulerService : IRxSchedulerService
|
||||
{
|
||||
public IScheduler GetUIScheduler() => RxApp.MainThreadScheduler;
|
||||
|
||||
public IScheduler GetWorkerScheduler() => RxApp.TaskpoolScheduler;
|
||||
}
|
||||
}
|
||||
@@ -103,6 +103,23 @@
|
||||
<ColumnDefinition Width="45*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<ListBox
|
||||
x:CompileBindings="False"
|
||||
AutoScrollToSelectedItem="True"
|
||||
Classes="ContentListView"
|
||||
IsTabStop="True"
|
||||
Items="{Binding AppState.SelectedTab^.ParentsChildren^}"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Visible">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="corevm:IItemViewModel">
|
||||
<local:ItemView
|
||||
ShowAttributes="False"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Stretch" />
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
|
||||
<Rectangle
|
||||
Grid.Column="1"
|
||||
@@ -112,7 +129,6 @@
|
||||
VerticalAlignment="Stretch"
|
||||
Fill="{DynamicResource ContentSeparatorBrush}" />
|
||||
|
||||
|
||||
<Grid
|
||||
Grid.Column="2"
|
||||
RowDefinitions="Auto,*">
|
||||
|
||||
Reference in New Issue
Block a user