Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 13:39
    FroggieFrog commented #4131
  • 13:13
    FroggieFrog commented #4131
  • 11:30
    FroggieFrog labeled #4131
  • 11:30
    FroggieFrog opened #4131
  • 06:47
    punker76 synchronize #4003
  • 06:47

    punker76 on NumericUpDown-Styling-Preparations

    Make NumericUpDown more stylabl… Simplify Opacity setting for ch… Add experimental Fluent style M… (compare)

  • Jun 18 20:51
    punker76 commented #4130
  • Jun 18 20:51

    punker76 on develop

    fix wrong xml comment Merge pull request #4130 from F… (compare)

  • Jun 18 20:51
    punker76 closed #4130
  • Jun 18 19:12
    FroggieFrog opened #4130
  • Jun 18 19:09
    FroggieFrog commented #4129
  • Jun 18 17:53
    timunie commented #4129
  • Jun 18 15:05
    punker76 synchronize #4003
  • Jun 18 15:05

    punker76 on NumericUpDown-Styling-Preparations

    Make NumericUpDown more stylabl… Simplify Opacity setting for ch… Add experimental Fluent style M… (compare)

  • Jun 18 14:28
    punker76 commented #4129
  • Jun 18 14:28

    punker76 on develop

    add property CloseOnSelectedCol… Merge pull request #4129 from F… (compare)

  • Jun 18 14:28
    punker76 closed #4129
  • Jun 18 14:28
    punker76 closed #4128
  • Jun 18 14:28
    punker76 milestoned #4128
  • Jun 18 14:28
    punker76 demilestoned #4129
Tim
@timunie
@TripleNico If I were you I would consider a different UI here.
I think this is a good task for a toast notification
TripleNico
@TripleNico
@timunie a Toast notification could be a good solution, didn't think about that yet. However i dialog centered in the middle is a nicer solution in this way to get the attention of the user.
Tim
@timunie
Or open a new TopMost Window
You can center this
TripleNico
@TripleNico
I think that would be the way i go :-)
Tim
@timunie
:+1:
TripleNico
@TripleNico
Something else, is there a helper class to easily change a scrolbar with of a datagrid?
Tim
@timunie
Not that I know
TripleNico
@TripleNico
Alright, than i have to do it the old fashion way :-)
SheriSteeves
@SheriSteeves
Is there a way to have a Dropdownbutton have a menu with submenus? I've used them with single level menus but now I need one with two levels. I need a menu that lists two items, and clicking/hovering each item will open a submenu with preferably check menu items. Is this possible?
Tim
@timunie
@SheriSteeves seems to work on my side
image.png
<mah:DropDownButton Margin="5"
                    Content="Test"
                    DisplayMemberPath="Name">
    <mah:DropDownButton.Icon>
        <iconPacks:PackIconMaterial Margin="6" Kind="TestTube" />
    </mah:DropDownButton.Icon>
    <mah:DropDownButton.Items>
        <MenuItem Header="Test">
            <MenuItem Header="SubMenu" />
        </MenuItem>
    </mah:DropDownButton.Items>
</mah:DropDownButton>
SheriSteeves
@SheriSteeves
@timunie Thanks, I was stupid and didn't mention that I was populating my dropdown button using the ItemsSource property, and not in XAML. Is there a way to do this with a collection?
Tim
@timunie
hmm should be like any other Menues
But I don't have the syntax in mind
It's quite easy if the first level can be "hard coded" and the second level is an itemssource
SheriSteeves
@SheriSteeves
@timunie Thanks for the tip; I'll keep working at it.
Torchok19081986
@Torchok19081986
hallo, i have resolution problem in my app. Somehow on my developer pc it looks ok, but from another computer, if resolution of monitor not like in my app, wpf window resize all controls and windows itself. Can someone pls send me link or maybe had same issue like me.
Tim
@timunie
@Torchok19081986 How should we even guess without any code?
Sounds like a layout issue on your side, so try to use flexible layout like stackpanel or grid over positioning the controls directly. Designing WPF with mouse also often does not work well
Torchok19081986
@Torchok19081986
ok.
<Window x:Class="Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:behs="clr-namespace:VTEStarfaceTelefonie.Behaviours" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sys="clr-namespace:System;assembly=mscorlib" Title="{Binding Title}" Width="1000" Height="1000" MinWidth="1000" MinHeight="1000" MaxWidth="1000" MaxHeight="1000" Background="{Binding Background}" Icon="/my.ico" Loaded="Window_Loaded" MouseDown="Window_MouseDown" ResizeMode="NoResize" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen" WindowStyle="None" mc:Ignorable="d">
is definition my mainwindow
Tim
@timunie
SizeToContent="WidthAndHeight" makes no sense here
Torchok19081986
@Torchok19081986
on remote desktop connection with over 1600x1200 looks normally, and with fullscreen mode, but if another computer starts app on RDP , window resizing app with allcontrols
Tim
@timunie
1000 sounds also huge
and then there is this
Torchok19081986
@Torchok19081986
systemparameters.primaryscreen works only on primaryscren, dont know how to set width and height depend on screen resolution
Tim
@timunie
image.png
having a flexible layout is better
Sebastian Matus
@sebamatusr
hello, is there a way to keep a childwindow always on top of another child window?
when I click on another childwindow that one comes to the top and the other one goes behind
Jan Karger ツ ☀
@punker76
@sebamatusr No, this is not implemented, but should be easy to do.
FroggieFrog
@FroggieFrog
Hi, I'm in the process of replacing the Xceed Extended WPF Toolkit with MahApps.
I'm struggling with the replacement of SplitButton.</br>
Currently I have a xctk:SplitButton and the DropDownContent is just another Button.</br>
How can I achieve this with MahApps?
<xctk:SplitButton Command="{Binding ACommand}">    
    <xctk:SplitButton.Content>
        <Grid Width="24"
              Height="24">
            <Path Data="M10.237976,16.558633L15.362"
                  Stretch="Uniform"
                  Width="16"
                  Height="16"
                  Margin="0,0,0,0"
                  RenderTransformOrigin="0.5,0.5">
                <Path.RenderTransform>
                    <TransformGroup>
                        <TransformGroup.Children>
                            <RotateTransform Angle="0" />
                            <ScaleTransform ScaleX="1"
                                            ScaleY="1" />
                        </TransformGroup.Children>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
        </Grid>
    </xctk:SplitButton.Content>
    <xctk:SplitButton.DropDownContent>
        <Button Command="{Binding AnotherCommand}" />
    </xctk:SplitButton.DropDownContent>
</xctk:SplitButton>
Tim
@timunie
@FroggieFrog get yourself the demo app available on GitHub. It shows a lot and you can play around with it.
FroggieFrog
@FroggieFrog
That was the first thing I tried. The only solution I came up with was to create a List of available commands in my ViewModel and use a DataTemplate for the ItemSource.
But I hope there is a simpler for adding just one button.
Tim
@timunie
Just use Items instead of ItemsSource.
Sebastian Matus
@sebamatusr

@sebamatusr No, this is not implemented, but should be easy to do.

How would I go about doing this? I've tried Focus, BringIntoView, also tried Z-Index but it doesn't work on elements that are not Panels

Jan Karger ツ ☀
@punker76
@sebamatusr The problem is here that the SimpleChildWindow handles the mouse down event and do the logic there. So to solve this it’s necessary to implement a new property to force the top most.
FroggieFrog
@FroggieFrog

Hi! I managed to use the SplitButton with Items.

I also tried to use my own ColorHelper for a ColorPicker.
What I can not figure out is this line <mah:ColorPicker ColorHelper="[[Bind here to your ColorHelper]]" />.
How can I use my own ColorHelper (called e.g. NoTranslationColorHelper) which is excatly like in the docs (also has DefaultInstance)?

FroggieFrog
@FroggieFrog
I think this is a correct usage:
ColorHelper="{Binding Source={x:Static mynamespace:NoTranslationColorHelper.DefaultInstance}}"
Am I right?
Tim
@timunie
What do you mean by no translation?
No color name at all or the english names?
FroggieFrog
@FroggieFrog
I like to see the default (english) name provided by the framework.
FroggieFrog
@FroggieFrog
I opened an issue and added an example I came up with:
MahApps/MahApps.Metro#4131