Where communities thrive


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

    punker76 on develop

    Fix wrong background for ColorP… MahApps.Sizes.ColorListBox.Item… Use Uri style for Eyedropper cu… and 1 more (compare)

  • 15:08

    punker76 on ColorPicker

    (compare)

  • 15:08
    punker76 closed #3994
  • 11:55
    punker76 labeled #3994
  • 11:55
    punker76 opened #3994
  • 11:55
    punker76 milestoned #3994
  • 11:50

    punker76 on ColorPicker

    Fix wrong background for ColorP… MahApps.Sizes.ColorListBox.Item… Use Uri style for Eyedropper cu… (compare)

  • Dec 04 23:05

    punker76 on develop

    (compare)

  • Dec 04 23:03

    punker76 on XamlCombine

    Use XamlCombine for generic sty… (compare)

  • Dec 04 23:03

    punker76 on develop

    Merge branch 'develop' into main (compare)

  • Dec 04 23:02

    punker76 on 2.4.2

    (compare)

  • Dec 04 22:38

    punker76 on main

    (GH-3989) Adding x:Shared="Fals… Merge pull request #3990 from l… (GH-3214) Fix InvalidOperationE… and 4 more (compare)

  • Dec 04 22:34

    punker76 on develop

    (GH-3991) Fix adding colors to … Merge pull request #3992 from t… (compare)

  • Dec 04 22:34
    punker76 closed #3992
  • Dec 04 22:34
    punker76 closed #3991
  • Dec 04 22:30
    punker76 milestoned #3992
  • Dec 04 22:30
    punker76 labeled #3992
  • Dec 04 22:30
    punker76 milestoned #3991
  • Dec 04 22:28
    punker76 synchronize #3992
  • Dec 04 21:38
    punker76 closed #3556
sgamescz
@sgamescz
@timunie fixed all, thanks :)
Tim
@timunie
That was fast. Congrats
sgamescz
@sgamescz
yes, i am surprised to :-D
i forgot update mahapps little bit, and whoala... sooo many changes.
Twitter Tweets
@mrjakepavek_gitlab
Maybe a nice feature for the demo app would be to include a source button next to each of the controls.
Tim
@timunie
@mrjakepavek_gitlab I am already thinking of that. But much work, so I don't know when it will be alive
Twitter Tweets
@mrjakepavek_gitlab
Hello I had a question about th childwindow
image.png
how do I get rid of this black background
Tim
@timunie
Set the OverlayBrush or set IsModal=False
Twitter Tweets
@mrjakepavek_gitlab
How do you pass a parameter to a childwindow?
Tim
@timunie
This is a common usecase for the Tag property if you don't want to use the DataContext
Not sure if I oversee any other property here.
Twitter Tweets
@mrjakepavek_gitlab
Does the child windows have a way to go back to the viewmodel? I am trying to add this information to the grid behind it into a ObservableCollection that I have defined on the viewmodel
image.png
Tim
@timunie
@mrjakepavek_gitlab this works like normal MVVM pattern.
Tim
@timunie
@mrjakepavek_gitlab like in private chat said you can pass your item as DataContext and use it after ChWindow closed.
var myItem = new Item();
var dialog = new myChildWinDialog() { DataContext = myItem };

await this.ShowChildWindowAsync(dialog);

myCollection.Add(myItem);
Twitter Tweets
@mrjakepavek_gitlab
thank you Tim you the best!
Twitter Tweets
@mrjakepavek_gitlab
yo dark mode looks so good!
image.png
sgamescz
@sgamescz
After upgrade to last release 2.4.0 (instead old 2.0.1 alpha) i cant use "onclick" event. i think, i must use now mouse.mousedown ?
or exist something like onlick ? (on tile control)
Twitter Tweets
@mrjakepavek_gitlab
for which control?
because a button it's just Click
sgamescz
@sgamescz
Tile
and toggleswitch
sgamescz
@sgamescz
  <mah:ToggleSwitch
                        x:Name="ispaid"
                        Width="180"
                        Height="35"
                        Margin="10,0,0,0"
                        HorizontalAlignment="Left"
                        HorizontalContentAlignment="Left"
                        Click="ispaid_Click"
                        ContentDirection="RightToLeft"
                        FontSize="12"
                        IsChecked="{Binding BIND_PAID}"
                        IsEnabled="False"
                        IsOn="{Binding BIND_PAID}"
                        Mouse.MouseUp="ispaid_Click"
                        OffContent="Neregistrován"
                        OnContent="Registrován" />
Problem is that, Click="ispaid_Click" is not supported now
Jan Karger ツ ☀
@punker76
@sgamescz For the ToggleSwitch you can use now the Toggled event
@sgamescz The Tile is still derived from Button, so it should have a click event.
sgamescz
@sgamescz
@punker76 ahh, toggled works ! thanks for help, and for your work on mahapps!
Jan Karger ツ ☀
@punker76
@sgamescz Thx! You're welcome.
Tim
@timunie
@/all The documentation for the brand new ColorPicker is now online 😊 https://mahapps.com/docs/controls/ColorPicker
Happy coding, Tim
Daniel Mittelstadt
@DMtsdt
@timunie Wow! Stellar work
Thanks to all the contributors
paulovila
@paulovila

Hi @timunie when I try to set the style:

<Style TargetType="mah:NumericUpDown">
  <Setter Property="mah:TextBoxHelper.WatermarkAlignment" Value="Left"/>
  <Setter Property="mah:TextBoxHelper.UseFloatingWatermark" Value="True"/>
  ...

It seems to ignore the alignment, just noticed in 2.3.4, but looks it hasn't been working for a while.

Jan Karger ツ ☀
@punker76
@paulovila Don't forget to inherit from th eoriginal style <Style TargetType="mah:NumericUpDown" BasedOn="{StaticResource mah:NumericUpDown}">
paulovila
@paulovila
@punker76 mah:NumericUpDown doesn't exist, the only similar are MahApps.Styles.NumericUpDown.DataGrid or MahApps.Styles.NumericUpDown.DataGrid.Editing in 2.3.4 (Referncing /Styles/Controls.xaml)
Jan Karger ツ ☀
@punker76
@paulovila my fault, it should be {StaticResource {x:Type mah:NumericUpDown}}
paulovila
@paulovila
@punker76 Still it doesn't place the PART_FloatingMessageContainer aligned to the left
Jan Karger ツ ☀
@punker76
@paulovila Ok, I’ll later look what’s wrong.
paulovila
@paulovila
Thanks @punker76
paulovila
@paulovila

@punker76 the MahApps.Styles.ToggleButton style is defining a MinHeight:

<Setter Property="MinHeight" Value="25" />

I don't know the reason why this is necessary, but it collides with controls like the DevExpress GridControl, where the column header contains a filter ToggleButton, visible hover the mouse. The whole row height changes due to this MinHeight. See the image:

image.png
Would it be possible to remove it?
Tim
@timunie
@paulovila I think you can just override this.
This should be just three lines of xaml. If you need an example code I can provide it later.
paulovila
@paulovila

I can override it with :

<Style BasedOn="{StaticResource MahApps.Styles.ToggleButton}" TargetType="ToggleButton" >
  <Setter Property="MinHeight" Value="2" />
</Style>

In general, a default style should not have dimension restrictions, instead it should be in a inherited style, but I know that that concept would have more implications in other controls

Tim
@timunie
Mh this is a matter of philosophy I think. I personally like that the design is consistent out of the box.
paulovila
@paulovila
I understand the concept, but MahApp is not the only out of the box style, It should be friendly to other out of the box components, like DevExpress, Telerik. ,etc.
It's just an observation, from my experience on developing third party components