2010-12-09 2 views
0

이의 난 다음 UserControl을가 있다고 가정 해 보자 UserControl을합니다 :신참 실버 질문 : 전달 매개 변수는

<UserControl x:Class="TVPage.SilverlightControl1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="400"> 

    <Grid x:Name="LayoutRoot" Background="White"> 
     <TextBox Name="myTxt" Margin="125,107,115,147" /> 
    </Grid> 
</UserControl> 

내가 또 다른 형태의 myTxt라는 텍스트를 설정하여 telerik의 radWindow의 안쪽이 UserControl을을 보여주고 싶습니다. 나는 실버 라이트를 시작하고 기본을 이해하려고 노력하며 어떤 도움을 주겠다고합니다.

답변

1

텍스트 상자에 원하는 값을 기본 창에서 만들 때 사용자 정의 컨트롤의 생성자로 전달해야합니다.

+0

+1 : ASPX 페이지에서 매개 변수를 전달하는 경우 'InitParameters'를 사용합니다. –