Advertisement
Tosker

ContactBook Part 6 - ContactItemView

Jun 30th, 2018
976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <UserControl x:Class="ContactBookApp.View.ContactItemView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ContactBookApp.View"
  7. mc:Ignorable="d"
  8. d:DesignHeight="75" d:DesignWidth="250">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="50"/>
  12. <ColumnDefinition/>
  13. </Grid.ColumnDefinitions>
  14.  
  15. <Image Grid.Column="0" Margin="5"
  16. Source="{Binding ImagePath,
  17. FallbackValue={StaticResource DefaultContactImage},
  18. TargetNullValue={StaticResource DefaultContactImage}}"/>
  19.  
  20. <StackPanel Grid.Column="1" Margin="5" VerticalAlignment="Center">
  21. <Label FontSize="18" Content="{Binding Name}"/>
  22. </StackPanel>
  23. </Grid>
  24. </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement