Jump to content

WPF help

- - - - -

  • Please log in to reply
1 reply to this topic

#1
arunjoseph

arunjoseph

    Newbie

  • Members
  • PipPip
  • 12 posts
Please help on how to open new window in WPF using C#?
and also with that when it opens there should be effects in it!

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas
Opening a new window in C# is as simple as declaring a new instance of the form object with the 'new' operator, and then calling that new object's 'show()' method.

As far as your 2nd point, I have no idea what you mean by 'effects'. This could be anything at all. Whatever effect you want when your new form opens, you will have to write some code to perform it, and this code can be placed in the new form's constructor if you wish, to be executed when it is instantiated. Or, if you prefer, you can create your own method and write your specific code there, and call that method explicitly whenever you want to invoke that effect.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users