problem with radwindow as usercontrol

4 posts, 0 answers
  1. robert
    robert avatar
    27 posts
    Member since:
    Aug 2011

    Posted 31 Aug 2011 Link to this post

    Hello i try the latest internal build from Q2 2011 for WPF 4. I have some radwindows as usercontrol
    defined in the main xaml file. I get compiler errors and can't get it to run.
    In code i call CtlNewPerson.ShowDialog()
    This sample is runnning under Q1 SP1 latest internal build correctly.
    Can you please check this issue.
    best regards ...
    <telerik:RadWindow x:Name="WindowNewPerson" Width="800" Height="626" Header="Test ..." WindowStartupLocation="CenterScreen" telerik:StyleManager.Theme="Windows7" FontFamily="Verdana" IsRestricted="True" ResizeMode="NoResize" >
          <telerik:RadWindow.Background>
              <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                  <GradientStop Color="White"/>
                  <GradientStop Color="#FFE5EAEC" Offset="1"/>
              </LinearGradientBrush>
          </telerik:RadWindow.Background>
          <telerik:RadWindow.Effect>
              <DropShadowEffect BlurRadius="50" ShadowDepth="10" Opacity="0.5" Direction="290" RenderingBias="Performance"/>
          </telerik:RadWindow.Effect>
          <local:ScrNewPerson x:Name="CtlNewPerson"/>
      </telerik:RadWindow>
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 01 Sep 2011 Link to this post

    Hi Robert,

    You should define the RadWindow as a root element of the User Control, so every RadWindow should be a separate User Control. Please try it and let us know whether it helps.

    Greetings,
    Yana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. robert
    robert avatar
    27 posts
    Member since:
    Aug 2011

    Posted 01 Sep 2011 Link to this post

    I am new to WPF, what you meen with as root element?
    Can you give me please a example.
    greetings
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 02 Sep 2011 Link to this post

    Hi Robert,

    I've attached a very basic example demonstrating the approach, please download it and give it a try.

    Best wishes,
    Yana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top