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

problem with radwindow as usercontrol

3 Answers 195 Views
Window
This is a migrated thread and some comments may be shown as answers.
robert
Top achievements
Rank 1
robert asked on 31 Aug 2011, 05:36 PM
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>

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 01 Sep 2011, 09:52 AM
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 >>

0
robert
Top achievements
Rank 1
answered on 01 Sep 2011, 01:21 PM
I am new to WPF, what you meen with as root element?
Can you give me please a example.
greetings
0
Yana
Telerik team
answered on 02 Sep 2011, 09:49 AM
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 >>

Tags
Window
Asked by
robert
Top achievements
Rank 1
Answers by
Yana
Telerik team
robert
Top achievements
Rank 1
Share this question
or