{"action":"closed","issue":{"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/485","repository_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon","labels_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/485/comments","events_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/issues/485/events","html_url":"https://github.com/fluentribbon/Fluent.Ribbon/issues/485","id":268705819,"number":485,"title":"InRibbonGallery broken when ItemsSource is empty","user":{"login":"dominiks","id":109005,"avatar_url":"https://avatars2.githubusercontent.com/u/109005?v=4","gravatar_id":"","url":"https://api.github.com/users/dominiks","html_url":"https://github.com/dominiks","followers_url":"https://api.github.com/users/dominiks/followers","following_url":"https://api.github.com/users/dominiks/following{/other_user}","gists_url":"https://api.github.com/users/dominiks/gists{/gist_id}","starred_url":"https://api.github.com/users/dominiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominiks/subscriptions","organizations_url":"https://api.github.com/users/dominiks/orgs","repos_url":"https://api.github.com/users/dominiks/repos","events_url":"https://api.github.com/users/dominiks/events{/privacy}","received_events_url":"https://api.github.com/users/dominiks/received_events","type":"User","site_admin":false},"labels":[{"id":144239833,"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":{"url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/milestones/18","html_url":"https://github.com/fluentribbon/Fluent.Ribbon/milestone/18","labels_url":"https://api.github.com/repos/fluentribbon/Fluent.Ribbon/milestones/18/labels","id":1939909,"number":18,"title":"6.0.0","description":"","creator":{"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},"open_issues":1,"closed_issues":40,"state":"open","created_at":"2016-08-12T23:04:04Z","updated_at":"2017-10-26T15:49:31Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-10-26T10:21:48Z","updated_at":"2017-10-26T15:49:31Z","closed_at":"2017-10-26T15:49:31Z","author_association":"NONE","body":"When the ItemsSource for a InRibbonGallery is an empty collection, the popup closes on click to expand the gallery and prints this stacktrace:\r\n\r\n```\r\nSystem.Windows.Data Error: 8 : Cannot save value from target back to source. BindingExpression:Path=IsDropDownOpen; DataItem='InRibbonGallery' (Name=''); target element is 'ToggleButton' (Name='PART_ExpandButton'); target property is 'IsChecked' (type 'Nullable`1') ArgumentOutOfRangeException:'System.ArgumentOutOfRangeException: Der Parameterwert muss größer Null sein.\r\nParametername: pixelWidth\r\n   bei System.Windows.Media.Imaging.RenderTargetBitmap..ctor(Int32 pixelWidth, Int32 pixelHeight, Double dpiX, Double dpiY, PixelFormat pixelFormat)\r\n   bei Fluent.InRibbonGallery.set_IsSnapped(Boolean value) in C:\\projects\\fluent-ribbon\\Fluent.Ribbon\\Controls\\InRibbonGallery.cs:Zeile 723.\r\n   bei Fluent.InRibbonGallery.OnDropDownOpened(Object sender, EventArgs e) in C:\\projects\\fluent-ribbon\\Fluent.Ribbon\\Controls\\InRibbonGallery.cs:Zeile 1207.\r\n   bei System.Windows.FrameworkElement.RaiseClrEvent(EventPrivateKey key, EventArgs args)\r\n   bei System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)\r\n   bei System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)\r\n   bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n   bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n   bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)\r\n   bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)\r\n   bei System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)\r\n   bei System.Windows.StyleHelper.InvalidateDependents(Style ownerStyle, FrameworkTemplate frameworkTemplate, DependencyObject container, DependencyProperty dp, FrugalStructList`1& dependents, Boolean invalidateOnlyContainer)\r\n   bei System.Windows.StyleHelper.OnTriggerSourcePropertyInvalidated(Style ownerStyle, FrameworkTemplate frameworkTemplate, DependencyObject container, DependencyProperty dp, DependencyPropertyChangedEventArgs changedArgs, Boolean invalidateOnlyContainer, FrugalStructList`1& triggerSourceRecordFromChildIndex, FrugalMap& propertyTriggersWithActions, Int32 sourceChildIndex)\r\n   bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n   bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)\r\n   bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)\r\n   bei System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)\r\n   bei MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)\r\n   bei System.Windows.Data.BindingExpression.UpdateSource(Object value)'\r\n```\r\n\r\nIf the mouse button is held the popup stays open and the gallery's menu items can be used. To reproduce the issue, change the ``DataItems`` in the sample to be empty.\r\n\r\n---\r\n### Environment\r\n\r\n- Fluent.Ribbon 5.0.2.46\r\n- Windows 10\r\n- .NET Framework 4.5.2\r\n"}}
{"actor":{"display_login":"batzen"}}