by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 19:46
    punker76 synchronize #3710
  • 19:29
    punker76 synchronize #3825
  • 14:09

    punker76 on develop

    Merge branch 'develop' (compare)

  • 14:09

    punker76 on 2.0.1

    (compare)

  • 13:27

    punker76 on master

    (GH-3812) Fix wrong space for E… Merge pull request #3816 from M… (GH-3811) Fix parent IsEnabled … and 16 more (compare)

  • 13:26

    punker76 on develop

    Forgot to fix GitVersion config… (compare)

  • 13:23

    punker76 on develop

    Forgot to fix GitVersion config (compare)

  • 12:53
    timunie synchronize #3710
  • 12:50
    timunie synchronize #3825
  • 12:29
    floele-sp commented #3817
  • 12:25
    punker76 commented #3817
  • 12:08
    floele-sp commented #3817
  • 10:51

    punker76 on GH-3817-OpenPaneLength-CoerceValue

    (compare)

  • 10:51

    punker76 on develop

    (GH-3817) Fix coercing of OpenP… Merge pull request #3837 from M… (compare)

  • 10:51
    punker76 closed #3837
  • 10:51
    punker76 closed #3817
  • 10:45
    punker76 opened #3837
  • 10:45
    punker76 labeled #3837
  • 10:45
    punker76 milestoned #3837
  • 10:43

    punker76 on GH-3817-OpenPaneLength-CoerceValue

    (GH-3817) Fix coercing of OpenP… (compare)

kraftwerk15
@kraftwerk15_gitlab
image.png
If I try to pass in the full namespace, that class is not available:.
Then here is my dependencies where I'm now point to 2.0.
image.png
kraftwerk15
@kraftwerk15_gitlab
Sorry. Reading through here and I thought using MahApps.Metro.ThemeManager was the correct way. According to the docs, I should still be using ControlzEx. https://mahapps.com/docs/themes/thememanager
Tim
@timunie
@kraftwerk15_gitlab yes
😊
ShannonZ
@ShannonZ
@timunie It works well now , ver 2.x. Thx
Tim
@timunie
v2.0 is so much better :-) incredible work from @punker76
Sebastian Matus
@sebamatusr
hello @punker76
hope you're well
it throws an error at the last child window
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
   at MahApps.Metro.Controls.Dialogs.DialogManager.AddDialog(MetroWindow window, BaseMetroDialog dialog) in D:\descargas\MahApps.Metro.Demo-v1.6.5-rc0001\demogit\src\MahApps.Metro\Controls\Dialogs\DialogManager.cs:line 506
   at MahApps.Metro.Controls.Dialogs.DialogManager.SetupAndOpenDialog(MetroWindow window, BaseMetroDialog dialog) in D:\descargas\MahApps.Metro.Demo-v1.6.5-rc0001\demogit\src\MahApps.Metro\Controls\Dialogs\DialogManager.cs:line 494
   at MahApps.Metro.Controls.Dialogs.DialogManager.<>c__DisplayClass2_0.<ShowMessageAsync>b__1() in D:\descargas\MahApps.Metro.Demo-v1.6.5-rc0001\demogit\src\MahApps.Metro\Controls\Dialogs\DialogManager.cs:line 174
   at System.Windows.Threading.DispatcherOperation`1.InvokeDelegateCore()
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
that's the stack trace and I can't get around that exception
should I open an issue in the official repo?
Sebastian Matus
@sebamatusr
Basically I can open 4 child windows inside a MetroWindow, and if I try to show a messagedialog by clicking on a button on the 4th child window it thorws that exception.
"sequence contains more than one element"
wow, I actually tried showing a message dialog on the 2nd childwindow and it crashed also.
Sebastian Matus
@sebamatusr
it's driving me nuts
Sebastian Matus
@sebamatusr
I just found a workaround, I changed line 506 in Mahapps.Metro.Controls.Dialogs.DialogManager from
var activeDialog = window.metroActiveDialogContainer.Children.Cast<UIElement>().SingleOrDefault();
To
var activeDialog = window.metroActiveDialogContainer.Children.Cast<UIElement>().FirstOrDefault();
Jan Karger ツ ☀
@punker76
@timunie The container contains only dialogs, so there are no other UIElements in there. The problem is that the simple dialog doesn’t move to the inactive container and keeps at the active container. so if you then try to open another dialog the error occurs.
Tim
@timunie
Deleted my answers as they were wrong in this case
Sebastian Matus
@sebamatusr

@timunie The container contains only dialogs, so there are no other UIElements in there. The problem is that the simple dialog doesn’t move to the inactive container and keeps at the active container. so if you then try to open another dialog the error occurs.

What other dialog? Sorry, i'm struggling to understand this.

Tim
@timunie
@sebamatusr I was telling wrong things and @punker76 corrected me. Sorry.
Sebastian Matus
@sebamatusr
@timunie ah ok.
So is it a bug or intended behavior? I don't know how ti fix this in my project, I can only get it to work if I modify the line I mentioned before, but that is only if I reference the mahapps source project, I cannot do it if I install it via nuget.
Jan Karger ツ ☀
@punker76
@sebamatusr After v2.0.1 which is out now, I will focus on it to fix this.
Sebastian Matus
@sebamatusr
@punker76 that'd be amazing
kraftwerk15
@kraftwerk15_gitlab
Hey all. I'm looking to create a dropdown using the MahApps dropdown element. I have it styled correctly, but wanted it to show the name of the selected item in the dropdown after a user selects an item compared to always having the "Content" name displayed. Is that possible? I'm looking at the MahApps example app on the ButtonsExample.xaml at line 468. The Example app does not allow this, but I'm looking at a similar functionality to the split app just to the right.
image.png
image.png
In the second image, I like the split button look where when I select a different genre, the list collapses and then updates with the selected item. The left, dropdown, always says Genres and never updates.
But I don't need any "button" functionality.
Jan Karger ツ ☀
@punker76
@kraftwerk15_gitlab so if you don’t need a button functionality why not using a ComboBox?
kraftwerk15
@kraftwerk15_gitlab
Just to get a cute looking icon.
Already had a combobox up and running as an option in the first screenshot where it says "Steel".
Cédric Lampron
@C1rdec
Jan Karger ツ ☀
@punker76
@C1rdec ❤️🍻
@kraftwerk15_gitlab But the DropDownButton should work for this, only point is that it has no split.
kraftwerk15
@kraftwerk15_gitlab
@punker76 mine doesn't. Thought that was a feature of the MahApps dropdown. That's why I asked if it could be like the split button.
Tim
@timunie
@kraftwerk15_gitlab I think you need to bind the Content in order to change it. It is not by default as far as I remembber.
kraftwerk15
@kraftwerk15_gitlab
@timunie yea I was playing with that right now
kraftwerk15
@kraftwerk15_gitlab
From reading the docs again, it is not possible. I'll revert back to using comboboxes. Thanks
Tim
@timunie
@kraftwerk15_gitlab it is possible with a workaround. But you can also get the look of DropDownButton with the behavoir of a ComboBox.
If it is just the Style you can override the ControlTemplate and or DataTemplate of the ComboBox. If you need more help tomorrow let me know.