mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-04-19 23:03:49 +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="{Binding ElementName=Window, Path=(ui:TitleBar.SystemOverlayLeftInset), Converter={StaticResource PixelsToGridLength}}" />
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
<ColumnDefinition />
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Menu
|
<Menu
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
@ -110,11 +111,18 @@
|
|||||||
<!-- Horizontally centered title -->
|
<!-- Horizontally centered title -->
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.ColumnSpan="3"
|
Grid.ColumnSpan="4"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
FontSize="13"
|
FontSize="13"
|
||||||
Text="{Binding ElementName=Window, Path=Title}" />
|
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>
|
</Grid>
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<Grid
|
<Grid
|
||||||
|
@ -29,7 +29,7 @@ namespace ModernWpfPlayground.PropertyPresenter2
|
|||||||
if (!(value is string strValue)) return Binding.DoNothing;
|
if (!(value is string strValue)) return Binding.DoNothing;
|
||||||
if (strValue.StartsWith(dynResPrefix, StringComparison.Ordinal))
|
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;
|
return resource is ImageSource source ? source : Binding.DoNothing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user