Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 18 09:20
    nagababuthota984 commented #85
  • Mar 17 23:06

    punker76 on develop

    Update README.md (compare)

  • Jan 20 08:26
    punker76 labeled #125
  • Jan 20 07:59
    goldcode opened #125
  • Jul 10 2021 21:38
    andrewissac opened #124
  • Nov 20 2020 22:28

    punker76 on develop

    Merge branch 'develop' into main Fix using NuGetKeyVaultSignTool (compare)

  • Nov 20 2020 22:25

    punker76 on 2.0.0

    (compare)

  • Nov 20 2020 22:20

    punker76 on main

    Fix using NuGetKeyVaultSignTool (compare)

  • Nov 20 2020 22:13

    punker76 on main

    Fix using NuGetKeyVaultSignTool (compare)

  • Nov 20 2020 22:02
    punker76 closed #120
  • Nov 20 2020 22:01

    punker76 on main

    (GH-80) Drop targeting to frame… Update appveyor script Change all to new csproj format and 45 more (compare)

  • Nov 20 2020 21:44

    punker76 on develop

    Update CI build and dependencies (compare)

  • Nov 20 2020 21:39

    punker76 on develop

    Update CI build and dependencies (compare)

  • Sep 22 2020 20:26
    eliezeralmeida commented #122
  • Sep 22 2020 20:22
    eliezeralmeida closed #107
  • Sep 22 2020 20:22
    eliezeralmeida commented #107
  • Sep 22 2020 07:42
    Josrph opened #123
  • Aug 11 2020 15:48
    CarterAAelect closed #122
  • Aug 08 2020 19:21
    timunie commented #122
  • Aug 08 2020 14:16
    CarterAAelect commented #122
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 :)
Darnell Williams
@Seeker1437
Hey is it possible to draw a childwindow over a single control?
Jan Karger ツ ☀
@punker76
@ImaBrokeDude what do you mean whith a "single control"?
Darnell Williams
@Seeker1437
For example I wanted to show a childwindow over a datagrid.
I tried using it in an adorner, but when I change tabs and change back the adorner does not work again.
Also before we spoke of using the ChildWindowManager to have the childwindow have an overlay over the full window? It still to this day does not keep me from using the close/min/max buttons, however if the window is defined separately it is fine.
Darnell Williams
@Seeker1437
Mde a gif showing what I mean, just waiting for it to upload
Jan Karger ツ ☀
@punker76
ok
Darnell Williams
@Seeker1437
Yeah it's weird to me why it does that.
I prefer the behavior I get when I use separate XAML but I just don't want to have lots of files for something that will go in one place within the application