Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 03 21:43

    punker76 on develop

    Merge branch 'develop' into main (compare)

  • Oct 03 21:42

    punker76 on 2.1.0

    (compare)

  • Oct 03 21:31

    punker76 on main

    Update README.md ci: update cake build for appve… Merge pull request #126 from pu… and 10 more (compare)

  • Oct 03 21:28

    punker76 on develop

    ci: set next version (compare)

  • Oct 03 21:20

    punker76 on #68-open-child-window-on-control

    (compare)

  • Oct 03 21:20
    punker76 closed #129
  • Oct 03 21:20

    punker76 on develop

    feat: #68 open child window on … Merge pull request #129 from pu… (compare)

  • Oct 03 21:14
    punker76 milestoned #129
  • Oct 03 21:14
    punker76 labeled #129
  • Oct 03 21:14
    punker76 opened #129
  • Oct 03 21:14
    punker76 milestoned #129
  • Oct 03 21:14

    punker76 on #68-open-child-window-on-control

    feat: #68 open child window on … (compare)

  • Oct 03 21:12
    punker76 labeled #68
  • Oct 03 20:44
    punker76 edited #101
  • Oct 03 20:41
    punker76 closed #117
  • Oct 03 20:41

    punker76 on #117-childwindow-isopen-check

    (compare)

  • Oct 03 20:41

    punker76 on develop

    fix: #117 check if a dialog is … Merge pull request #128 from pu… (compare)

  • Oct 03 20:41
    punker76 closed #128
  • Oct 03 20:41
    punker76 commented #116
  • Oct 03 20:41
    punker76 closed #116
Darnell Williams
@Seeker1437
Sure
Darnell Williams
@Seeker1437
@punker76 sending as a private message.
Jan Karger ツ ☀
@punker76
ok
Darnell Williams
@Seeker1437
When I use the ImportWorker via XAML, the close, mini, max buttons work (undesired) but they do not work if made using the ChildWindowManager
Jan Karger ツ ☀
@punker76
you can set the OverlayFillBehavior via parameter in ShowChildWindowAsync
Darnell Williams
@Seeker1437
Okay, I did't think of that.
Darnell Williams
@Seeker1437
Actually still doesn't matter
Even with that set for me, I can still close with the main window's close button. It doesn't do that if I use it the way CoolChildWindow is used in the demo
Darnell Williams
@Seeker1437
Its weird xD
Darnell Williams
@Seeker1437
Okay better question, how do I make ti show on top of the titlebar?
I don't want people to be able to close the application for example (although I could just temporary add a event handler to cancel closing...)
Jan Karger ツ ☀
@punker76
@mikecousins whats going wrong?
Mike Cousins
@mikecousins
i have created a child window
and it appears fine
but there is no translucent panel over the window
and it's not acting modal
<simpleChildWindow:ChildWindow x:Class="xxxx" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:system="clr-namespace:System;assembly=mscorlib" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" Title="Invite New User" Height="200" Width="300" IsModal="True">
                var inviteWindow = new InviteWindow(emailAddress);
                var mainWindow = Application.Current.MainWindow as MainWindow;
                await mainWindow.ShowChildWindowAsync(inviteWindow);
Jan Karger ツ ☀
@punker76
can you create an issue? so i can look into tomorrow (i'm only on my phone for now)
Mike Cousins
@mikecousins
sure thing, thanks
Mike Cousins
@mikecousins
i scrolled up and solved my problem, i had to specify ChildWindowHeight and ChildWindowWidth instead of Height and Width
thank you
Darnell Williams
@Seeker1437
:D
Mike Cousins
@mikecousins
how can i wait until the user has closed the child window?
Darnell Williams
@Seeker1437
Hey I noticed a differences in behavior when you create the child window
If I define a child window as a control it will overly the close/minimize buttons
however if directly defined in the window it does not.
Jan Karger ツ ☀
@punker76
@ImaBrokeDude you can set the OverlayFillBehavior to WindowContent in
public static Task ShowChildWindowAsync(this Window window, ChildWindow dialog, OverlayFillBehavior overlayFillBehavior = OverlayFillBehavior.WindowContent)
or FullWindow
Lucas Levvy
@Levvy055
Can this childwindow be resizable?
Jan Karger ツ ☀
@punker76
yes
maybe
it's currently not implemented
Jan Karger ツ ☀
@punker76
@Levvy055 if you want create an issue for this
Lucas Levvy
@Levvy055
ok. Created
Darnell Williams
@Seeker1437
:D
This message was deleted
alt
Paolo Ghibaudo
@ghiboz
hi all!
i'm back again :)
just a question: now I do this:
Car.carPaint paint = new Car.carPaint();
await ((MetroWindow)Application.Current.MainWindow).ShowChildWindowAsync(paint);
and works everything good, but I wish do some code when the child window will be closed... how can I do? if I add some code below, with the await is executed after the ShowChildWindow is called
Jan Karger ツ ☀
@punker76
i will implement this as soon as possible
for a quick workaround, just listen to the IsOpen event
Paolo Ghibaudo
@ghiboz
thanks @punker76
all right?
Paolo Ghibaudo
@ghiboz
i've added this to my childwindow code:
        public delegate void ChildIsClosedEventHandler();
        public event ChildIsClosedEventHandler ChildIsClosedEvent;


        private void ChildWindow_ClosingFinished(object sender, RoutedEventArgs e)
        {
                if (ChildIsClosedEvent != null)
                {
                    ChildIsClosedEvent();
                }
        }
and works :)