Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 27 15:34
    fredericoregateiro commented #4150
  • Jan 27 14:22
    picrap commented #3600
  • Jan 26 23:21
    Build #1785 passed
  • Jan 26 23:14
    Build #1784 passed
  • Jan 26 23:09
    punker76 synchronize #4259
  • Jan 26 23:08
    punker76 labeled #4259
  • Jan 26 23:08
    punker76 milestoned #4245
  • Jan 26 23:08
    punker76 edited #4259
  • Jan 26 23:06

    punker76 on develop

    refactor(demo): use only one Bi… refactor(helper): prevent dupli… refactor(demo): improve DataGri… (compare)

  • Jan 26 17:37
    Build #1783 passed
  • Jan 26 17:30
    punker76 commented #4258
  • Jan 26 17:30

    punker76 on develop

    Handle DataGridColumn visibilit… Merge pull request #4258 from f… (compare)

  • Jan 26 17:30
    punker76 closed #4258
  • Jan 26 15:59
    punker76 milestoned #4258
  • Jan 26 15:59
    punker76 labeled #4258
  • Jan 26 13:44
    Build #1782 passed
  • Jan 26 13:36
    fredericoregateiro synchronize #4259
  • Jan 26 13:18
    Build #1781 passed
  • Jan 26 13:11
    fredericoregateiro opened #4259
  • Jan 26 13:00
    Build #1780 passed
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
Daniel Mittelstadt
@DMtsdt
Looked at it a bit further, I think it might be because I'm using an attached behavior to invoke the method, which attaches to the TextBox part as the AssociatedObject
Not sure how to describe the issue without further testing
Tim
@timunie
@DMtsdt best would be if you can provide a sample via GitHub.
Daniel Mittelstadt
@DMtsdt
I should try first without the attached behaviour, otherwise it'd be too ambiguous
TripleNico
@TripleNico
Hi all! I just noticed today that there is a "MaterialDesignThemes.MahApps" Nuget package. What does this bring to the UI?
Jan Karger ツ ☀
@punker76
@TripleNico It has styles for MaterialDesignInXaml for some controls of MahApps. It’s from MDIX itself.
Fela Ameghino
@FrayxRulez
:wave: I was wondering if there's any way to show the system title bar while using MetroWindow...
(Might sound dumb, but I need to change this programmatically)
Tim
@timunie
Hi
@FrayxRulez I don't see an eays root here in WPF
I think you can either use the MetroWindow or normal Window
Fela Ameghino
@FrayxRulez
Oh noooo
That's what I was afraid of. I mean, I guess I can sort it out (in the end I have to decide if I need system chrome or not before opening the window)
Tim
@timunie
What's the reason?
Moreover if you are just at the beginning: Consider using Avalonia instead of WPF
Fela Ameghino
@FrayxRulez
Oh, unfortunately I'm not at the beginning :) We want to run the app on Mac using Wine and we want to have native native titlebar there
Tim
@timunie
Again sounds like Avaloia could help you. At least for the future.
Mac is native supported I think
Fela Ameghino
@FrayxRulez
I know, but we have a lot of closed source dependencies :grin:
Trevor Fradsham
@TrevorFradsham_twitter
I have seen Avalonia mentioned a couple times, Is there a roadmap, or plan, or discussion regarding MahApps.Metro running on any of these platforms: Avalonia, Uno, .Net Maui? I have been using MahApps.metro for a few years and really enjoy it, but would like to see if I can plan on using it well into the future for new applications.
Tim
@timunie
@TrevorFradsham_twitter no MahApps is WPF only.
I just mentioned Avalonia here because of the need of certain functions WPF cannot offer.
Trevor Fradsham
@TrevorFradsham_twitter
thanks for the info
Tim
@timunie
This looks close to MahApps, Jan found it.
Haven't tested it yet as I like the Fluent Style in Avalonia
yaunchen
@yaunchen
RadarCha.gif
Excuse me please allow me to share a WPF project https://github.com/yanjinhuagood/WPFDevelopers
David Hejj
@dil-DHejj
Hi I was wondering why there is no Window style listed in the MahApps styles: https://mahapps.com/docs/styles/
Can anyone help me out, what a style for the window should be based on if it is inherited from MetroWindow?
Jan Karger ツ ☀
@punker76
@dil-DHejj There is no explicit key for the style. If you need to inherit from the default style you must do this
<Style x:Key="CustomStyle" BasedOn="{StaticResource {x:Type mah:MetroWindow}}" TargetType="{x:Type YourCustomMetroWindow}"></Style>
1 reply
TripleNico
@TripleNico
Hello Hello! Back again for a short question :-) I want to use the ClearTextButton on a ComboBox and only show it when an item is selected. For TextBoxes i use this binding which works like a charm mah:TextBoxHelper.ClearTextButton="{Binding Path=(mah:TextBoxHelper.HasText), RelativeSource={RelativeSource Mode=Self}}" but not for a ComboBox. Is there an easy way to modify this OR do i have to apply a custom style?
Tim
@timunie
@TripleNico you could create a converter and check SelectedIndex or SelectedItem
Jan Karger ツ ☀
@punker76

@TripleNico You can get this by using this converter (works only with non editable ComboBox)

[ValueConversion(typeof(object), typeof(bool))]
public sealed class IsNotNullConverter : IValueConverter
{
    /// <summary>
    /// Gets a static default instance of <see cref="IsNotNullConverter "/>.
    /// </summary>
    public static readonly IsNotNullConverter Instance = new();

    public object? Convert(object? value, Type targetType, object? parameter, System.Globalization.CultureInfo culture)
    {
        return value is not null;
    }

    public object? ConvertBack(object? value, Type targetType, object? parameter, System.Globalization.CultureInfo culture)
    {
        return Binding.DoNothing;
    }
}

usage:

<ComboBox Width="200"
          Margin="{StaticResource ControlMargin}"
          mah:TextBoxHelper.ClearTextButton="{Binding Path=SelectedItem, RelativeSource={RelativeSource Mode=Self}, Converter={x:Static local:IsNotNullConverter.Instance}}"
          mah:TextBoxHelper.Watermark="Please select an item..."
          SelectedIndex="0">
    <ComboBoxItem Content="Item 1" />
    <ComboBoxItem Content="Item 2" />
    <ComboBoxItem Content="Very long Item 3 for MahApps.Metro" />
    <ComboBoxItem Content="Item 4" />
</ComboBox>
TripleNico
@TripleNico
@timunie and @punker76 thanks for your swift replies, solved it with a convert and works like a charm. Would be great however if HasText would also work on a ComboBox. Maybe something for the ComboBoxHelper class?
Jan Karger ツ ☀
@punker76
@TripleNico Yes this is not implemented, I’ll re-implement the IsMonitoring thing. Thx
DanSagher
@DanSagher
Is there a way to set ProgressDialog with an extra Button? we want one button for canceling and the other for minimizing the dialog.
Tim
@timunie
@DanSagher I think you will need to implement it on your own, as far as I remember. As MahApps is open source you may get your self the code and modify it to your needs