Telerik Forums
UI for WPF Forum
2 answers
156 views
Hello!

I have a problem: I want to get image from chart on service. I use ExportToImage method to do this. By default - it's work fine. But when I try to apply any style to the chart (i.e. set Axis title style for changing font size, I using Axis.AxisStyles.TitleStyle property) I get following error:

WcfDataService.Code.PdfGenerator - Couldn't get chart snapshot.
System.Windows.Markup.XamlParseException: '11' is not a valid value for the 'System.Windows.Documents.TextElement.FontSize' property on a Setter. ---> System.ArgumentException: '11' is not a valid value for the 'System.Windows.Documents.TextElement.FontSize' property on a Setter.
   at System.Windows.Setter.Seal()
   at System.Windows.SetterBaseCollection.Seal()
   at System.Windows.Style.Seal()
   at System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache)
   at System.Windows.FrameworkElement.OnStyleChanged(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.StyleHelper.ApplyTemplatedParentValue(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, DependencyProperty dp, FrameworkElementFactory templateRoot)
   at System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, Boolean isDetach, FrameworkElementFactory templateRoot)
   at System.Windows.FrameworkTemplate.InvalidatePropertiesOnTemplate(DependencyObject container, Object currentObject)
   at System.Windows.FrameworkTemplate.HandleBeforeProperties(Object createdObject, DependencyObject& rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope)
   at System.Windows.FrameworkTemplate.<>c__DisplayClass6.<LoadOptimizedTemplateContent>b__3(Object sender, XamlObjectEventArgs args)
   at System.Xaml.XamlObjectWriter.OnBeforeProperties(Object value)
   at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, Uri baseUri)
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
   at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
   at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
   at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
   at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.Charting.ChartArea.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Chart\ChartArea\ChartArea.Core.cs:line 1318
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.RadDockPanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Panels\RadDockPanel.cs:line 170
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.Charting.ScalePanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Chart\ScalePanel.cs:line 70
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.RadChart.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Chart\RadChart.cs:line 910
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)

Can you help me? What can I do to fix this problem?

Thanks, Anatoly Chekh.
Anatoly Chekh
Top achievements
Rank 1
 answered on 17 Feb 2011
0 answers
121 views
Hello Telerik Team,
                                 I have some problem in Debugging.Here in my WPF project using telerik rad controls.if i am using  windows application mean easily find out error using line by line debugging.

but i am not able to debug wpf project. is it any problem when i am using telerik controls?

sivakanth
Top achievements
Rank 1
 asked on 17 Feb 2011
1 answer
98 views
I want to prevent dragging items to the same level as the root, how do I do this?

thanks.
Petar Mladenov
Telerik team
 answered on 17 Feb 2011
1 answer
115 views
Greetings,

I am trying to upgrade my telerik wpf controls to the latest build according to this article: http://www.telerik.com/help/silverlight/installation-upgrading-from-trial-to-developer-license.html

So first I want to remove telerik controls from gac. And here is the problem. In my VS 2010 I can see telerik libraries in .NET tab when adding a reference (see references.png). But when I try to run gacutil -u Telerik.Windows.Controls.dll as metioned here: http://www.telerik.com/help/wpf/installation-deployment-add-remove-to-gac-wpf.html I get this message: 

No assemblies found matching: Telerik.Windows.Controls.dll
Number of assemblies uninstalled = 0
Number of failures = 0

So how can I upgrade my telerik radcontrols for wpf?

Thank you in advance
Miro

Milan
Telerik team
 answered on 17 Feb 2011
2 answers
113 views
I have added a handler to VisibleRangeChanged event to query the database for appointments within the new date range. However, the appointment source that is updated does not get reflected on the current view. If I switch to another view and back again, I see the appointments.

Is there a way to fix this so that I see my appointments when the AppointmentSource is udpated?

Thanks,
Rod
Hristo
Telerik team
 answered on 17 Feb 2011
7 answers
657 views
This is happening on what appears to be a ListBox inside the filter that contains a CheckBox element for each distinct RowValue in the column.  
When scrolling, the width of the ListBox changes depending upon the size of the widest checkbox in the list.  

Also, the only way to use the scroll bar is to click either the up or down arrow, wait for the ListBox to resize, then click the arrows again.  Attempting to move the actual bar of the ScrollBar does not scroll the ListBox with CheckBoxes, it instead scrolls the bar of the GridView itself. 


Is there a way to set the ListBox width to that of the widest CheckBox?
Anitha
Top achievements
Rank 1
 answered on 17 Feb 2011
4 answers
124 views
I have an integer type property, which may only have specific values in a infinite sequence: 4, 6, 8, 12, 16.... (the sequence can be made finite because big values will never be used in this reality).

Q1: I would like the mouse wheel and the buttons to select the next valid value for the user. I saw this post (http://www.telerik.com/community/forums/wpf/numeric-up-down/use-numericupdown-as-multiplier.aspx) in the forum and figured that my problem cannot be solved either. Is this feature planned for any release?

Q2: The numericupdown should be readonly under certain circumstances (most other input-fields are textboxes and they are made readonly, not disabled). Is there some setting to remove the possibility of user input from numericupdown besides enabled=false?

Thanks,
Inger Marie
Inger Marie
Top achievements
Rank 1
 answered on 17 Feb 2011
1 answer
144 views
This happens in version 2010.3.1314.40

It happens in every view EXCEPT the timeline view.

Scenario:
Override the default double click behavior of an Appointment and navigate to some other screen. That equates to overlaying another UIElement over the top of the scheduleview and then removing it to expose the scheduleview again. That's when the error occurs.


Value cannot be null.
Parameter name: ancestor
Details: 
  
System.ArgumentNullException: Value cannot be null.
Parameter name: ancestor
   at System.Windows.Media.Visual.TransformToAncestor(Visual ancestor)
   at Telerik.Windows.Controls.ScheduleViewBase.FindDistanceBetweenTwoElements(FrameworkElement element1, FrameworkElement element2)
   at Telerik.Windows.Controls.ScheduleViewBase.CreateDragCueForItem(AppointmentItem item)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at Telerik.Windows.Controls.CollectionExtensions.AddRange(IList list, IEnumerable items)
   at Telerik.Windows.Controls.DragDropHelper.CreateVisualCueForDrag(DragDropState state, AppointmentItem clickedItem)
   at Telerik.Windows.Controls.DragDropHelper.SetupDragCueForDrag(DragDropOptions options, DragDropState state, AppointmentItem draggedAppointment)
   at Telerik.Windows.Controls.DragDropHelper.StartDrag(DragDropOptions options, DragDropState state, AppointmentItem draggedAppointment)
   at Telerik.Windows.Controls.DragDropHelper.BeginDragResize(DragDropOptions options, AppointmentItem draggedAppointment, Boolean isResizing)
   at Telerik.Windows.Controls.DragDropHelper.OnAppointmentItemDragQuery(Object sender, DragDropQueryEventArgs e)
   at Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   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 Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.DragDropProvider_DragQuery(Object sender, DragDropQueryEventArgs e)
   at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDragQuery()
   at Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.TryStartDrag(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnTrackedElementMouseMoveInternal(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseMoveInternal(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.OnCoverRectangleMouseMove(Object sender, MouseEventArgs 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.MouseDevice.Synchronize()
   at System.Windows.Input.MouseDevice.ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, Int32 timestamp)
   at System.Windows.Input.MouseDevice.Capture(IInputElement element, CaptureMode captureMode)
   at System.Windows.Input.Mouse.Capture(IInputElement element)
   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.ContentElement.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 Metrix.UI.App.Main() in C:\Users\rodneyy\Documents\Visual Studio 2010\Projects\M530\Client\Metrix.UI\obj\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
   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()
George
Telerik team
 answered on 16 Feb 2011
1 answer
132 views
Hi,

I'm working with the RadTreeListView however rather than displaying one row for each item in the expander column I'd like to display multiple rows and have the item in the expander column span those rows e.g.

| Item          | Metric    | Value 1 | Value 2 | Value 3  |
| > Item 1    | Width    | 14         | 13         | 17          |
|                 | Height   | 3           | 8           | 89          |
|    > Item 2| Width    | 34         | 89         | 22          |
|                | Height   | 33         | 58         | 92          |

I'm wondering whether anyone else has needed to do this and found a solutions or whether anyone would be able to point me in the right direction on which templates I need to amend.

Thanks,
Derek
Vlad
Telerik team
 answered on 16 Feb 2011
3 answers
162 views
Hi

Iam using RadTreeview Custom Control  Then Cosuming the Control  There is one button

When button is Clicked Create one node With Check box   but Check box Came but not Selected


This is our Consume Page Xaml

<local

 

 

:TreeView x:Name="RadTreeView1" ToolTip="Enter Name" Height="500" Width="300"

 

 

 

ItemsOptionListType="CheckList" IsOptionElementsEnabled="True" >

 

 

 

 

 

</local:TreeView>

 


Then Click Event

 

 

private void AddItem_Click(object sender, RoutedEventArgs e)

 

{

 

 

List<TreeImageCollection> lstTreeImageCollection1 = new List<TreeImageCollection>();

 

 

 

TreeImageCollection objTreeImageCollection = new TreeImageCollection();

 

objTreeImageCollection.ImageID =

 

"200";

 

objTreeImageCollection.ImageSource =

 

"../Images/iDropdownArrowDownHOT.png";

 

objTreeImageCollection.ToolTip =

 

"Hi This my Image ";

 

 

 

//objTreeImageCollection.Alignment = ImageAlignment.Left;

 

lstTreeImageCollection1.Add(objTreeImageCollection);

RadTreeView1.AddNode(

 

"0", "4", "Item ggg004", null, lstTreeImageCollection1, ToggleState.On, false, false, false);

 

}





Regards
SenthilNathan.S
Petar Mladenov
Telerik team
 answered on 16 Feb 2011
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?