Telerik Forums
UI for WPF Forum
1 answer
243 views

Hi telerik,

I've created .Net 5 project , however  telerik controls can't be seen on xaml designer,  although wpf default controls are shown well.  On running, all controls are seen and working without problem.

With the help of many threads regarding this subject , I  found your reply how to remove designer cache and set the extension option,etc.  While I did all steps as you said, no success yet.  

My situation is as follows, 

 - telerik 2021.2.615 and  vs2019  16.10.2 installed.

 - projects are created as WPF 5.0 project, not by tererik wpf template because it only support till .net 4.5.

    Projects target is 'ANY CPU'.

 -  NoXaml dlls are copied to solution folder from installed directory, and all projects referenced  those.

    Double checked that no cross referenced dll exists between NoXaml and Xaml dlls.

 

During checking, I found that toolbox configuratIon  supports only .net 4.5. as attached image. 

Does that mean that I missed something ?  so designer failed to load telerik controls ?

 

TIA

Kang

Yonggu Kang
Top achievements
Rank 1
Iron
 answered on 02 Jul 2021
1 answer
168 views

Hello.

I am trying to use Empty GridView Message Content of GridView in SDK.

I saw an error when using GridView Empty inside a TabControl.

How do I solve this part?

 

EmptyGridViewMessageBehavior.cs

private void InsertAdditionalContentControl() { if (this.additionalContentControl.Content != this.messageContent) { this.additionalContentControl.Content = this.messageContent; } var rootGrid = this.gridView.FindChildByType<Grid>(); // rootGrid is Null. rootGrid.Children.Add(this.additionalContentControl); // System.NullReferenceException }

//If I put TabControl, TabItem instead of Grid in FindChildByType<Grid>, rootGrid.Children could not be resolved.

 

Thanks.

Martin Ivanov
Telerik team
 answered on 01 Jul 2021
0 answers
288 views

Hi.
I get Index out of range when try to expand node in my RadTreeview.

I expand and select two items,
Then I try to expand a different node (same root but different branch) and I get the error:

System.IndexOutOfRangeException
  HResult=0x80131508
  Message=Index was outside the bounds of the array.
  Source=Telerik.Windows.Controls.Navigation
  StackTrace:
   at Telerik.Windows.Controls.TreeView.IndexTree.CumulativeValue(Int32 endIndex)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.ExtendDesiredSize(ItemsControl itemsControl, Size stackDesiredSize, Int32 pivotIndex, Boolean before)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize) in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs:line 4406
   at System.Windows.UIElement.Measure(Size availableSize) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs:line 658
   at System.Windows.ContextLayoutManager.UpdateLayout() in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs:line 315
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs:line 583
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs:line 1968
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs:line 1845
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/MediaContext.cs:line 1746
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 137
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 46
   at System.Windows.Threading.DispatcherOperation.InvokeImpl() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperation.cs:line 549
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Internal/CulturePreservingExecutionContext.cs:line 216
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 215
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 56
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Internal/CulturePreservingExecutionContext.cs:line 183
   at System.Windows.Threading.DispatcherOperation.Invoke() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/DispatcherOperation.cs:line 455
   at System.Windows.Threading.Dispatcher.ProcessQueue() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 2105
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 2340
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Win32/HwndWrapper.cs:line 330
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Win32/HwndSubclass.cs:line 433
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 137
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 46
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 1342
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) in /_/src/Microsoft.DotNet.Wpf/src/shared/MS/Win32/HwndSubclass.cs:line 378
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 2135
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 329
   at System.Windows.Threading.Dispatcher.Run() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 297
   at System.Windows.Application.RunDispatcher(Object ignore) in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 2405
   at System.Windows.Application.RunInternal(Window window) in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 1695
   at System.Windows.Application.Run() in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 198
   at NsModules.App.Main()

  This exception was originally thrown at this call stack:
    Telerik.Windows.Controls.TreeView.IndexTree.CumulativeValue(int)
    Telerik.Windows.Controls.TreeView.TreeViewPanel.ExtendDesiredSize(System.Windows.Controls.ItemsControl, System.Windows.Size, int, bool)
    Telerik.Windows.Controls.TreeView.TreeViewPanel.MeasureOverride(System.Windows.Size)
    System.Windows.FrameworkElement.MeasureCore(System.Windows.Size) in FrameworkElement.cs
    System.Windows.UIElement.Measure(System.Windows.Size) in UIElement.cs
    System.Windows.ContextLayoutManager.UpdateLayout() in LayoutManager.cs
    System.Windows.ContextLayoutManager.UpdateLayoutCallback(object) in LayoutManager.cs
    System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() in MediaContext.cs
    System.Windows.Media.MediaContext.RenderMessageHandlerCore(object) in MediaContext.cs
    System.Windows.Media.MediaContext.RenderMessageHandler(object) in MediaContext.cs
    ...
    [Call Stack Truncated]

 

If I invert the order of selection the error don't raise.

In the figure: first I select the node in yellow, then I click in the arrow in red

 

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 updated question on 01 Jul 2021
1 answer
194 views

Hello.

When using RadAutoCompleteBox, an error occurs in the debug output if the tab is changed.

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

The issue has been around for a long time. I heard it's a wpf timing issue.

I also found this issue on the feedback portal.
https://feedback.telerik.com/wpf/1351336-a-binding-error-is-printed-in-the-output-on-start-up-for-elementname-watermarktextbox

Are you still using the above post and can't fix it?

 

Thanks.


Dinko | Tech Support Engineer
Telerik team
 answered on 01 Jul 2021
3 answers
411 views

Similar to how Excel works, I'm looking for a way to have header text span multiple columns ... see image.  Also needs to work with a "Freeze/scrolling" RadGrid.

Cheers, Rob.

 

Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 30 Jun 2021
0 answers
120 views

Hello, telerik.

 

When using NoXaml, RadDocumentPane looks loosing the header as attached picture.

It shows without problem when changing projects into dlls with Xaml as attached image.

Following theme xamls  are added on  project start.

            Controls.Add("System.Windows.xaml");
            Controls.Add("Telerik.Windows.Controls.xaml");
            Controls.Add("Telerik.Windows.Controls.Navigation.xaml");
            Controls.Add("Telerik.Windows.Controls.Input.xaml");
            Controls.Add("Telerik.Windows.Controls.GridView.xaml");
            Controls.Add("Telerik.Windows.Controls.RibbonView.xaml");
            Controls.Add("Telerik.Windows.Controls.Docking.xaml"); 

Did I miss something another xaml ?

My project information is as follwos;

- telerik 2021.2.615, vs 2019.

- .Net 5 (WPF50 dlls used in installed folder).

 

Thanks.

Kang

 

 

 

 

 

Yonggu Kang
Top achievements
Rank 1
Iron
 asked on 30 Jun 2021
0 answers
313 views

Hello,

when the user double clicks an item in the ExplorerControl a rename is initiated (see attached screenshot). This is usually expected to happen on a slow double click. On a normal double click users expect the file to be opened. The right click context menu also indicates this behavior as the open action is shown bold (and rename is not). So this is a little bit inconsistent and looks like a bug.

For the WinForms Version I found a workaround here: https://www.telerik.com/forums/few-question-on-explorercontrol#5122863

But the WPF Explorer Control is missing a ItemMouseDoubleClick event, so what is the best way to get the expected behavior?

Best regards, Philipp

Philipp
Top achievements
Rank 1
 asked on 30 Jun 2021
1 answer
324 views

Hi,

In Silverlight I believe the RadTabControl will lazily load the content of a RadTabControl when the RadTabItems are declared in the Xaml.  In WPF I seems to eager load all the items on loading the control.  Is it possible to configure the RadTabControl to only instantiate the RadTabItem content when the tab is selected to improve performance?


Thanks

Martin Ivanov
Telerik team
 answered on 30 Jun 2021
2 answers
201 views

I have List(of objects) and the definition of the Object is Name (string) FileName (string) that I set to the ItemSource of a RadTileList.  Here is the control definition in XML:


        <telerik:RadTileList x:Name="tlColorPresets" Grid.Row="1" Grid.Column="1" Width="600">
            <telerik:RadTileList.ItemTemplate>
                <DataTemplate>
                    <Grid Background="#FF006AC1">
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding Name}"/>
                        <Image Grid.Row="1" Grid.Column="0" Source="{Binding ImageFileName}" />
                    </Grid>
                </DataTemplate>
            </telerik:RadTileList.ItemTemplate>
        </telerik:RadTileList>

Trying to figure out how to get my images displayed in the RadTileList?  Any hints/suggestions.

Cheers, Rob.

 

Martin Ivanov
Telerik team
 answered on 30 Jun 2021
1 answer
151 views
Wondering how the image of the background repeated on the sample of this control .
Martin Ivanov
Telerik team
 answered on 30 Jun 2021
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?