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. Ribbon Control - Workspace areas

Ribbon Control - Workspace areas

Scheduled Pinned Locked Moved WPF
wpfcsharpdatabasearchitecturehelp
2 Posts 1 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
    Sevententh
    wrote on last edited by
    #1

    Hi all, I'm working with MS Ribbon Control Library in VS2010 (using WPF and MVVM) and what to recreate something that Word 2010 does... (I'm not sure what MS call this function) If you open a new doc in Word 2010, you get the document in a view window (as normal). However, if you then select File, it will open a new window / workspace with Information about Document1 for this tab... Select Home tab and it goes back to the view of the document. 1: What does MS call this function> 2: How do I create a new window / workspace for each tab. I have tried the following snippet:

    <r:RibbonTab Header="Home" >
    <r:RibbonGroup Header="Imaging">
    <r:RibbonButton Label="Archive Images" />
    <r:RibbonButton Label="Our Images" />
    </r:RibbonGroup>
    <r:RibbonTab.Triggers>
    <Trigger Property="IsSelected" Value="True">
    <Setter /> <!-- Show only contentcontrol HomePage -->
    </Trigger>
    </r:RibbonTab.Triggers>
    </r:RibbonTab>
    ...

    <ContentControl x:Name="HomePage" Visibility="Collapsed"/>
    <ContentControl x:Name="DocPage" Visibility="Collapsed"/>

    But I'm stuck!!

    Love & Light

    S 1 Reply Last reply
    0
    • S Sevententh

      Hi all, I'm working with MS Ribbon Control Library in VS2010 (using WPF and MVVM) and what to recreate something that Word 2010 does... (I'm not sure what MS call this function) If you open a new doc in Word 2010, you get the document in a view window (as normal). However, if you then select File, it will open a new window / workspace with Information about Document1 for this tab... Select Home tab and it goes back to the view of the document. 1: What does MS call this function> 2: How do I create a new window / workspace for each tab. I have tried the following snippet:

      <r:RibbonTab Header="Home" >
      <r:RibbonGroup Header="Imaging">
      <r:RibbonButton Label="Archive Images" />
      <r:RibbonButton Label="Our Images" />
      </r:RibbonGroup>
      <r:RibbonTab.Triggers>
      <Trigger Property="IsSelected" Value="True">
      <Setter /> <!-- Show only contentcontrol HomePage -->
      </Trigger>
      </r:RibbonTab.Triggers>
      </r:RibbonTab>
      ...

      <ContentControl x:Name="HomePage" Visibility="Collapsed"/>
      <ContentControl x:Name="DocPage" Visibility="Collapsed"/>

      But I'm stuck!!

      Love & Light

      S Offline
      S Offline
      Sevententh
      wrote on last edited by
      #2

      I've also tried:

      <r:RibbonTab.Triggers>
      <DataTrigger Binding="{Binding Path=IsSelected}" Value="True" >
      <!--<Setter TargetName="HomePage" Property="ContentControl.Visibility" Value="Visible" />-->
      </DataTrigger>
      </r:RibbonTab.Triggers>

      But get the error message XamlParseException occurred 'Initialization of 'Microsoft.Windows.Controls.Ribbon.RibbonTab' threw an exception.' Line number '65' and line position '18'.

      Love & Light

      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