Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Resize event of wpf window

Resize event of wpf window

Scheduled Pinned Locked Moved WPF
csharpwpftutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ciacia
    wrote on last edited by
    #1

    Hi I want to capture rezise event of WPF window ... how can I do that ... please guide...its urgent :( :( :(

    P 1 Reply Last reply
    0
    • C ciacia

      Hi I want to capture rezise event of WPF window ... how can I do that ... please guide...its urgent :( :( :(

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      ciacia wrote:

      its urgent

      It's always urgent. Just once, I'd like to see somebody say get round to it when you can. Anyway - the Window element in your XAML exposes a SizeChanged event so you'd hook it up as in

      <Window x:Class="MyNamespace.MyClass"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="Size Test" Height="411" Width="310"
      Loaded="Window_Loaded"
      SizeChanged="Window_SizeChanged">

      This creates an event handler in the codebehind that looks like this:

      private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
      {

      }

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      N 1 Reply Last reply
      0
      • P Pete OHanlon

        ciacia wrote:

        its urgent

        It's always urgent. Just once, I'd like to see somebody say get round to it when you can. Anyway - the Window element in your XAML exposes a SizeChanged event so you'd hook it up as in

        <Window x:Class="MyNamespace.MyClass"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Size Test" Height="411" Width="310"
        Loaded="Window_Loaded"
        SizeChanged="Window_SizeChanged">

        This creates an event handler in the codebehind that looks like this:

        private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
        {

        }

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        N Offline
        N Offline
        naish_kewl
        wrote on last edited by
        #3

        Funny but useful reply. tks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups