Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 26 15:38

    punker76 on develop

    Adding showcase application to … Adding links to compiled versio… Merge pull request #4203 from b… (compare)

  • Oct 26 15:38
    punker76 closed #4203
  • Oct 26 15:38
    punker76 labeled #4203
  • Oct 26 15:23
    batzen labeled #4203
  • Oct 26 15:23
    batzen opened #4203
  • Oct 26 14:38
    punker76 closed #4200
  • Oct 26 14:38
    punker76 locked #4200
  • Oct 26 14:38
    punker76 edited #4200
  • Oct 26 14:37
    punker76 edited #4200
  • Oct 26 09:33
    punker76 commented #4200
  • Oct 25 11:24
    hanmarco labeled #4200
  • Oct 25 11:24
    hanmarco opened #4200
  • Oct 24 20:38
    Build #1683 passed
  • Oct 24 20:34
    punker76 edited #4199
  • Oct 24 20:34
    punker76 edited #4199
  • Oct 24 20:34
    punker76 edited #4199
  • Oct 24 20:34
    punker76 edited #4199
  • Oct 24 20:34
    punker76 edited #4199
  • Oct 24 20:33
    punker76 edited #4199
  • Oct 24 20:32
    punker76 labeled #4199
Tim
@timunie
In the code you will find the demos and original styles
cod3rshotout
@cod3rshotout
@Tim which file?
Good night
cod3rshotout
@cod3rshotout
@Tim in the latest version of MahApp I doesn't have this Visual Studio style
Tim
@timunie
@cod3rshotout you need to add it explicitly in merged dictionary like shown in the sample I send you (line 18)
cod3rshotout
@cod3rshotout

@timunie ok, thanks. I switched to dragablz component but I have a problem changing the palette. I have created a pastebin which contains all the code that I wrote:

https://pastebin.com/AEK3ADUU

the issue is that when I change the theme, this is applied correctly to all components except to dragablz, how is that possible?

Tim
@timunie
Dragablz has it's own
Styles so MahApps styles are not used there
I cannot support you with this. You will have to write your own if you need a special Style. Sorry.
cod3rshotout
@cod3rshotout
@timunie thanks, what is the method to set dark or light mode? I see this: ControlzEx.Theming.ThemeManager.Current.ChangeThemeBaseColor
but for other windows isn't applied
cod3rshotout
@cod3rshotout
what is the correct way to set light and dark?
this method doesn't exists anymore: SetLightDark
Gary Ewan Park
@gep13
Twitter Tweets
@mrjakepavek_gitlab
image.png
Does anyone know why i'm getting this?
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?