.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Silverlight >> Post New QuestionBookmark and Share Subscribe to Forum

childwindow

Posted By: Madhu Gowda     Posted Date: February 22, 2011    Points:2   Category :Silverlight
I am getting an error when i try to create child window in silverlight.
I have written code as follows.


<sdk:ChildWindow x:Class="ChildWindowLogin.LoginWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
Width="300" Height="200"
Title="Login Window"
Closing="ChildWindow_Closing">
<Grid x:Name="LayoutRoot" Margin="2">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel>
<TextBlock Text="Name" />
<TextBox x:Name="nameBox"/>
<TextBlock Text="Password" />
<PasswordBox x:Name="passwordBox"/>
</StackPanel>
<Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click"
Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0"
Grid.Row="1" />
<Button x:Name="OKButton" Content="OK" Click="OKButton_Click"
Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0"
Grid.Row="1" />
</Grid>
</sdk:ChildWindow>

please let me know if u find any error.


Responses
Author: Sunil Yadav       [Moderator]      
Posted Date: February 22, 2011     Points: 5   

What error you are getting?
Please share the whole child window code(only XAML file).

Author: Manas Patnaik             
Posted Date: February 23, 2011     Points: 5   

Can you specify when you are getting error ??
is it when you are trying load the child window or at Designer level?

Manas Patnaik
http://manaspatnaik.com/blog


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend