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. Stackpanel visibility problem??

Stackpanel visibility problem??

Scheduled Pinned Locked Moved WPF
questioncsharpwpfdata-structureshelp
1 Posts 1 Posters 2 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.
  • D Offline
    D Offline
    Dotnetkanna
    wrote on last edited by
    #1

    Hi, Im using WPF for designing the form.im having a dockpanel in the dockpanel i have splited into two regions by using the following code <Border Height="50" x:Uid="Left" CornerRadius="0,0,40,40" Background="#81a4d1" BorderBrush="#4D6C82" BorderThickness="1" DockPanel.Dock="left"> </Border> <Border Width="200" x:Uid="Right" Background="#b2ccec" BorderBrush="#4D6C82" BorderThickness="1" DockPanel.Dock="right"> </Border> Then im having two buttons namely Client and Product in the left border and im having two stack panel with some controls related to client and product.now if im clicking client button means the client information related stackpanel should be visible and if i click product button means the product related stackpanel should be visible, how can i achieve this? i have tried the below code but its getting hidden but the alternate panel is not getting visible.. private void BtnClient_Click(object sender, RoutedEventArgs e) { StkClient.Visibility = Visibility.Visible; StkProduct.Visibility = Visibility.Hidden; } private void BtnProduct_Click(object sender, RoutedEventArgs e) { StkProduct.Visibility = Visibility.Visible; StkClient.Visibility = Visibility.Hidden; } Rgrds Kanna

    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