Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 16 22:33

    punker76 on develop

    (#4157) Fix BindingExpression e… Run XamlStyler Use Cake.Tool and 3 more (compare)

  • Oct 16 22:33
    punker76 closed #4195
  • Oct 16 22:33
    punker76 closed #4157
  • Oct 16 22:24
    punker76 synchronize #4195
  • Oct 16 22:24

    punker76 on 4157

    Remove Explicit static construc… (compare)

  • Oct 16 22:00
    punker76 synchronize #4195
  • Oct 16 22:00

    punker76 on 4157

    Add GitHub action (compare)

  • Oct 16 21:03

    punker76 on XamlCombine

    (compare)

  • Oct 16 21:03
    punker76 synchronize #4195
  • Oct 16 21:03

    punker76 on 4157

    Use Cake.Tool (compare)

  • Oct 16 21:03

    punker76 on 4157

    (compare)

  • Oct 16 20:59
    punker76 labeled #4195
  • Oct 16 20:59
    punker76 opened #4195
  • Oct 16 20:55

    punker76 on 4157

    (#4157) Fix BindingExpression e… Run XamlStyler Use Cake.Tool (compare)

  • Oct 16 20:51
    punker76 closed #4191
  • Oct 16 20:40
    AppVeyorBot commented #4191
  • Oct 16 20:35
    punker76 synchronize #4191
  • Oct 16 20:35

    punker76 on 4157

    Try GitHub action (compare)

  • Oct 16 20:07
    AppVeyorBot commented #4191
  • Oct 16 20:02
    punker76 synchronize #4191
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
AKruimink
@AKruimink
and you as well :)