or
<telerik:DataFormDateField Label="Contact Date" DataMemberBinding="{Binding Path=contactdt}" /><telerik:DataFormDataField Label="Contact Date" > <telerik:RadDateTimePicker SelectedValue="{Binding Path=contactdt}" /></telerik:DataFormDataField><telerik:RadTreeView Name="radTreeView" ExpanderStyle="{StaticResource ExpanderStyle}" ItemsSource="{Binding Path=EnvironmentMenuDataSource}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" ItemTemplate="{StaticResource EnvironmentMenu}"> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu Opened="RadTreeViewContextMenuOpened"> <telerik:RadMenuItem Header="{Binding Path=SelectedItem.ContextCommandName}" Command="{Binding Path=ViewListCommand}" CommandParameter="{Binding SelectedItem}"> <telerik:RadMenuItem.Icon> <Image Source="../Images/Menu/Blue.png" Stretch="Uniform" /> </telerik:RadMenuItem.Icon> </telerik:RadMenuItem> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> </telerik:RadTreeView><DataTemplate x:Key="EntityMenu"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.35*"/> <ColumnDefinition Width="0.65*"/> </Grid.ColumnDefinitions> <Image Source="{Binding ImageUrl, Mode=OneWay}" Width="16" Height="16"/> <TextBlock Margin="3,0,0,0" Grid.Column="1" TextWrapping="Wrap" Text="{Binding Name, Mode=OneWay}"> <telerik:RadTreeView Name="radTreeView" ExpanderStyle="{StaticResource ExpanderStyle}" ItemsSource="{Binding Path=EnvironmentMenuDataSource}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" ItemTemplate="{StaticResource EnvironmentMenu}"> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu Opened="RadTreeViewContextMenuOpened"> <telerik:RadMenuItem Header="{Binding Path=SelectedItem.ContextCommandName}" Command="{Binding Path=ViewListCommand}" CommandParameter="{Binding SelectedItem}"> <telerik:RadMenuItem.Icon> <Image Source="../Images/Menu/Blue.png" Stretch="Uniform" /> </telerik:RadMenuItem.Icon> </telerik:RadMenuItem> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> </telerik:RadTreeView> </TextBlock> </Grid> </DataTemplate> <HierarchicalDataTemplate x:Key="EnvironmentMenu" ItemTemplate="{StaticResource EntityMenu}" ItemsSource="{Binding EntityMenus}"> <TextBlock Text="{Binding Name}" /> </HierarchicalDataTemplate>System.InvalidOperationException was unhandled Message='System.Windows.Documents.Hyperlink' is not a Visual or Visual3D. Source=PresentationCore StackTrace: at MS.Internal.Media.VisualTreeUtils.AsVisual(DependencyObject element, Visual& visual, Visual3D& visual3D) at System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference) at Telerik.Windows.Controls.ScheduleViewBase.ScheduleViewLostFocus(Object sender, RoutedEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.InlineEditing.cs:line 368 at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.OnLostFocus(RoutedEventArgs e) at System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.ClearValueCommon(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata) at System.Windows.DependencyObject.ClearValue(DependencyPropertyKey key) at System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at System.Windows.FrameworkContentElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp) at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed) at System.Windows.Input.KeyboardDevice.Focus(IInputElement element) at System.Windows.ContentElement.Focus() at System.Windows.Documents.Hyperlink.OnMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run() at WpfApplication1.App.Main() in C:\Segantii\Development\Samples\Telerik\MonthViewTickStyle\WpfApplication1\WpfApplication1\obj\Debug\App.g.cs:line 0 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: <Style TargetType="{x:Type local:ComboBoxLookupDataMaterialMainGroups}" BasedOn="{StaticResource {x:Type ComboBox}}"> <Setter Property="ItemTemplate"> <Setter.Value> <DataTemplate > Individual Template Definition </DataTemplate> </Setter.Value> </Setter></Style><Style TargetType="{x:Type local:ComboBoxLookupDataMaterialMainGroups}" BasedOn="{StaticResource RadComboBoxStyle}"><ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Telerik.Windows.Controls.xaml" /> <ResourceDictionary Source="Telerik.Windows.Controls.Input.xaml" /></ResourceDictionary.MergedDictionaries><telerikDataProviderXmla:XmlaDataProvider x:Key="dataProvider"> <telerikDataProviderXmla:XmlaDataProvider.ConnectionSettings> <telerikDataProviderXmla:XmlaConnectionSettings Cube="MY_CUBE" Database="MY_DATABASE_01" ServerAddress="http://MY_WEBSERVER:8888/msmdpump.dll" /> </telerikDataProviderXmla:XmlaDataProvider.ConnectionSettings> </telerikDataProviderXmla:XmlaDataProvider><ControlTemplate x:Key="GridViewScrollViewerTemplate" TargetType="{x:Type grid:GridViewScrollViewer}"> <Grid x:Name="PART_RootPanel" Background="{TemplateBinding Background}"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Grid.Row="2" CanContentScroll="{TemplateBinding CanContentScroll}"/> <ScrollBar x:Name="PART_VerticalScrollBar" Width="18" BorderThickness="1,0,0,0" IsTabStop="False" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Grid.Column="1" Grid.Row="2" Grid.RowSpan="1" Orientation="Vertical" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0.0" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" Margin="0,4,0,0"/> <ScrollBar x:Name="PART_HorizontalScrollBar" Height="18" BorderThickness="0,1,0,0" IsTabStop="False" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Grid.Column="0" Grid.Row="4" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0.0" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/> <Rectangle Grid.Column="1" Grid.Row="4" Fill="{StaticResource GridView_ScrollViewerIntersectionRectangleBackground}"/> <Button HorizontalAlignment="Center" Width="16" Grid.Column="1" Style="{DynamicResource ActionButtonSmallStyle}" Height="16" VerticalAlignment="Center"> <Viewbox> <Canvas Height="16" Width="16"> <Path Data="M0,15.16L14.908,15.16L14.908,-0.00100000000000122L0,-0.00100000000000122z" Height="15.161" Canvas.Left="0.25" Stretch="Fill" Canvas.Top="0.249" Width="14.908"> <Path.Fill> <LinearGradientBrush EndPoint="1.004,0.996" StartPoint="-0.004,0.004"> <GradientStop Color="#FF4578AB" Offset="0"/> <GradientStop Color="#FF4578AB" Offset="0.45454400777816772"/> <GradientStop Color="#FF305870" Offset="0.56362897157669067"/> <GradientStop Color="#FF305870" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <Path Data="M13.853,14.216L1.018,14.216L1.018,1.162L13.853,1.162z" Height="13.054" Canvas.Left="1.268" Stretch="Fill" Canvas.Top="1.412" Width="12.835"> <Path.Fill> <LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1"> <GradientStop Color="#FFD2DCEE" Offset="0"/> <GradientStop Color="#FFF6FBF9" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <Path Data="M5.74,5.353L2.979,5.353L2.979,2.592L5.74,2.592z" Height="2.761" Canvas.Left="3.229" Stretch="Fill" Canvas.Top="2.842" Width="2.761"> <Path.Fill> <LinearGradientBrush EndPoint="1,1" StartPoint="0,0"> <GradientStop Color="#FF708CBC" Offset="0"/> <GradientStop Color="#FF708CBC" Offset="0.45454400777816772"/> <GradientStop Color="#FF4578AB" Offset="0.56362897157669067"/> <GradientStop Color="#FF4578AB" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <Path Data="M5.11,4.723L3.608,4.723L3.608,3.221L5.11,3.221z" Height="1.502" Canvas.Left="3.858" Stretch="Fill" Canvas.Top="3.471" Width="1.502"> <Path.Fill> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,-0.001"> <GradientStop Color="#FFF6FBF9" Offset="0"/> <GradientStop Color="#FFD2DCEE" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <Path Data="F1M3.4604,3.3555L2.9014,3.9155L4.0584,5.3705L4.6544,5.3705L6.1474,2.0865L5.5124,1.4535L4.3554,4.3995z" Fill="#FFAA1E2D" Height="3.917" Canvas.Left="3.151" Stretch="Fill" Canvas.Top="1.704" Width="3.246"/> <Path Data="M5.74,9.323L2.979,9.323L2.979,6.563L5.74,6.563z" Height="2.76" Canvas.Left="3.229" Stretch="Fill" Canvas.Top="6.813" Width="2.761"> <Path.Fill> <LinearGradientBrush EndPoint="1,1" StartPoint="0,0"> <GradientStop Color="#FF708CBC" Offset="0"/> <GradientStop Color="#FF708CBC" Offset="0.45454400777816772"/> <GradientStop Color="#FF4578AB" Offset="0.56362897157669067"/> <GradientStop Color="#FF4578AB" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <Path Data="M5.11,8.694L3.608,8.694L3.608,7.193L5.11,7.193z" Height="1.501" Canvas.Left="3.858" Stretch="Fill" Canvas.Top="7.443" Width="1.502"> <Path.Fill> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFF6FBF9" Offset="0"/> <GradientStop Color="#FFD2DCEE" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <Path Data="M5.74,13.319L2.979,13.319L2.979,10.559L5.74,10.559z" Height="2.76" Canvas.Left="3.229" Stretch="Fill" Canvas.Top="10.809" Width="2.761"> <Path.Fill> <LinearGradientBrush EndPoint="1,1" StartPoint="0,0"> <GradientStop Color="#FF708CBC" Offset="0"/> <GradientStop Color="#FF708CBC" Offset="0.45454400777816772"/> <GradientStop Color="#FF4578AB" Offset="0.56362897157669067"/> <GradientStop Color="#FF4578AB" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <Path Data="M5.11,12.69L3.608,12.69L3.608,11.188L5.11,11.188z" Height="1.502" Canvas.Left="3.858" Stretch="Fill" Canvas.Top="11.438" Width="1.502"> <Path.Fill> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFF6FBF9" Offset="0"/> <GradientStop Color="#FFD2DCEE" Offset="1"/> </LinearGradientBrush> </Path.Fill> </Path> <Path Data="F1M11.697,4.989L7.313,4.989L7.313,3.851L11.697,3.851z" Fill="#FFA6A8AB" Height="1.138" Canvas.Left="7.563" Stretch="Fill" Canvas.Top="4.101" Width="4.384"/> <Path Data="F1M11.697,8.573L7.313,8.573L7.313,7.435L11.697,7.435z" Fill="#FFA6A8AB" Height="1.138" Canvas.Left="7.563" Stretch="Fill" Canvas.Top="7.685" Width="4.384"/> <Path Data="F1M11.697,12.375L7.313,12.375L7.313,11.236L11.697,11.236z" Fill="#FFA6A8AB" Height="1.139" Canvas.Left="7.563" Stretch="Fill" Canvas.Top="11.486" Width="4.384"/> </Canvas> </Viewbox> </Button> </Grid> </ControlTemplate>