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

How to start

3 Answers 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
M
Top achievements
Rank 1
M asked on 22 Aug 2009, 12:01 AM
This is my first experience with WPF and Telerik.

When I create an empty WPF project in VS2008, I'm given a Window1.xaml and the outer component is <Window x:Class="..." >

If I'm going to use the Rad controls throughout, should I replace that with telerik:RadWindow? If so, how? When I drag a RadWindow into my current canvas, it is nested. When I run the app, I don't see the RadWindow.

Essentially I'm looking to have a base window for my app that has a RadPanelBar on the left side as the primary menu, and a main content area that will hold multiple windows created dynamically based on menu selections.

I'm not sure what the foundation of a Telerik WPF app should start with.

Thanks,
ms

3 Answers, 1 is accepted

Sort by
0
Accepted
ManniAT
Top achievements
Rank 2
answered on 22 Aug 2009, 02:13 PM
Hi M,

your "base window" (Window x:Class) is some part that holds your application.
Imagine it as something like the glue between your WPF things and the underlying OS.
So just leave it what it is.

Place the RadPanelBar in this window and also the RadWindows you need.
In the handler of your RadPanelBar call the Show - or the BringToFront methods of your windows.

And a last thing - in the documentation http://www.telerik.com/help/wpf/radwindow-showing-and-positioning.html
you can read:
>>By default RadWindow is not visible in the current page. That is why, there are numerous properties that allow By default RadWindow is not visible in the current page. That is why, there are numerous properties that allow

This means you must (for an example in the loaded event of your applications window) call Show on the RadWindow you like to acts as "initial screen".

I hope I could give you some ideas how to start.

Regards

Manfred
PS: if my answer was helpful - pleas use "Mark as answer"
0
M
Top achievements
Rank 1
answered on 22 Aug 2009, 02:53 PM
Hi Manfred,
Thanks for the pointers. Yes that helps. I was getting ahead of myself, trying to learn a new technology in my usual old way of skipping the instructions and trying to put it together on my own. I then decided to do some reading last night and did remember I had a WPF book at the office I had bought almost a year ago (WPF Unleashed), and Chapter 6 covered Layout with Panels plus somewhere it also covered the base window. That, plus your answer clears it up for me.

Thanks,
MS
0
ManniAT
Top achievements
Rank 2
answered on 22 Aug 2009, 03:01 PM
Hi MS,

you are welcome.
And I'm also a bit like you when it comes to new things.
Or in other words - the intended use of the included manual is to fix the things after I broke it by testing :)

BUT - a tip (common for all telerik things):
Further ignore the manuals :)
Check out the samples!!!!

I've been serious when I wrote the thing about the use of manuals. (Of course I use them one step earlier -- when thinks look as if they could break :)).
Because what should I read there? For me a manual is something to find a solution. But first I have to discover what is possible.
And that's a great thing about the telerik products - all of them come with rich samples.
So this is a real good entry point - and (at least for me) it is a source of inspiration because the samples often show thing I wouldn't have thought about.

Regards

Manfred
Tags
General Discussions
Asked by
M
Top achievements
Rank 1
Answers by
ManniAT
Top achievements
Rank 2
M
Top achievements
Rank 1
Share this question
or