- tweak: Dependency injection think
This commit is contained in:
70
Nebula.Launcher/Views/MainView.axaml
Normal file
70
Nebula.Launcher/Views/MainView.axaml
Normal file
@@ -0,0 +1,70 @@
|
||||
<UserControl
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800"
|
||||
mc:Ignorable="d"
|
||||
x:Class="Nebula.Launcher.Views.MainView"
|
||||
x:DataType="viewModels:MainViewModel"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:converters="clr-namespace:Nebula.Launcher.Converters"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:models="clr-namespace:Nebula.Launcher.Models"
|
||||
xmlns:viewModels="clr-namespace:Nebula.Launcher.ViewModels"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="*"
|
||||
Margin="0"
|
||||
RowDefinitions="*,40">
|
||||
<SplitView
|
||||
CompactPaneLength="65"
|
||||
DisplayMode="CompactInline"
|
||||
IsPaneOpen="{Binding IsPaneOpen}"
|
||||
PaneBackground="#00000000">
|
||||
<SplitView.Pane>
|
||||
<Border
|
||||
BorderThickness="0,0,2,0"
|
||||
CornerRadius="0,8,8,0"
|
||||
Grid.Column="0"
|
||||
Grid.Row="0"
|
||||
Margin="0,0,5,0"
|
||||
Padding="0">
|
||||
<ListBox
|
||||
ItemsSource="{Binding Items}"
|
||||
Margin="2,0,-100,0"
|
||||
Padding="0"
|
||||
SelectedItem="{Binding SelectedListItem}">
|
||||
<ListBox.Styles>
|
||||
<Style Selector="ListBoxItem">
|
||||
<Setter Property="Padding" Value="12 8" />
|
||||
</Style>
|
||||
</ListBox.Styles>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate DataType="{x:Type models:ListItemTemplate}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="17">
|
||||
<PathIcon Data="{Binding IconKey, Converter={x:Static converters:TypeConverters.IconConverter}}" Width="14" />
|
||||
<TextBlock Text="{Binding Label}">
|
||||
<TextBlock.IsVisible />
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</Border>
|
||||
</SplitView.Pane>
|
||||
</SplitView>
|
||||
|
||||
|
||||
<Border
|
||||
BorderThickness="0,2,0,0"
|
||||
CornerRadius="0,0,0,0"
|
||||
Grid.Row="1"
|
||||
Margin="0,0,0,0"
|
||||
Padding="5">
|
||||
<Panel>
|
||||
<Label HorizontalAlignment="Left" VerticalAlignment="Center">cinka.ru</Label>
|
||||
<Label HorizontalAlignment="Right" VerticalAlignment="Center">v0.01</Label>
|
||||
</Panel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user