Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 17 22:20

    punker76 on HeaderedControlHelper_fixes

    fix(styles): add missing templa… fix(styles): add missing templa… test: add tests for attached pr… (compare)

  • Jan 17 16:18
    PJonHar labeled #4248
  • Jan 17 16:18
    PJonHar opened #4248
  • Jan 17 04:21
    Build #1755 passed
  • Jan 17 04:15
    camvinh opened #4247
  • Jan 15 10:48
    punker76 closed #4246
  • Jan 15 10:48
    punker76 commented #4246
  • Jan 15 10:47
    tqk2811 edited #4246
  • Jan 15 10:44
    tqk2811 labeled #4246
  • Jan 15 10:44
    tqk2811 opened #4246
  • Jan 14 16:02
    KG-droid commented #4101
  • Jan 13 21:44
    Build #1754 passed
  • Jan 13 21:42

    punker76 on HeaderedControlHelper_fixes

    fix(styles): add missing templa… (compare)

  • Jan 13 21:38

    punker76 on develop

    style: code format (compare)

  • Jan 13 13:37
    oriches commented #4241
  • Jan 13 10:29
    Time2Code0 labeled #4245
  • Jan 13 10:29
    Time2Code0 opened #4245
  • Jan 12 22:49
    fredericoregateiro commented #4244
  • Jan 12 22:40
    Build #1753 passed
  • Jan 12 22:33
    fredericoregateiro opened #4244
Jan Karger ツ ☀
@punker76
@mrjakepavek_gitlab You don't need to use mah:StaticResource, use DynamicResource instead.
Twitter Tweets
@mrjakepavek_gitlab
that would be it, thank you!
Tim
@timunie
Jan Karger ツ ☀
@punker76

@/all #IconPacks v4.9.0 has just been released 🎉👏❤🤘

Lots of new and updated icons including .NET 5 support.

https://github.com/MahApps/MahApps.Metro.IconPacks/releases

@/all The #IconPacks browser for MahApps.Metro.IconPacks has now it's own repo 🎉👏🤘

https://github.com/MahApps/IconPacks.Browser

iconpacks_browser_new.gif
Torchok19081986
@Torchok19081986
👍😃🎉
Rohan D'Sa
@goldcode
soo cool! Thanks. I don't have to use inkscape to convert to svg anymore. Any chance of converting to ico too?
Tim
@timunie
@goldcode ico files are a bit special here because there are different options for scaling. I use to save as bmp file for the resulutions I like and use gimp to save as ico.
ikeas68
@ikeas68
hello is solution exist for preserv virtualization in listview when grouping is set
for setting virtualization i use Style="{DynamicResource VirtualisedMetroListView}" but when i have a goup inside like :
var view = CollectionViewSource.GetDefaultView(CompEntrys);
PropertyGroupDescription groupDescription = new PropertyGroupDescription("Directory");
view.GroupDescriptions.Add(groupDescription);
i lost virtalization
Tim
@timunie
Hi @ikeas68 you need to set VirtualizationPanel.VirtualizeWhenGrouping=true
Maybe I have a typo in the above because I am on mobile today.
Happy coding
Tim
ikeas68
@ikeas68
i try this VirtualizationPanel.VirtualizeWhenGrouping=true but same result ...
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