Telerik Forums
UI for WPF Forum
0 answers
145 views

I am using Telerik.Windows.Controls for Wpf version 2021.1.233, and have reports from a customer that our application is crashing with the following error included below. As you can see the call stack is not terribly helpful, so I am hoping that either someone else has run into this, or someone from Telerik can offer some insight as to what might be null in the MapSourceInitializeCompleted handler so I can look into preventing this error.

Briefly, my application opens a window with a RadMap, draws a pushpin or two on the map, and the user can close the window at any point. After a period of time the window can also be closed by the application without any user interaction if certain criteria are met. I am fairly sure that the window with the map opens and displays correctly. I think the crash may be related to either an update to the map (drawing the pushpin), or closing the window containing the map, but that is a best guess at this point.

.NET Core Version: 3.1.27
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.Map.TilePresenter.MapSourceInitializeCompleted(Object sender, EventArgs e)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext 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, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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.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()
Heather Kyle
Top achievements
Rank 2
 asked on 04 Aug 2022
1 answer
347 views

Hi,

in wpf, in telerik:RadGridView I can not change width of the RowIndicator column (the very first one where the arrow points at the selected row.). There is only visibility property, but nothing else.

Is there a way to change it?

thank you,

J.

Stenly
Telerik team
 answered on 04 Aug 2022
1 answer
437 views

Hello Team,

I have faced one issue in combbox item template text is not binding after selected item from the combobox.

NOTE; IsEditable field is set to true then the value is not binding.

if its false then its working fine.

I have attached the screenshot for your reference.

Kindly help me to resolve this.

Thanks,

Raja.

Stenly
Telerik team
 answered on 04 Aug 2022
1 answer
115 views

I have lots of windows within my app that use the radgridview. I'm getting random errors such as the attached. Your help would be appreciated. I'm using the latest version: 2022.2.621.60.

Many thanks

Rob

- Stacktrace Frames: ------------------------------------------------------------------------------
* Frame (76): TryCatchWhen | System.Windows.Threading.ExceptionWrapper
* Frame (75): InternalRealCall | System.Windows.Threading.ExceptionWrapper
* Frame (74): DispatcherCallbackOperation | MS.Win32.HwndSubclass
* Frame (73): WndProc | MS.Win32.HwndWrapper
* Frame (72): InputFilterMessage | System.Windows.Interop.HwndSource
* Frame (71): FilterMessage | System.Windows.Interop.HwndMouseInputProvider
* Frame (70): ReportInput | System.Windows.Interop.HwndMouseInputProvider
* Frame (69): ReportInput | System.Windows.Input.InputProviderSite
* Frame (68): ProcessInput | System.Windows.Input.InputManager
* Frame (67): ProcessStagingArea | System.Windows.Input.InputManager
* Frame (66): RaiseTrustedEvent | System.Windows.UIElement
* Frame (65): RaiseEventImpl | System.Windows.UIElement
* Frame (64): InvokeHandlersImpl | System.Windows.EventRoute
* Frame (63): InvokeHandler | System.Windows.RoutedEventHandlerInfo
* Frame (62): InvokeHandler | System.Windows.RoutedEventArgs
* Frame (61): InvokeEventHandler | System.Windows.Input.MouseButtonEventArgs
* Frame (60): OnMouseUpThunk | System.Windows.UIElement
* Frame (59): ReRaiseEventAs | System.Windows.UIElement
* Frame (58): InvokeHandlersImpl | System.Windows.EventRoute
* Frame (57): InvokeHandler | System.Windows.RoutedEventHandlerInfo
* Frame (56): InvokeHandler | System.Windows.RoutedEventArgs
* Frame (55): InvokeEventHandler | System.Windows.Input.MouseButtonEventArgs
* Frame (54): OnMouseLeftButtonUpThunk | System.Windows.UIElement
* Frame (53): OnMouseLeftButtonUp | System.Windows.Controls.Primitives.ButtonBase
* Frame (52): OnClick | System.Windows.Controls.Button
* Frame (51): OnClick | System.Windows.Controls.Primitives.ButtonBase
* Frame (50): RaiseEvent | System.Windows.UIElement
* Frame (49): RaiseEventImpl | System.Windows.UIElement
* Frame (48): InvokeHandlersImpl | System.Windows.EventRoute
* Frame (47): InvokeHandler | System.Windows.RoutedEventHandlerInfo
* Frame (46): SetValue | System.Windows.DependencyObject
* Frame (45): SetValueCommon | System.Windows.DependencyObject
* Frame (44): UpdateEffectiveValue | System.Windows.DependencyObject
* Frame (43): NotifyPropertyChange | System.Windows.DependencyObject
* Frame (42): OnPropertyChanged | System.Windows.FrameworkElement
* Frame (41): OnPropertyChanged | System.Windows.DependencyObject
* Frame (40): SetValue | System.Windows.DependencyObject
* Frame (39): SetValueCommon | System.Windows.DependencyObject
* Frame (38): UpdateEffectiveValue | System.Windows.DependencyObject
* Frame (37): NotifyPropertyChange | System.Windows.DependencyObject
* Frame (36): OnPropertyChanged | System.Windows.FrameworkElement
* Frame (35): OnPropertyChanged | System.Windows.DependencyObject
* Frame (34): OnIsOpenChanged | System.Windows.Controls.Primitives.Popup
* Frame (33): CreateWindow | System.Windows.Controls.Primitives.Popup
* Frame (32): SetRootVisualToPopupRoot | System.Windows.Controls.Primitives.Popup
* Frame (31): set_RootVisual | System.Windows.Interop.HwndSource
* Frame (30): set_RootVisualInternal | System.Windows.Interop.HwndSource
* Frame (29): SetLayoutSize | System.Windows.Interop.HwndSource
* Frame (28): Measure | System.Windows.UIElement
* Frame (27): MeasureCore | System.Windows.FrameworkElement
* Frame (26): MeasureOverride | System.Windows.Controls.Primitives.PopupRoot
* Frame (25): Measure | System.Windows.UIElement
* Frame (24): MeasureCore | System.Windows.FrameworkElement
* Frame (23): MeasureOverride | System.Windows.Controls.Decorator
* Frame (22): Measure | System.Windows.UIElement
* Frame (21): MeasureCore | System.Windows.FrameworkElement
* Frame (20): MeasureOverride | System.Windows.Documents.AdornerDecorator
* Frame (19): MeasureOverride | System.Windows.Controls.Decorator
* Frame (18): Measure | System.Windows.UIElement
* Frame (17): MeasureCore | System.Windows.FrameworkElement
* Frame (16): MeasureOverride | System.Windows.Controls.Control
* Frame (15): Measure | System.Windows.UIElement
* Frame (14): MeasureCore | System.Windows.FrameworkElement
* Frame (13): MeasureOverride | System.Windows.Controls.ContentPresenter
* Frame (12): MeasureElementWithSingleChild | MS.Internal.Helper
* Frame (11): Measure | System.Windows.UIElement
* Frame (10): MeasureCore | System.Windows.FrameworkElement
* Frame (9): MeasureOverride | System.Windows.Controls.Border
* Frame (8): Measure | System.Windows.UIElement
* Frame (7): MeasureCore | System.Windows.FrameworkElement
* Frame (6): MeasureOverride | System.Windows.Controls.ContentPresenter
* Frame (5): MeasureElementWithSingleChild | MS.Internal.Helper
* Frame (4): Measure | System.Windows.UIElement
* Frame (3): MeasureCore | System.Windows.FrameworkElement
* Frame (2): ApplyTemplate | System.Windows.FrameworkElement
* Frame (1): OnApplyTemplate | Telerik.Windows.Controls.GridView.FilteringControl
* Frame (0): InitializeDistinctValuesFilterClearButton | Telerik.Windows.Controls.GridView.FilteringControl
- Stacktrace Frames -------------------------------------------------------------------------------
- Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.GridView.FilteringControl.InitializeDistinctValuesFilterClearButton()
   at Telerik.Windows.Controls.GridView.FilteringControl.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   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 System.Windows.Controls.Border.MeasureOverride(Size constraint)
   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 System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Primitives.PopupRoot.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   at System.Windows.Controls.Primitives.Popup.SetRootVisualToPopupRoot()
   at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
   at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(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.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.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.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.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.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
- Exception Inner:

 

Dilyan Traykov
Telerik team
 answered on 02 Aug 2022
1 answer
162 views

I try to save the map to the image like this:

    private MemoryStream LocationsToImage(ICollection<LocationType> locationCollection, Size size)
    {
        var map = new RadMap
        {
            Language = XmlLanguage.GetLanguage(CultureInfo.DefaultThreadCurrentCulture.Name),
            Width = size.Width,
            Height = size.Height
        };
        var layer = new InformationLayer();
        map.Items.Add(layer);
        MapHelper.DrawLocations(map, layer, locationCollection);

        //print 
        map.Arrange(new Rect(size));
        map.Measure(size);
        map.Provider = MapProviderFactory.Create();
        using var ms = new MemoryStream();
        map.ExportToImage(@"C:\New Test.png", true);
        return ms;
    }

 

And the result I get:

 

But if I use for a map that is displayed in the UI it will be printed properly

 

But also regarding a map that is not displayed in the UI and was created here (as in the code above) I can use PrintVisual and print it properly.

 

    private void LocationsToImage(ICollection<LocationType> locationCollection, Size size)
    {
        var map = new RadMap
        {
            Language = XmlLanguage.GetLanguage(CultureInfo.DefaultThreadCurrentCulture.Name),
            Width = size.Width,
            Height = size.Height
        };
        var layer = new InformationLayer();
        map.Items.Add(layer);
        MapHelper.DrawLocations(map, layer, locationCollection);

        //print 
        map.Arrange(new Rect(size));
        map.Measure(size);
        map.Provider = MapProviderFactory.Create();
        var pd = new PrintDialog();
        if (pd.ShowDialog().GetValueOrDefault())
        {
            pd.PrintVisual(map, string.Empty);
        }
    }

 

 

So how can I use ExportToImage for a map that I create in code and not in view?

Martin Ivanov
Telerik team
 answered on 02 Aug 2022
1 answer
168 views

Hello,

Until today, I was using Telerik libraries with the Visual Studio built-in extension. In other words, all the Telerik dlls were placed in a "Lib" folder and the various projects referenced them. Everything was working perfectly.

I would like to use Telerik via NuGet packages.

So I removed all references in my projects, deleted the "Lib" folder, and added the necessary NuGet packages as replacements in each projects.

The application compiles and launches perfectly.

Unfortunately, all texts (on a GridView for example) now appear in English (before, it was in French).

Looking at the "bin/Debug/fr" folder, I see that the Telerik.Windows.Controls.resources.dll file is missing. The file doesn't seem to generate when compiling. If I manually copy the file into this folder, the texts appear in French.

How do I make this happen automatically? I have the impression that the NuGet packages do not contain the resources of the different localization.

Am I doing something wrong or is it a problem with Telerik's NuGet packages?

Thanks in advance.

Martin Ivanov
Telerik team
 answered on 01 Aug 2022
1 answer
388 views

Hi,

when i recently use the image editor with big picture(for example 6000*5000 pixel), after drawing several rectangle using shape tool, it gave me:

System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
   at System.Windows.Media.Imaging.WriteableBitmap.InitFromBitmapSource(BitmapSource source)
   at System.Windows.Media.Imaging.WriteableBitmap..ctor(BitmapSource source)
   at Telerik.Windows.Media.Imaging.RadBitmap..ctor(Int32 width, Int32 height, FrameworkElement element, Boolean measureAndArrange)
   at Telerik.Windows.Media.Imaging.Commands.DrawCommand.Execute(RadBitmap source, Object context)
   at Telerik.Windows.Media.Imaging.History.ImageHistory.Execute(IImageCommand command, Object context)
   at Telerik.Windows.Controls.RadImageEditor.ExecuteCommand(IImageCommand command, Object context)
   at Telerik.Windows.Controls.RadImageEditor.CommitTool(Boolean executeSameToolAfterCommit)
   at Telerik.Windows.Media.Imaging.Tools.DrawToolBase.InvokeEndDraw(Point point)
   at Telerik.Windows.Media.Imaging.Tools.DrawToolBase.DrawingCanvas_MouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.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.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

it seems that related to the history memory to me, based on previous discussion:

https://www.telerik.com/forums/out-of-memory-exception-when-cropping-image

but when i assgin a larger MaximumMemoryBufferSize in the imageeditor, the issue still remained, any suggestions on this?

Martin Ivanov
Telerik team
 answered on 28 Jul 2022
0 answers
134 views

I'm having a requirement to implement Telerik RadRichTextBox in my project. But while trying to implement, the textbox is not displaying. Please find the attached sample project for your reference. Can you please help me to resolve this issue? I've referred below link for the implementation. 

https://docs.telerik.com/devtools/wpf/controls/radrichtextbox/getting-started/getting-started

Project Name: Telerik_RichTextbox_POC

Barani
Top achievements
Rank 1
Iron
Iron
 updated question on 28 Jul 2022
1 answer
154 views

How can I change the background of it?

 

Dilyan Traykov
Telerik team
 answered on 25 Jul 2022
1 answer
421 views

I want to change the Foreground of the button when pressed, I was able to do this for MouseOver but not for a pressed button

 

<Style TargetType="telerik:GroupHeaderButton">
    <Setter Property="helpers:ThemeHelper.CheckedBrush" Value="{StaticResource GridView_ItemBackground_Over}"/>
    <Setter Property="helpers:ThemeHelper.MouseOverBrush" Value="{StaticResource ItemBackground_MouseOver}"/>
    <Setter Property="helpers:ThemeHelper.PressedBrush" Value="{StaticResource GridView_ItemBackground_Over}"/>
    <Setter Property="Background" Value="{StaticResource AppointmentItemBackground_UnSelected}"/>
    <Setter Property="Foreground" Value="{StaticResource EditAppointmentTemplateBackGround}"/>
    <Style.Triggers>
        <Trigger Property="IsMouseOver" Value="True">
            <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        </Trigger>
        <Trigger Property="IsPressed" Value="True">
            <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/>
        </Trigger>
    </Style.Triggers>
</Style>

 

Although I registered Trigger to IsPressed but it does nothing

 

Stenly
Telerik team
 answered on 22 Jul 2022
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?