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. WCF and WF
  4. Access property of UserContorl in XAML

Access property of UserContorl in XAML

Scheduled Pinned Locked Moved WCF and WF
questionwpf
2 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.
  • E Offline
    E Offline
    elektrowolf
    wrote on last edited by
    #1

    I have a UserControl with a property, let's say it's called MyProperty. So how can I set MyProperty in the XAML which defines the UserControl?

    <UserControl x:Class="..." MyProperty="xyz">

    doesnt work..

    P 1 Reply Last reply
    0
    • E elektrowolf

      I have a UserControl with a property, let's say it's called MyProperty. So how can I set MyProperty in the XAML which defines the UserControl?

      <UserControl x:Class="..." MyProperty="xyz">

      doesnt work..

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

      How have you defined it, and what do you mean it doesn't work? Do you mean it's not present, or that values aren't being updated?

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

      My blog | My articles | MoXAML PowerToys

      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