Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 10 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
  • Aug 08 2020 09:15
    timunie commented #122
  • Aug 07 2020 20:41
    CarterAAelect opened #122
  • Jul 07 2020 15:05
    realivanjx closed #121
  • Jul 07 2020 15:05
    realivanjx commented #121
Andrew Cartwright
@andrewcartwright1
Hi! Is it possible to get the result from the child window yet :)?
Jan Karger ツ ☀
@punker76
sorry not for now, it's in the pipeline...
Andrew Cartwright
@andrewcartwright1
awh boo, no worries i can work around this :D
in a hacky temp fashion ehehe
Andrew Cartwright
@andrewcartwright1

Morning! I'm having some problems with: ChildWindowManager.OverlayFillBehavior.FullWindow

So, I'm creating this child window inside of a user control: and im calling it like this: await Globals.Controls.ZAppWindow.ShowChildWindowAsync(new BedeFeedsChildView { IsModal = false }, ChildWindowManager.OverlayFillBehavior.FullWindow);

but when the window is open the stuff in the background is still usable, Am I doing anything wrong? :)

ZAppShot - 2015-11-26_08-24-26-AM.png
Andrew Cartwright
@andrewcartwright1
fixed it! never mind haha :)
Jon Alza
@jonny123d
Hello @punker76 , when ChildWindows is loaded, is it normal that ChildWindow.Loaded event is raised each time MessageDialog is opened and closed?
Jan Karger ツ ☀
@punker76
@jonny123d it's also fireing on closed?
Jon Alza
@jonny123d
@punker76 yes, but when the MessageDialog is closed (no when the ChildWindow is closed)
Jan Karger ツ ☀
@punker76
@jonny123d you mean message dialog from mahapps?
why do you need th eloaded event?
Jon Alza
@jonny123d
@punker76 This is the situation: I show a ChildWindow, and while this ChildWindow is opened I show some MessageDialog (with MetroWindow's ShowMessageAsync() method). When one MessageDialog is opend or closed, ChildWindow's Loaded event is fired.
Jon Alza
@jonny123d
In my own project I have to do some communication processes, one of them starts when especific ChildWindow is opened. During the communication process is posible to show a MessageDialog (if some data frame are arreived). So this communication process starts each time a MessageDialog is opened or closed. This is not the spected behavior by me, I think Loaded event would fired only on time, isn't it?
@punker76
Jan Karger ツ ☀
@punker76
@jonny123d loaded event can fire more than once, cause if you open a message dialog the child window is moving from one grid to another (active to inactive), so the loaded event is maybe fired by this action
@jonny123d maybe it's better you use the IsOpenChangedEvent
Jon Alza
@jonny123d
@punker76 Ok, thank you, i will check this event
Jan Karger ツ ☀
@punker76
@jonny123d let me know if it works or not
Jon Alza
@jonny123d
@punker76 It seems that it works, thak you again!
Jan Karger ツ ☀
@punker76
@jonny123d :+1:
Duzij
@Duzij
Hi, I have an issue withmy child window. I cant create the static Task ShowChildWindowAsync in my MainWindow.xaml.cs , and when i define the task as non-static Im getting error "MainWindow.ShowChildWindowAsync(MetroWindow, ChildWindow, ChildWindowManager.OverlayFillBehavior) must declare a body because it is not marked abstract, extern, or partial...". How can I fix that?
Jon Alza
@jonny123d
I have a question about the close button, is it posible to enable or disable somehow? In one child window I do a "background task" and I don't want that the user can close the window while task is working.
Jon Alza
@jonny123d
@punker76
Jan Karger ツ ☀
@punker76
@jonny123d this should be automatically handled by the CloseButtonCommand
Jon Alza
@jonny123d
@punker76 Thank you, I have been searching on the documentation and I found CloseButtonStyle. I like more this alternative, setting IsEnabled to false.
Ashwin Sidhalinganahalli
@ashwinrs
I am trying to call ShowChildWindowAsync from Metrowindows child this way - ` var metroWindow = (MetroWindow)Application.Current.MainWindow;
        await metroWindow.ShowChildWindowAsync(new AboutWindow(),RootGrid);`. Its saying Metrowindow does not contain ShowChildWindowAsync. Am I missing something here? I have installed mahapps child window library from nuget.
The code is- ` var metroWindow = (MetroWindow)Application.Current.MainWindow;
        await metroWindow.ShowChildWindowAsync(new AboutWindow(),RootGrid);`
The error I am getting is - Metrowindow does not contain ShowChildWindowAsync. Am I missing something here? I have installed mahapps child window library from nuget.
Ashwin Sidhalinganahalli
@ashwinrs
Figured it out. I was missing "using MahApps.Metro.SimpleChildWindow;" from my page
juanramirez99
@juanramirez99
Hi, how i can call a SimpleChildWIndow and his own vm from another vm command? there is a sample, thanks.
Darnell Williams
@Seeker1437
Same in here
MarcOnFire
@MarcOnFire
Hello, I have a problem with SimpleChildWindow: it appears in designer, but when i run the application , the childwindow is placed inside a TabControl, when I remove the TabControl the ChilWindow appears while app is running to. Any idea? I need TabControl of course.. Thank you in advance!
MarcOnFire
@MarcOnFire
Solved, sorry.
Darnell Williams
@Seeker1437
@punker76 I am sorry to bother, Is there a way I can prevent IsOpen from closing the childwindow, as an example if there is a validation error present? I only see things for when it already changed.
Jan Karger ツ ☀
@punker76
@Seeker1437 the IsOpen property is the indicator for open and closed. I didn't know what do you mean with this.
Darnell Williams
@Seeker1437
@punker76 as an example, I allow users to edit information about a file in the ChildWindow, the Location Field has Input Validation. I would like to prevent the user from closing the ChildWindow and focus on the field with the validation error.
Keeping in mind user are allowed to close the window via Esc, clicking Modal Area, or clicking the close button
Jan Karger ツ ☀
@punker76
@Seeker1437 this can all be handled by closing event or the closing commands
Darnell Williams
@Seeker1437
Okay, I will dig deeper into this :D thanks
Darnell Williams
@Seeker1437
AFter updating to 1.4.0 of this library now the model is not see through
It used to be
Jan Karger ツ ☀
@punker76
@Seeker1437 Which model?
Jan Karger ツ ☀
@punker76
@Seeker1437 do you mean the overlay?
Darnell Williams
@Seeker1437
@punker76 thanks! I thought I looked at all the docs I missed that
fagenorn
@fagenorn
@punker76 Hey, is it normal that ShowProgressAsync take about ~5 seconds to show the child window?
Jan Karger ツ ☀
@punker76
@fagenorn normaly not. Can you show me your code or is this on GitHub?
fagenorn
@fagenorn
        private static readonly DependencyProperty WindowProperty = DependencyProperty.Register(
            "Window",
            typeof(ChildWindow),
            typeof(SelectedItemsList),
            new UIPropertyMetadata(null));

        public ChildWindow Window
        {
            private get => (ChildWindow)this.GetValue(WindowProperty);
            set => this.SetValue(WindowProperty, value);
        }

        private async void Add(object sender, RoutedEventArgs e)
        {
            var metroWindow = Application.Current.MainWindow as MetroWindow;
            await metroWindow.ShowChildWindowAsync(this.Window);
        }
The DependencyProperty is then binded to plain simpleChildWindow
The funny thing is, it only takes that long to load the first time it opens the child window, after that it's almost instantly even if a different child window is set for the DependencyProperty.