locked
I have a question to set the properties when I make the frame visible. RRS feed

  • Question

  • I made my program show almost every page(frame) collapsed or visible in mainwindow page.

     

    I would like to make upload modify page with content information when I clicked modify page.

     

    But as you know, I set upload page  in mainwindow as a frame.

    So when I call the upload page making visible, I could not set any properties.

    Because just

    Uploadframe.visibility = visibility.visible.

    that's all of it. 

    How I can put some properties that I want in Uploadframe?

    like txtbox_name = developer that I get from content(now what I'm looking when I clicked upload modify)

    or txtbox_iconpath = iconpath ?

    Let me know it please :)


    Monday, May 30, 2011 3:16 PM

Answers

  • Hi Sim,

     

    Thanks for your post.

    I suppose you would like to add custom properties into the frame,

    if so, how about to create a new Frame class which derived from the one you use with your custom properties?

    if you want to add controls to Frame, you can try

    <

     

    Frame Height="100" Name="frame1" Width

    ="200" >

     

     

    <Frame.Content

    >

     

     

    <StackPanel

    >

     

     

    <TextBox Name="txt_name" Text

    ="123"/>

     

     

    <TextBox Name="icon_path" Text

    ="456">

     

     

    </TextBox

    >

     

     

    </StackPanel

    >

     

     

    </Frame.Content

    >

     

     

    </Frame

    >

    If I misunderstand your issue, be free to let me know.


    Ziwei Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Victor_Chen Tuesday, June 7, 2011 7:54 AM
    Wednesday, June 1, 2011 5:40 AM