How to start

4 posts, 1 answers
  1. M
    M avatar
    11 posts
    Member since:
    Feb 2008

    Posted 21 Aug 2009 Link to this post

    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
  2. Answer
    ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 22 Aug 2009 Link to this post

    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"
  3. UI for WPF is Visual Studio 2017 Ready
  4. M
    M avatar
    11 posts
    Member since:
    Feb 2008

    Posted 22 Aug 2009 Link to this post

    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
  5. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 22 Aug 2009 Link to this post

    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
Back to Top