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. how to make a property appear in .xaml file

how to make a property appear in .xaml file

Scheduled Pinned Locked Moved WPF
wpftutorialcsharphelp
3 Posts 2 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.
  • V Offline
    V Offline
    vinod sankuthodi
    wrote on last edited by
    #1

    Hi, I am working with designing custom controls for WPF applications. My problem is I couldn't find a way to force a control property appear in the XAML window by default. It appears only when its changed by the user. for example a button has a propert called myProp which I initializes in the constructor, but It doesn't gets reflected in the XAML file of the window. pls tell me how to force a property to appear in the .xaml file, by default whenever a control is placed on the WPF window. thanks in advance, vinod

    P 1 Reply Last reply
    0
    • V vinod sankuthodi

      Hi, I am working with designing custom controls for WPF applications. My problem is I couldn't find a way to force a control property appear in the XAML window by default. It appears only when its changed by the user. for example a button has a propert called myProp which I initializes in the constructor, but It doesn't gets reflected in the XAML file of the window. pls tell me how to force a property to appear in the .xaml file, by default whenever a control is placed on the WPF window. thanks in advance, vinod

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

      Simple answer, you can't. Sorry about that.

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

      My blog | My articles | MoXAML PowerToys

      V 1 Reply Last reply
      0
      • P Pete OHanlon

        Simple answer, you can't. Sorry about that.

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

        My blog | My articles | MoXAML PowerToys

        V Offline
        V Offline
        vinod sankuthodi
        wrote on last edited by
        #3

        thn how microsoft manages to embed some control property into the xaml by default. Like the name proprty of a control derived from Usercontrol. or can tell me if there is any work around

        modified on Tuesday, October 14, 2008 2:50 AM

        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