Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Possible Bug when DataBinding OutlookBarGroups
posted

I found a reproducable Problem when using the GroupsSource on the XamOutlookBar:

  1. Run the application
  2. In the GroupOverflowArea click the down arrow
  3. Select "Navigation Pane Options..."
  4. Disable one of the Groups
  5. Close Options
  6. In the GroupOverflowArea click the down arrow again
  7. Go to "Add or Remove Buttons"

Now the unselected Group is drawn incorrectly, as you can see on the screenshot. The Text is missing (the same happens for SmallImage if set).

Is something wrong with my Style, or is this an issue with the XamOutlookBar? This only happens if I uncheck a Group in the Options. It works if I use "Add or Remove Buttons".

Thanks,

Patrick

<Window.Resources>
        <sys:ArrayList x:Key="data">
            <local:GroupViewModel Header="Home" />
            <local:GroupViewModel Header="Web" />
            <local:GroupViewModel Header="Local" />
        </sys:ArrayList>
    </Window.Resources>

    <igOB:XamOutlookBar GroupsSource="{StaticResource data}">
        <igOB:XamOutlookBar.Resources>
            <Style TargetType="{x:Type igOB:OutlookBarGroup}">
                <Setter Property="Header" Value="{Binding Path=Header}" />
            </Style>
        </igOB:XamOutlookBar.Resources>
    </igOB:XamOutlookBar>

OutlookBarGroupsBinding.zip
  • 8576
    Offline posted

    Hi Patrick -

    This looks like a bug.  It appears that the binding you have setup for the Header property is getting reset or stepped on.  This only seems to happen in the case where you disable the group via the NavigationPaneOptionsDialog (i.e., Step 4).  If you disable the group using the AddRemoveButtons flyout menu, then the group's text appears OK on a subsequent opening of the AddRemoveButtons menu.

    I have logged bug #23338 for this issue.  Thanks for reporting this.

    Joe