Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 28 23:39

    punker76 on Refactoring_async_Dialogs

    refactor(dialogs): simplify Sho… refactor(dialogs): simplify Sho… refactor(dialogs): simplify Sho… (compare)

  • Nov 28 08:30
    timunie commented #4214
  • Nov 27 14:39

    punker76 on Refactoring_async_Dialogs

    refactor(dialogs): simplify Sho… (compare)

  • Nov 27 11:28
    Build #1712 passed
  • Nov 27 11:23

    punker76 on 4211

    (compare)

  • Nov 27 11:23
    punker76 closed #4211
  • Nov 27 11:23

    punker76 on develop

    fix(styles): #4211 improve flat… Merge pull request #4215 from M… (compare)

  • Nov 27 11:23
    punker76 closed #4215
  • Nov 27 11:22
    Build #1711 passed
  • Nov 27 11:16
    Build #1710 passed
  • Nov 27 11:15
    punker76 labeled #4215
  • Nov 27 11:15
    punker76 opened #4215
  • Nov 27 11:13
    punker76 milestoned #4211
  • Nov 27 11:13

    punker76 on 4211

    fix(styles): #4211 improve flat… (compare)

  • Nov 27 11:11

    punker76 on develop

    ci(cake): set build version for… (compare)

  • Nov 26 20:24
    punker76 pinned #4214
  • Nov 26 20:18
    punker76 labeled #4214
  • Nov 26 20:18
    punker76 opened #4214
  • Nov 26 16:50
    Build #1709 passed
  • Nov 26 16:44

    punker76 on 4212

    (compare)

Jan Karger ツ ☀
@punker76
@ikeas68 Which version of MahApps are you using?
ikeas68
@ikeas68
@punker76 version 1.6.5.1
Jan Karger ツ ☀
@punker76
@ikeas68 Oh yeah, very old, the problem should definitiv be fixed in v2.
Here is the one for v1.6.5
    <Style x:Key="MetroListView" TargetType="{x:Type ListView}">
        <Setter Property="AlternationCount" Value="2" />
        <Setter Property="Background" Value="{DynamicResource WhiteBrush}" />
        <Setter Property="BorderBrush" Value="{DynamicResource BlackBrush}" />
        <Setter Property="BorderThickness" Value="0" />
        <Setter Property="OverridesDefaultStyle" Value="True" />
        <Setter Property="ScrollViewer.CanContentScroll" Value="False" />
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListView">
                    <Border x:Name="Border"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            CornerRadius="{TemplateBinding mah:ControlsHelper.CornerRadius}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        <ScrollViewer Padding="{TemplateBinding Padding}"
                                      CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}"
                                      Focusable="False"
                                      HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                                      SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                      Style="{DynamicResource MetroGridViewScrollViewerStyle}"
                                      VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        </ScrollViewer>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsGrouping" Value="true" />
                                <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
                            </MultiTrigger.Conditions>
                            <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
                        </MultiTrigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource GrayBrush9}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="VerticalContentAlignment" Value="Center" />
    </Style>

    <Style x:Key="VirtualisedMetroListView"
           BasedOn="{StaticResource MetroListView}"
           TargetType="{x:Type ListView}">
        <Setter Property="ScrollViewer.CanContentScroll" Value="True" />
        <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="True" />
        <Setter Property="VirtualizingStackPanel.IsVirtualizing" Value="True" />
        <Setter Property="VirtualizingStackPanel.IsVirtualizingWhenGrouping" Value="True" />
        <Setter Property="VirtualizingStackPanel.VirtualizationMode" Value="Recycling" />
    </Style>
ikeas68
@ikeas68
ok thanks i try it
ikeas68
@ikeas68
@punker76 ok it's work fine tanhks
Torchok19081986
@Torchok19081986
morning, how can i set Metrowindow Style to WindowStyle="None" ? Somehow it doesnt work for me.
Jan Karger ツ ☀
@punker76
@Torchok19081986 You must use UseNoneWindowStyle property, because the WindowStyle is already None
Torchok19081986
@Torchok19081986
many thanks, Jan. Last question: how do i set Foregorund Color for ShowProgressAsync() Method?
metrodialogsettings doenst have any property for foreground color
bolt-b
@bolt-b
hello everyone,
may I ask here a simple question about Mahapps ChildWindow? Is this chat correct? Or do I need to seek another one?
bolt-b
@bolt-b
should I write to issues section? I don't know if it is issue.
Jan Karger ツ ☀
@punker76
@bolt-b You can ask first here.
bolt-b
@bolt-b
@punker76,
The way how I launch childwindows is below.
The question is how to stop time update when window is already appeared on the screen.
in other words, I have time of window appearance, but it constantly updates with system time.
How do I "freeze" time of appearance at window title?
 private async void Diag_btn_Click(object sender, RoutedEventArgs e)
        {
            DiagWindow diagwindow = new DiagWindow() { IsModal = false, AllowMove = true, IsOpen = false }; 
            if (!diagwindow.IsOpen)

               diagwindow.Title = $"diagnostics- {DateTime.Now.ToShortTimeString()}";
            await this.ShowChildWindowAsync(diagwindow, RootGrid);

            Settings.Default.Save(); 

        }
闫驚鏵(Jinhua Yan)
@yanjinhuagood
Excuse me to share an open source project of mine https://github.com/yanjinhuagood/WPFDevelopers
Torchok19081986
@Torchok19081986
hiho, can someone pls tell me, how do i set color of Text in MessageDialogAsync to hexvalue? I found only ColorScheme.
AKruimink
@AKruimink
random question, got a simple window, added nothing yet, and got this weird border like line going through the window buttons, did some searching/trying around, but couldnt find wat is causing it, does anyone here have an idea?
tried setting border thickness to 0, but doesnt seem to affect it
AKruimink
@AKruimink
image.png
this is a new Window, that has only been changed to MetroWindow (nothing else added), uses Controls.xaml, Fonts,xaml and Light.Amber.xaml as resources
anyone an idea wat it might be?
Jan Karger ツ ☀
@punker76
@AKruimink What version of MahApps and ControlzEx?
Tim
@timunie
Very strange... Can you start the exe without VS debugger?
Maybe it is some adorner for layout 🤷🏻‍♀️
AKruimink
@AKruimink
mahapps 2.4.7, should i install ControlzEx seperatly? thought it was included as a dependency @punker76
great call @timunie
image.png
running the exe itself seems not result in that weird border like line
am running vs2022, so they might have some hickups still, although annoying, as long as it doesnt show up on my finished product, i can't complain :thumbsup:
Tim
@timunie
VS 2022 is still in beta I think.
AKruimink
@AKruimink
it is yes,
knowing its not there when running the exe is good enough for now :thumbsup:
Tim
@timunie
:-)
:+1: happy hacktober
AKruimink
@AKruimink
and you as well :)
Adam Buchanan
@RejectKid

image.png

is there a way to move the water mark on the numericUpDown to be on the left? (ive tried the watermark alignment)

Tim
@timunie
Hi @RejectKid Looks wrong to me. Can you tell us which version you are using?
Adam Buchanan
@RejectKid
using 2.4.7

in the test application (mahapps.demo) also has the same thing

also for context the top 2 are text boxes

Tim
@timunie
I ll have to look into this another day
Seems like the control template is broken
Jan Karger ツ ☀
@punker76
@RejectKid You can fix this as workaround and set HorizontalContentAlignment to Stretch
Jan Karger ツ ☀
@punker76
@RejectKid I will hotfix this asap
Adam Buchanan
@RejectKid
@punker76 you are the greatest!
bolt-b
@bolt-b

Hello everyone,
Slider,

 Style="{DynamicResource MahApps.Styles.Slider.Flat}"

Is there a property that doesn't affect visible style of slider but at the same time it doesn't allow to move slider's grip? However it might be moved via binding.

thanks.

Tim
@timunie
Hi @bolt-b I think not out of the box
You can try to set IsHittestVisible="false" and Focusable="false" and see if it helps you
Daniel Mittelstadt
@DMtsdt
Hi all
When trying to perform MoveFocus(FocusNavigationDirection.Previous) on a NumericUpDown the method returns true yet focus doesn't move
Any chance it focuses an element within the control then moves focus back to the TextBox part?
Tim
@timunie
That may be the case. Can you open an issue for this?
Daniel Mittelstadt
@DMtsdt
Sure