mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-04-17 22:13:50 +02:00
added person picture
This commit is contained in:
parent
046639681f
commit
e6704c331f
@ -58,6 +58,7 @@
|
||||
<ColumnDefinition Width="{Binding ElementName=Window, Path=(ui:TitleBar.SystemOverlayLeftInset), Converter={StaticResource PixelsToGridLength}}" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Menu
|
||||
Grid.Column="1"
|
||||
@ -110,11 +111,18 @@
|
||||
<!-- Horizontally centered title -->
|
||||
<TextBlock
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="3"
|
||||
Grid.ColumnSpan="4"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="13"
|
||||
Text="{Binding ElementName=Window, Path=Title}" />
|
||||
<ui:PersonPicture
|
||||
Grid.Column="3"
|
||||
Height="24"
|
||||
Margin="0,0,150,0"
|
||||
DisplayName="Holger Börchers"
|
||||
ToolTip="Holger Börchers"
|
||||
WindowChrome.IsHitTestVisibleInChrome="True" />
|
||||
</Grid>
|
||||
<!-- Footer -->
|
||||
<Grid
|
||||
|
@ -29,7 +29,7 @@ namespace ModernWpfPlayground.PropertyPresenter2
|
||||
if (!(value is string strValue)) return Binding.DoNothing;
|
||||
if (strValue.StartsWith(dynResPrefix, StringComparison.Ordinal))
|
||||
{
|
||||
var resource = Application.Current.TryFindResource(strValue.Replace(dynResPrefix, string.Empty));
|
||||
var resource = Application.Current.TryFindResource(strValue.Replace(dynResPrefix, string.Empty , StringComparison.InvariantCulture));
|
||||
return resource is ImageSource source ? source : Binding.DoNothing;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user