Guest User

Untitled

a guest
Aug 9th, 2017
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.77 KB | None | 0 0
  1. <DataGridTemplateColumn Header="{x:Static rss:Resources.MainWindow_Col_CustomerPhone}" x:Name="customerPhoneCol" Width="230" Visibility="{Binding Data.PhoneColumnIsVisible, Mode=OneWay, Converter={StaticResource booleanToVisibilityConverter}, Source={StaticResource proxy}}">
  2.                    
  3.                     <DataGridTemplateColumn.CellTemplate>
  4.                         <DataTemplate>
  5.  
  6.                             <!--<mah:SplitButton ItemsSource="{Binding CustomerPhones}" Orientation="Horizontal" />-->
  7.  
  8.                             <ItemsControl ItemsSource="{Binding CustomerPhones}" Background="Transparent">
  9.                                 <ItemsControl.ItemsPanel>
  10.                                     <ItemsPanelTemplate>
  11.                                         <WrapPanel MaxWidth="{Binding Source={x:Reference Name=customerPhoneCol}, Path=ActualWidth}" />
  12.                                     </ItemsPanelTemplate>
  13.                                 </ItemsControl.ItemsPanel>
  14.                                 <ItemsControl.ItemTemplate>
  15.                                     <DataTemplate>
  16.  
  17.                                         <TextBlock Margin="0,0,6,0">
  18.                                             <Hyperlink Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ItemsControl}}, Path=DataContext.PhoneCommand}" CommandParameter="{Binding}">
  19.                                                 <Hyperlink.ToolTip>
  20.                                                     <TextBlock>
  21.                                                         <TextBlock.Text>
  22.                                                             <MultiBinding StringFormat="{}{0} {1}">
  23.                                                                 <Binding Path="Kind" />
  24.                                                                 <Binding Path="Number" />
  25.                                                             </MultiBinding>
  26.                                                         </TextBlock.Text>
  27.                                                     </TextBlock>
  28.                                                 </Hyperlink.ToolTip>
  29.                                                 <InlineUIContainer>
  30.                                                     <ContentPresenter Content="{Binding Kind, Mode=OneWay}"/>
  31.                                                 </InlineUIContainer>
  32.                                             </Hyperlink>
  33.                                         </TextBlock>
  34.  
  35.                                     </DataTemplate>
  36.                                 </ItemsControl.ItemTemplate>
  37.                             </ItemsControl>
  38.  
  39.                         </DataTemplate>
  40.                     </DataGridTemplateColumn.CellTemplate>
  41.  
  42.                 </DataGridTemplateColumn>
Advertisement
Add Comment
Please, Sign In to add comment