Fixing ProfileSelectorDialog and removing unnecessary style which literally does nothing visually
This commit is contained in:
parent
c0cc54cc56
commit
4d3a98e71d
@ -17,10 +17,7 @@
|
|||||||
<viewModels:ProfileSelectorDialogViewModel />
|
<viewModels:ProfileSelectorDialogViewModel />
|
||||||
</Design.DataContext>
|
</Design.DataContext>
|
||||||
<Grid Margin="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RowDefinitions="*,Auto">
|
<Grid Margin="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RowDefinitions="*,Auto">
|
||||||
<Border
|
<StackPanel>
|
||||||
CornerRadius="5"
|
|
||||||
BorderBrush="{DynamicResource AppListHoverBackgroundColor}"
|
|
||||||
BorderThickness="1">
|
|
||||||
<ListBox
|
<ListBox
|
||||||
MaxHeight="300"
|
MaxHeight="300"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -56,7 +53,7 @@
|
|||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
CornerRadius="6"
|
CornerRadius="5"
|
||||||
Background="{Binding BackgroundColor}">
|
Background="{Binding BackgroundColor}">
|
||||||
<StackPanel
|
<StackPanel
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -64,42 +61,26 @@
|
|||||||
<Image
|
<Image
|
||||||
Width="96"
|
Width="96"
|
||||||
Height="96"
|
Height="96"
|
||||||
|
Margin="0,0,0,10"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
Source="{Binding Image, Converter={x:Static helpers:BitmapArrayValueConverter.Instance}}" />
|
Source="{Binding Image, Converter={x:Static helpers:BitmapArrayValueConverter.Instance}}" />
|
||||||
<Panel
|
<TextBlock
|
||||||
Height="40"
|
Text="{Binding Name}"
|
||||||
HorizontalAlignment="Stretch"
|
Height="30"
|
||||||
VerticalAlignment="Stretch">
|
MaxWidth="90"
|
||||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
TextAlignment="Center"
|
||||||
<TextBlock
|
HorizontalAlignment="Center"
|
||||||
Text="{Binding Name}"
|
VerticalAlignment="Center"
|
||||||
MaxWidth="85"
|
TextTrimming="CharacterEllipsis"
|
||||||
TextAlignment="Center"
|
TextWrapping="Wrap"
|
||||||
TextTrimming="CharacterEllipsis"
|
MaxLines="2" />
|
||||||
TextWrapping="Wrap"
|
|
||||||
MaxLines="2" />
|
|
||||||
</StackPanel>
|
|
||||||
</Panel>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate
|
|
||||||
DataType="viewModels:BaseModel">
|
|
||||||
<Panel
|
|
||||||
Height="120"
|
|
||||||
Width="100">
|
|
||||||
<Panel.Styles>
|
|
||||||
<Style Selector="Panel">
|
|
||||||
<Setter Property="Background" Value="{DynamicResource ListBoxBackground}" />
|
|
||||||
</Style>
|
|
||||||
</Panel.Styles>
|
|
||||||
</Panel>
|
|
||||||
</DataTemplate>
|
|
||||||
</ListBox.DataTemplates>
|
</ListBox.DataTemplates>
|
||||||
</ListBox>
|
</ListBox>
|
||||||
</Border>
|
</StackPanel>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@ -119,11 +119,6 @@
|
|||||||
Click="AddUser">
|
Click="AddUser">
|
||||||
<ui:SymbolIcon Symbol="Add" />
|
<ui:SymbolIcon Symbol="Add" />
|
||||||
</Button>
|
</Button>
|
||||||
<Panel.Styles>
|
|
||||||
<Style Selector="Panel">
|
|
||||||
<Setter Property="Background" Value="{DynamicResource ListBoxBackground}"/>
|
|
||||||
</Style>
|
|
||||||
</Panel.Styles>
|
|
||||||
</Panel>
|
</Panel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.DataTemplates>
|
</ListBox.DataTemplates>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user