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 hide particular grid.

how to hide particular grid.

Scheduled Pinned Locked Moved WPF
questioncsstutoriallearning
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.
  • S Offline
    S Offline
    SRKSHOME
    wrote on last edited by
    #1

    Hi, I have a simple grid which contains many controls.This grid is defined in resource disctionary. I wanted to hide particular grid in code. But I am not able access this grid in the code as this is defined in resource dictionary. How do I hide this grid..? thanks..

    A 1 Reply Last reply
    0
    • S SRKSHOME

      Hi, I have a simple grid which contains many controls.This grid is defined in resource disctionary. I wanted to hide particular grid in code. But I am not able access this grid in the code as this is defined in resource dictionary. How do I hide this grid..? thanks..

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      You should ideally bind the visibility of the grid and control this via your view model. Set the binding in your style, the datacontext should be the view model and you should be able to control the visibility via a property. This[^] simple example should help you out.

      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