This is a migrated thread and some comments may be shown as answers.

WinForms like Navigator in Telerik UI for WPF

5 Answers 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kishan
Top achievements
Rank 1
Kishan asked on 18 May 2018, 09:34 AM
Hello,
I’m shifting from WinForms UI to Telerik WPF UI and I can’t find any control like WinForms Binding Navigator. After looking into documentation I found CollectionNavigator control but that’s not what I was looking for.
As per this Telerik blog (https://www.telerik.com/blogs/a-binding-navigator-in-the-xaml-world) I tried creating a WinForms like Navigator. But unfortunately it is throwing null reference exception in design time every time we try to re-build it. I have downloaded code from blog only and trying to run it. Please see the screenshot attached.

Would you please let me know if there is any control like this in Telerik WPF or if there is any solution for the code in the blog.
Thanks,
Kishan

5 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 23 May 2018, 07:40 AM
Hello Kishan,

I will check your question and write back within the next few hours.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Martin Ivanov
Telerik team
answered on 23 May 2018, 11:43 AM
Hello Kishan,

Currently, there is not such control in the UI for WPF suite. In order to achieve your requirement you can use RadToolBar for the navigation part and RadPropertyGrid for the current item information.

As for the example from the blog post. The error appears only at design-time. If you run the project the control will be shown properly.

II hope that helps.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Kishan
Top achievements
Rank 1
answered on 24 May 2018, 07:33 AM
Is there any way to resolve that design-time error?
0
Accepted
Martin Ivanov
Telerik team
answered on 28 May 2018, 01:18 PM
Hello Kishan,

To resolve the error go to the BindingNavigator class and include a null check for the "obj" parameter of the IsCollection() method. Here is the modified version of the method.
private static bool IsCollection(IEnumerable obj)
{
    return obj != null && GetEnumerableGenericArgument(obj.GetType()) != null
           && obj is IList;
}
Then rebuild the projects and re-open the Visual Studio designer.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Kishan
Top achievements
Rank 1
answered on 22 Aug 2018, 09:20 AM

Hey Martin,

I just checked it and it works! 

Thank you so much for your help! :) :)

 

Thanks,
Kishan Sojitra

Tags
General Discussions
Asked by
Kishan
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Kishan
Top achievements
Rank 1
Share this question
or