Telerik Forums
UI for WPF Forum
1 answer
118 views
Hi.
When I set AllowParsingWithoutSeperator to true and InputMode is DatePicker there's a bug when you try to update the date. The date doesn't update when you change it in the UI, but go back to it's initial value, even when you are entering a valid date.

So if the value is "13.02.2014" and I try to change just the year to "2015" it will go back to "2014". In order to update the value I have to start updating from the beginning of the date. 
My culture is "nb-NO". If I set it to "en-US" it behaves worse, the date will just be removed if you try to alter the date (not from the beginning of the date). This bug is reproducible in the Telerik demo for Q3 2013 Sp1.

Sorry if this is already reported, I didn't find it scanning through DateTimePicker and DatePicker forums. Btw, this behavior is the same for DatePicker.

Regards 
Arnstein
Konstantina
Telerik team
 answered on 04 Feb 2014
3 answers
199 views
Hi, 

i have set the watermark for autocompletebox by setting the WatermarkContent, property, it works, however in the visual studio output window i can still see the following errors which i would like to avoid. 


System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadWatermarkTextBox'

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=WatermarkTextBox'. BindingExpression:Path=ActualWidth; DataItem=null; target element is 'AutoCompleteBoxesWrapPanel' (Name=''); target property is 'Width' (type 'Double')



Any suggestions? 

thanks

Kalin
Telerik team
 answered on 04 Feb 2014
1 answer
116 views
Hi,

I'm working on a migration of a WPF platform from .NET 3.5 to .NET 4.0.
I have met some execution errors that came from a Telerik dll (in fact the dll version was 2.0). So before to purchase a newest version I would like to try if the new Telerik relase has the bug fixed. I have downloaded the newest release WPF 4.0 and I have tried to put into my project.

The good news is that there is no execution error anymore. The bad news is that I have some compilation errors due to HeadererContentControl in my main window (xaml file).

I have to admit that i'm not a Telerik pro user, I didn't know Telerik items and I don't really know what I can use instead of HeadererContentControl.
I have looked for this error and visibly this kind of element was created for your demos if I have well understood and it doesn't exist anymore in the new release.

There is a part of the code where this element is used:


<Telerik_Windows_Controls_QuickStart:HeaderedContentControl Header="title1" >  <br><telerik:RadPanelBar><br><telerik:RadPanelBarItem Header="choice1"><br><telerik:RadPanelBarItem Header="choice2"><br></telerik:RadPanelBar><br></Telerik_Windows_Controls_QuickStart:HeaderedContentControl><br><br><Telerik_Windows_Controls_QuickStart:HeaderedContentControl Header="title2" ><br><telerik:RadPanelBar><br><telerik:RadPanelBarItem Header="choice3"><br><telerik:RadPanelBarItem Header="choice4"><br></telerik:RadPanelBar><br></Telerik_Windows_Controls_QuickStart:HeaderedContentControl>

There are errors:

Error    2    The tag 'HeaderedContentControl' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls'. Line 142 Position 14.

Error    4    The type 'Telerik_Windows_Controls_QuickStart:HeaderedContentControl' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

Error    5    The type 'Telerik_Windows_Controls_QuickStart:HeaderedContentControl' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.




I would like to add that I had any compilation error with the previous dll (version 2.0) and that these errors have appeared since the migration.


Thanks,

BenoƮt






Yana
Telerik team
 answered on 04 Feb 2014
1 answer
243 views
hi,

I want to change the style of the vertical scrollbar of the AutoCompleteBox dropdown, specifically I want to increase the width of the scrollbar. I don't have Blend. How do I go about that?

thanks in advance,

Paul
Masha
Telerik team
 answered on 04 Feb 2014
1 answer
132 views
Hello

I'm using property grid to change an underlying class model.
All my class' properties have data annotations like RequiredAttribute, StringLengthAttribute etc, and my class implements IDataErrorInfo.
In my this[column] indexer of the class I iterate the property to get all attributes related to it and validate all, building the error message accordingly.
When property value change, I raise the INotifyPropertyChanged event and things get going in the UI. Property grid responses well to changes in the model class signaling the errors defined by my attributes annotations. So far so good...

But now I need to implement class level validation rather than only property validation. As mentioned, the last one is working perfectly. I need to implement some feature to signal propertygrid about class level error when, for instance, two date property don't match together.
I tried to add those class level errors in Error member of IDataErrorInfo with no success... allthough the Error property returns an error string, the property grid ignores it and do not show anything. For instance, when using GridView, it signals the entire record when assigning a set of those classes as datasource of the grid... it detects the Error property returning an error message and responds to it... but not propertygrid.

How can I validate class level errors with PropertyGrid?

Best regards,

Jorge
Dimitrina
Telerik team
 answered on 03 Feb 2014
2 answers
109 views
Hi, 
   I've a RadGridView binding :  ItemsSource="{Binding Entities1, Mode=TwoWay}".
  The MVVM works fine, because the items will be show correctly.
  On the MVVM class, I've the dispatcher timer that change a single value of two property of the entities loaded,
  but the grid doesn't refresh the single cell.

   I need to re-attach the datacontext to view the last value updated, but in this scenario the selected row and the pager will be lost.


Is there other way ?

Thank you !

Best regards.
  
Hristo
Telerik team
 answered on 03 Feb 2014
4 answers
294 views

(I am using Telerik 2013.2.809.40 for WPF)

I have a RadCartesianChart with a Series that contains 30 items (categories are from ā€œ2013ā€ to ā€œ2032ā€).


I want to show only the labels ā€œ2015ā€, ā€œ2020ā€,ā€œ2025ā€,ā€œ2030ā€ in my CategoricalAxis.

How can I do this?
Setting LabelInterval=5 and LabelOffset=2
does not work (in this case only "2023" and "2028 are shown)

Thanks - Janko

Martin Ivanov
Telerik team
 answered on 03 Feb 2014
4 answers
316 views
Hello,

I am using a Spline defenition and when I double click the window header to fit the window to the Monitor I get an out of memory error. It looks like it is trying to Redraw the Spline lines. Here is the Stack Trace:

   at MS.Utility.ArrayItemList`1.Add(T value)
   at MS.Utility.FrugalStructList`1.Add(T value)
   at System.Windows.Media.PointCollection.AddWithoutFiringPublicEvents(Point value)
   at System.Windows.Media.PointCollection.Add(Point value)
   at Telerik.Windows.Controls.Charting.SplineHelper.GenerateSplineSegmentPoints(Point pt0, Point pt1, Point pt2, Point pt3, Double tolerance)
   at Telerik.Windows.Controls.Charting.SelfDrawingSeries.CalculateSplinePoints(Func`2 extractXRangeValue, Func`3 extractYRangeValue)
   at Telerik.Windows.Controls.Charting.SplineSeries.CalculatePoints(Func`2 extractXRangeValue, Func`3 extractYRangeValue)
   at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeTopBorderLineGeometry()
   at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeSeriesGeometry()
   at Telerik.Windows.Controls.Charting.SelfDrawingSeries.SeriesSizeChanged(Object sender, SizeChangedEventArgs e)
   at System.Windows.SizeChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
   at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
   at K2Analytics.Application.Main() in C:\Projects\ConsumerInsights\K2Analytics_Soln\K2Analytics\obj\Debug\Application.g.vb:line 69
   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
   at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
   at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
   at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
   at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
   at System.Activator.CreateInstance(ActivationContext activationContext)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Thanks,
Matt
Martin Ivanov
Telerik team
 answered on 03 Feb 2014
1 answer
98 views
Hello,
I've upgraded an old wpf application to latest Telerik WPF control version... before I've defined a GridViewCommandRow that will substitute the grouping header to the 2 buttons export/print

the code is taken from a your article and it's

public class GridViewCommandRow
   {
       public static readonly DependencyProperty IsEnabledProperty =
           DependencyProperty.RegisterAttached("IsEnabled",
                                               typeof (bool),
                                               typeof (GridViewCommandRow),
                                               new PropertyMetadata(false, OnIsEnabledChanged));
 
       public GridViewCommandRow(RadGridView grid)
       {
           RadGridView = grid;
           CommandRow = new ContentControl();
           CommandRow.SetValue(Grid.RowProperty, 0);
 
           if (ViewCommandTemplate == null)
           {
               var commandRowTemplate = Generic.GetInstance()["CommandRowTemplate"] as ControlTemplate;
 
               if (commandRowTemplate != null)
                   ViewCommandTemplate = commandRowTemplate;
           }
       }
 
       public ControlTemplate ViewCommandTemplate { get; set; }
 
       private ContentControl CommandRow { get; set; }
 
       public RadGridView RadGridView { get; private set; }
 
       public static void SetIsEnabled(DependencyObject dependencyObject, bool enabled)
       {
           dependencyObject.SetValue(IsEnabledProperty, enabled);
       }
 
       public static object GetIsEnabled(DependencyObject dependencyObject)
       {
           return dependencyObject.GetValue(IsEnabledProperty);
       }
 
       private static void OnIsEnabledChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
       {
           var radGridView = sender as RadGridView;
           if (radGridView != null)
           {
               if ((bool) e.NewValue)
               {
                   // Create new GridViewCommandRow and attach RadGridView events.
                   var commandRow = new GridViewCommandRow(radGridView);
 
                   commandRow.Attach();
               }
           }
       }
 
       private void Attach()
       {
           RadGridView.DataLoaded += RadGridView_DataLoaded;
       }
 
       private void RadGridView_DataLoaded(object sender, EventArgs e)
       {
           if (RadGridView.Items.Count > 0)
           {
               RadGridView.SelectedItem = RadGridView.Items[0];
           }
 
 
           Grid hierarchyGrid =
               RadGridView.ChildrenOfType<Grid>().FirstOrDefault(c => c.Name == "HierrarchyBackground");
 
           if (hierarchyGrid != null && CommandRow.Parent == null)
           {
               hierarchyGrid.Children.Add(CommandRow);
 
               CommandRow.Template = ViewCommandTemplate;
           }
       }
   }

The template is defined here

<ResourceDictionary x:Class="DOME.Modules.Core.Themes.Generic"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"                  
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:conv="clr-namespace:DOME.Modules.Core.Framework.Converters"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:Telerik_Windows_Controls_Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
                    xmlns:if="clr-namespace:DOME.Modules.Core" xmlns:local="clr-namespace:DOME.Modules.Core">
 
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary>
             
            <SolidColorBrush x:Key="GridView_EditIndicatorBackground1" Color="#7F848484" />
            <SolidColorBrush x:Key="GridView_EditIndicatorBackground2" Color="#FFCBCBCB" />
            <SolidColorBrush x:Key="GridView_EditIndicatorBackground3" Color="#FF848484" />
            <SolidColorBrush x:Key="GridView_EditIndicatorBackground4" Color="#FFB6F7FD" />
            <LinearGradientBrush x:Key="GridViewGroupPanelInnerBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFEAEDF6" Offset="0" />
                <GradientStop Color="#FFF2F5FA" Offset="1" />
            </LinearGradientBrush>
            <telerik:Office_BlackTheme x:Key="Theme" />
            <SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF848484" />
            <LinearGradientBrush x:Key="ControlBackground_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="White" />
                <GradientStop Color="#FFD4D4D4" Offset="1" />
                <GradientStop Color="Gainsboro" Offset="0.42" />
                <GradientStop Color="#FFADADAD" Offset="0.43" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="ControlForeground_Normal" Color="#FF0E0E0E" />
            <CornerRadius x:Key="ControlOuterBorder_CornerRadius">1</CornerRadius>
            <LinearGradientBrush x:Key="InsertBackground" EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="White" />
                <GradientStop Color="#FFA9E0AF" Offset="1" />
                <GradientStop Color="#FFA9F7B0" Offset="0.42" />
                <GradientStop Color="#FF6D8F70" Offset="0.43" />
            </LinearGradientBrush>
             
            <Style x:Key="RadButtonStyle1" TargetType="telerik:RadButton">
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
                <Setter Property="Background" Value="{StaticResource ControlBackground_Normal}" />
                <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
                <Setter Property="HorizontalContentAlignment" Value="Center" />
                <Setter Property="VerticalContentAlignment" Value="Center" />
                <Setter Property="Padding" Value="3" />
                <Setter Property="CornerRadius" Value="{StaticResource ControlOuterBorder_CornerRadius}" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="telerik:RadButton">
                            <Grid>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal" />
                                        <VisualState x:Name="Disabled">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" Storyboard.TargetName="Content"
                                         Storyboard.TargetProperty="Opacity" To="0.5" />
                                            </Storyboard>
                                        </VisualState>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Telerik_Windows_Controls_Chromes:ButtonChrome x:Name="buttonChrome"
                                                               BorderThickness="{Binding BorderThickness, RelativeSource={RelativeSource TemplatedParent}}"
                                                               telerik:StyleManager.Theme="{StaticResource Theme}" CornerRadius="{TemplateBinding CornerRadius}"
                                                               RenderEnabled="{TemplateBinding IsEnabled}" RenderFocused="{TemplateBinding IsFocused}"
                                                               RenderMouseOver="{TemplateBinding IsMouseOver}" RenderNormal="{TemplateBinding IsBackgroundVisible}"
                                                               RenderPressed="{TemplateBinding IsPressed}" Background="{StaticResource ControlBackground_Normal}" />
                                <ContentPresenter x:Name="Content"
                                  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"
                                  VerticalAlignment="{TemplateBinding VerticalContentAlignment}" OpacityMask="{StaticResource InsertBackground}"
                                  Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Setter Property="FontWeight" Value="Normal" />
                <Setter Property="FontSize" Value="13.333" />
            </Style>
 
            <BooleanToVisibilityConverter x:Key="visibilityConverter"></BooleanToVisibilityConverter>
 
            <Style x:Key="FlowDocStyle" TargetType="{x:Type FlowDocumentScrollViewer}">
                <Setter Property="KeyboardNavigation.TabNavigation" Value="Local" />
                <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
                <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type FlowDocumentScrollViewer}">
                            <Grid Language="en-us" Uid="Grid_26">
                                <Grid.Resources>
                                    <conv:HtmlToFlowDocumentConverter x:Key="htmlToXamlConverter" />
                                </Grid.Resources>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Border CornerRadius="10" Uid="Border_49" Margin="0,0,0,0" Background="Azure">
                                    <ScrollViewer x:Name="PART_ContentHost"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Uid="ScrollViewer_8"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Background="#FFEFF7FC" Margin="5,5,5,5" Height="Auto"
                                Width="Auto">
                                    </ScrollViewer>
                                </Border>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
 
            <ControlTemplate x:Key="test" TargetType="{x:Type if:IFUserControl}">
                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
                Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
                    <Grid>
                        <Grid.Resources>
                            <conv:HtmlToFlowDocumentConverter x:Key="htmlToXamlConverter" />
                        </Grid.Resources>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="16"></RowDefinition>
                            <RowDefinition></RowDefinition>
                        </Grid.RowDefinitions>
                        <StackPanel Grid.Row="0" HorizontalAlignment="Right" Orientation="Horizontal">
                            <Image Height="16" Width="16" x:Name="image">
                                <Image.Source>
                                    <BitmapImage UriSource="/DOME;component/Media/help.png"></BitmapImage>
                                </Image.Source>
                            </Image>
                            <Popup IsOpen="False" x:Name="HelpMessagePopUp" AllowsTransparency="True"
                     PopupAnimation="Fade" HorizontalOffset="-35" VerticalOffset="0">
                                <Grid>
                                    <Border BorderThickness="1" BorderBrush="Black" CornerRadius="10">
                                        <FlowDocumentScrollViewer x:Name="flowdoc"
                                              Document="{Binding HelpMessage,Converter={StaticResource htmlToXamlConverter}}" Style="{StaticResource FlowDocStyle}">
                                        </FlowDocumentScrollViewer>
                                    </Border>
                                </Grid>
                            </Popup>
                        </StackPanel>
                        <ContentPresenter Grid.Row="1" ContentTemplate="{TemplateBinding ContentTemplate}"
                              Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}"
                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                              SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                    </Grid>
                </Border>
                <ControlTemplate.Triggers>
                    <Trigger Property="IsMouseOver" Value="True" SourceName="image">
                        <Setter TargetName="HelpMessagePopUp" Property="IsOpen" Value="True" />
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
 
            <ControlTemplate x:Key="CommandRowTemplate">
                <StackPanel Orientation="Horizontal" Background="{StaticResource GridViewGroupPanelInnerBorderBrush}">
                    <telerik:RadButton Command="{Binding PrintExportModel.PrintCommand}"
                             CommandParameter="{Binding RelativeSource= { RelativeSource AncestorType={x:Type telerik:RadGridView}}}" Width="40"
                             Height="35" Margin="5" Style="{StaticResource RadButtonStyle1}" IsEnabled="{Binding CanPrintExport}">
                        <telerik:RadButton.Content>
                            <StackPanel Orientation="Horizontal">
                                <Image Height="20" Width="20">
                                    <Image.Source>
                                        <BitmapImage UriSource="/DOME;component/Media/print.png"></BitmapImage>
                                    </Image.Source>
                                </Image>
                            </StackPanel>
                        </telerik:RadButton.Content>
                    </telerik:RadButton>
                    <telerik:RadButton Command="{Binding PrintExportModel.ExportCommand}"
                             CommandParameter="{Binding RelativeSource= { RelativeSource AncestorType={x:Type telerik:RadGridView}}}" Width="40"
                             Height="35" Margin="5" Style="{StaticResource RadButtonStyle1}" IsEnabled="{Binding CanPrintExport}">
                        <telerik:RadButton.Content>
                            <StackPanel Orientation="Horizontal">
                                <Image Height="20" Width="20">
                                    <Image.Source>
                                        <BitmapImage UriSource="/DOME;component/Media/export.png"></BitmapImage>
                                    </Image.Source>
                                </Image>
                            </StackPanel>
                        </telerik:RadButton.Content>
                    </telerik:RadButton>
 
                    <telerik:RadButton Command="{Binding PrintExportModel.ExportMasterDetailCommand}"
                             CommandParameter="{Binding RelativeSource= { RelativeSource AncestorType={x:Type telerik:RadGridView}}}" Width="40"
                             Height="35" Margin="5" Style="{StaticResource RadButtonStyle1}" IsEnabled="{Binding CanExportMasterDetail}"
                             Visibility="{Binding CanExportMasterDetail,Converter={StaticResource visibilityConverter}}">
                        <telerik:RadButton.Content>
                            <StackPanel Orientation="Horizontal">
                                <Image Height="20" Width="20">
                                    <Image.Source>
                                        <BitmapImage UriSource="/DOME;component/Media/export.png"></BitmapImage>
                                    </Image.Source>
                                </Image>
                            </StackPanel>
                        </telerik:RadButton.Content>
                    </telerik:RadButton>
                </StackPanel>
            </ControlTemplate>
 
            <x:Array Type="{x:Type telerik:RadMenuItem}" x:Key="ContextMenuCommandTemplate">
                <telerik:RadMenuItem Header="Expand all" CommandParameter="expand_all" />
                <!-- x:Name="expand"-->
                <telerik:RadMenuItem Header="Collapse all" CommandParameter="collapse_all" />
                <!--x:Name="collapse" -->
            </x:Array>
        </ResourceDictionary>
        <ResourceDictionary Source="MyDictionary.xaml" />
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

The buttons don't appear anymore...how can I fix it
Dimitrina
Telerik team
 answered on 03 Feb 2014
1 answer
125 views
Hello!

I'm trying to implement map control and I use VisualizationLayer, but I have some issues with that...

1. I would like to filter some items which I want to display on the map but when I try to use ListCollectionView I get error "'System.Windows.Data.ListCollectionView' is not a valid value for property 'Source'.". Do you have any ideas why is this happening?
ListCollectionView for InformationLayer works great.

2. In my solution I had to use custom class which implements IMapPropertyAccessor interface but the problem is when I want to update "Location" on the fly, I don't know how to propagate this change to the user interface.
Do you have any suggestion how to do this?
Andrey
Telerik team
 answered on 03 Feb 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?