or
<HierarchicalDataTemplate x:Key="GroupHeaderTemplate" ItemsSource="{Binding Buttons}" DataType="{x:Type Menu:GroupViewModel}" ItemTemplateSelector="{StaticResource groupsSelector}"> <TextBlock Text="{Binding Text}" /> </HierarchicalDataTemplate> <HierarchicalDataTemplate x:Key="TabTemplate" DataType="{x:Type Menu:TabViewModel}" ItemsSource="{Binding Groups}" ItemTemplate="{StaticResource GroupHeaderTemplate}"> <HierarchicalDataTemplate.ItemContainerStyle> <!-- This works and AccessText binds to GroupViewModel.AccessText --> <Style TargetType="{x:Type telerik:RadRibbonGroup}"> <Setter Property="telerik:KeyTipService.AccessText" Value="{Binding AccessText}" /> </Style> </HierarchicalDataTemplate.ItemContainerStyle> <TextBlock Text="{Binding Text}" /> </HierarchicalDataTemplate><telerik:RadRibbonView x:Name="ribbonView" ApplicationButtonVisibility="Collapsed" VerticalAlignment="Top" ItemTemplate="{StaticResource TabTemplate}" ItemsSource="{Binding Tabs}" Title="{Binding Title}" SelectedItem="{Binding SelectedTab, Mode=TwoWay}" telerik:KeyTipService.IsKeyTipsEnabled="true" telerik:KeyTipService.AccessKey="ALT"> <telerik:RadRibbonView.QuickAccessToolBar> <telerik:QuickAccessToolBar ItemsSource="{Binding QuickAccessItems}" ItemTemplate="{StaticResource ButtonTemplate}" /> </telerik:RadRibbonView.QuickAccessToolBar> <telerik:RadRibbonView.ItemContainerStyle> <!-- This style seems to affect all containers, tabs, groups and buttons --> <Style> <Setter Property="telerik:KeyTipService.AccessText" Value="{Binding AccessText}" /> </Style> </telerik:RadRibbonView.ItemContainerStyle> </telerik:RadRibbonView>
public class Employee
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string JobTitle { get; set; }
public List<Address> EmpAddress { get; set; }
}
public class Address
{
public string Addresses { get; set; }
}
How i will handle this situation in the case of Mail Merge. Where i want to show one employee with its multiple addresses in the table in the mail merge.
Thanks
Rizwan
System.TypeInitializationException was unhandled<br>Message: Se produjo una excepción en el inicializador de tipo de 'Telerik.Windows.Documents.UI.Extensibility.RadCompositionInitializer'.// Dependency Propertypublic static readonly DependencyProperty StringFormatProperty = DependencyProperty.Register("StringFormat", typeof(string), typeof(GridViewDateTimeColumn), new FrameworkPropertyMetadata(string.Empty, StringFormatChanged));public string StringFormat{ get { return (string)GetValue(StringFormatProperty); } set { SetValue(StringFormatProperty, value); }}private static void StringFormatChanged(DependencyObject d, DependencyPropertyChangedEventArgs e){ var column = (GridViewDateTimeColumn)d; column.DataMemberBinding.StringFormat = e.NewValue.ToString(); column.Refresh();}<my_controls:GridViewDateTimeColumn DataMemberBinding="{Binding SomeDateTimeProperty, Mode=TwoWay}" StringFormat="{Binding DataContext.StringFormat, RelativeSource={RelativeSource AncestorType=UserControl}}" ><telerik:RadTreeListView.ItemsSource><br>
<MultiBinding Converter="{StaticResource IsExpandedToCollectionViewConverter}">
<Binding Path="IsExpanded"/>
<Binding Path="DataContext" RelativeSource="{RelativeSource AncestorType=Grid}"/>
</MultiBinding>
</telerik:RadTreeListView.ItemsSource>RadDragAndDropManager.SetAllowDrop(mapAreaItemsControl , true);
RadDragAndDropManager.AddDropQueryHandler(mapAreaItemsControl, new EventHandler<DragDropQueryEventArgs>( OnDropQuery ) ); RadDragAndDropManager.AddDropInfoHandler(mapAreaItemsControl, new EventHandler<DragDropEventArgs>( OnDropInfo ) );
private void OnDropQuery( object sender, DragDropQueryEventArgs e ) { e.QueryResult = true; e.Handled = true; }
