{"action":"created","issue":{"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/539","repository_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon","labels_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/539/comments","events_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/539/events","html_url":"https://github.com/fluentribbon/Fluent.Ribbon/issues/539","id":300280725,"number":539,"title":"Grouping Menu Items in DropDownButton","user":{"login":"pschimmel","id":9028723,"avatar_url":"https://avatars0.githubusercontent.com/u/9028723?v=4","gravatar_id":"","url":"https://api.github.com/users/pschimmel","html_url":"https://github.com/pschimmel","followers_url":"https://api.github.com/users/pschimmel/followers","following_url":"https://api.github.com/users/pschimmel/following{/other_user}","gists_url":"https://api.github.com/users/pschimmel/gists{/gist_id}","starred_url":"https://api.github.com/users/pschimmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pschimmel/subscriptions","organizations_url":"https://api.github.com/users/pschimmel/orgs","repos_url":"https://api.github.com/users/pschimmel/repos","events_url":"https://api.github.com/users/pschimmel/events{/privacy}","received_events_url":"https://api.github.com/users/pschimmel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-26T15:26:16Z","updated_at":"2018-03-01T18:08:04Z","closed_at":"2018-02-26T20:54:57Z","author_association":"NONE","body":"Is it possible to group MenuItems added as Items of a DropDownButton?\r\n\r\nI added connected the ItemsSource of a DropDownButton to a list of WPF MenuItems. This works perfectly to show a menu when the user clicks on the DropDownButton. Now I want to group those items similar to the \"Arrange\" button in PowerPoint.\r\n\r\nWhen I add the following GroupStyle to the GroupStyle property of the DropDownButton, I only see the group headers, but no items.\r\n\r\n`              <GroupStyle>\r\n                <GroupStyle.ContainerStyle>\r\n                  <Style TargetType=\"{x:Type GroupItem}\">\r\n                    <Setter Property=\"Margin\" Value=\"0,0,0,5\"/>\r\n                    <Setter Property=\"Template\">\r\n                      <Setter.Value>\r\n                        <ControlTemplate TargetType=\"{x:Type GroupItem}\">\r\n                          <Expander IsExpanded=\"True\" Background=\"#FF112255\" BorderBrush=\"#FF002255\" Foreground=\"#FFEEEEEE\" BorderThickness=\"1,1,1,5\">\r\n                            <Expander.Header>\r\n                              <DockPanel>\r\n                                <TextBlock FontWeight=\"Bold\" Text=\"{Binding Path=Name}\" Margin=\"5,0,0,0\" Width=\"100\"/>\r\n                                <TextBlock FontWeight=\"Bold\" Text=\"{Binding Path=ItemCount}\"/>\r\n                              </DockPanel>\r\n                            </Expander.Header>\r\n                            <Expander.Content>\r\n                              <ItemsPresenter />\r\n                            </Expander.Content>\r\n                          </Expander>\r\n                        </ControlTemplate>\r\n                      </Setter.Value>\r\n                    </Setter>\r\n                  </Style>\r\n                </GroupStyle.ContainerStyle>\r\n              </GroupStyle>`\r\n\r\nWhen I apply the same styling to a standard ListBox for example, it works perfectly."},"comment":{"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/comments/369679108","html_url":"https://github.com/fluentribbon/Fluent.Ribbon/issues/539#issuecomment-369679108","issue_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/539","id":369679108,"user":{"login":"batzen","id":1971030,"avatar_url":"https://avatars0.githubusercontent.com/u/1971030?v=4","gravatar_id":"","url":"https://api.github.com/users/batzen","html_url":"https://github.com/batzen","followers_url":"https://api.github.com/users/batzen/followers","following_url":"https://api.github.com/users/batzen/following{/other_user}","gists_url":"https://api.github.com/users/batzen/gists{/gist_id}","starred_url":"https://api.github.com/users/batzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batzen/subscriptions","organizations_url":"https://api.github.com/users/batzen/orgs","repos_url":"https://api.github.com/users/batzen/repos","events_url":"https://api.github.com/users/batzen/events{/privacy}","received_events_url":"https://api.github.com/users/batzen/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T18:08:04Z","updated_at":"2018-03-01T18:08:04Z","author_association":"OWNER","body":"Glad you found a solution. ;-)"}}
{"actor":{"display_login":"batzen"}}