FieldWorkClient/View/Friend/FriendControl.xaml

57 lines
2.6 KiB
XML

<UserControl x:Class="HeBianGu.App.Disk.View.Friend.FriendControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:h="https://github.com/HeBianGu"
xmlns:local="clr-namespace:HeBianGu.App.Disk.View.Friend"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="60" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<ListBox VerticalAlignment="Stretch"
h:Cattach.ItemHeight="Auto"
h:Cattach.ItemHorizontalAlignment="Center"
h:Cattach.ItemHorizontalContentAlignment="Center"
BorderBrush="{DynamicResource {x:Static h:BrushKeys.BorderBrushDefault}}"
BorderThickness="0,0,1,0"
ItemsSource="{Binding LinkActions}"
SelectedIndex="0"
SelectedItem="{Binding SelectLink,Mode=TwoWay}"
Style="{DynamicResource {x:Static h:ListBoxKeys.Dynamic}}">
<ListBox.ItemTemplate>
<DataTemplate DataType="{x:Type h:LinkAction}">
<Grid Height="80">
<StackPanel Margin="0" VerticalAlignment="Center">
<TextBlock Style="{DynamicResource {x:Static h:TextBlockKeys.Icon}}" Text="{Binding Logo}" />
<TextBlock Margin="0,10,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="{Binding DisplayName}" />
</StackPanel>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
<!--<ListBox.Template>
<ControlTemplate TargetType="ListBox">
<Grid>
<Border Background="{DynamicResource {x:Static h:BrushKeys.Dark0_2}}" Opacity="0.6" />
<ItemsPresenter SnapsToDevicePixels="True" />
</Grid>
</ControlTemplate>
</ListBox.Template>-->
</ListBox>
<!-- 中间内容 -->
<Grid Grid.Column="1">
<h:LinkActionFrame LinkAction="{Binding SelectLink,Mode=TwoWay}" />
</Grid>
</Grid>
</UserControl>