Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 12:53
    Build #1863 passed
  • 12:45

    punker76 on develop

    refactor: remove IsWaitingForDa… Merge pull request #4323 from M… (compare)

  • 12:45

    punker76 on remove-iswaitingfordata

    (compare)

  • 12:45
    punker76 closed #4323
  • 12:25
    Build #1862 passed
  • 12:18
    punker76 milestoned #4323
  • 12:18
    punker76 labeled #4323
  • 12:18
    punker76 opened #4323
  • 12:17

    punker76 on remove-iswaitingfordata

    refactor: remove IsWaitingForDa… (compare)

  • Jul 01 20:06
    Build #1861 passed
  • Jul 01 19:56
    batzen synchronize #4300
  • Jul 01 15:51
    dnfadmin commented #4087
  • Jul 01 15:40
    Build #1860 passed
  • Jul 01 15:32

    punker76 on develop

    fix: #4301 use base ListViewIte… (compare)

  • Jul 01 11:25
    punker76 closed #4321
  • Jul 01 11:25
    punker76 locked #4321
  • Jul 01 11:25
    punker76 commented #4321
  • Jul 01 04:56
    li-zheng-hao labeled #4321
  • Jul 01 04:56
    li-zheng-hao opened #4321
  • Jun 30 21:24
    Build #1859 passed
Andrew
@andrewissac

Hey everyone!

We wrote a touchscreen keyboard usercontrol that is placed into a SimpleChildWindow. Then we make us of the ChildWindowManager to show and close the touchscreen keyboard on demand.

But now we have a scenario where we have metro dialogs (using the metro IDialogCoordinator) with input fields and would need the SimpleChildWindow to appear in front of the dialog. Is there any way to achieve this or should we rather use an ordinary Window instead of the SimpleChildWindow in this case?

Would be glad for any hint :)

Tim
@timunie
@andrewissac I think I would go for a ordinary window and just hide it from the taskbar and make it topmost.
TripleNico
@TripleNico
I'm banging my head with a bug i just discovered which is described here: MahApps/MahApps.Metro#2483
In short setting AllowsTransparency to True breaks the Maximize window and possibly other things. So my guesting is: How would one fade in the MainWindow after a splashscreen is done loading? The fade in is simply done by a StoryBoard:
        <Storyboard x:Key="sbFadeMainWindowIn">
            <DoubleAnimation
                AutoReverse="False"
                Storyboard.TargetName="wMain"
                Storyboard.TargetProperty="Opacity"
                From="0.0"
                To="1.0"
                Duration="0:0:0.5" />
        </Storyboard>
Andrew
@andrewissac
@andrewissac I think I would go for a ordinary window and just hide it from the taskbar and make it topmost.
Thank you for your opinion! @timunie
Torchok19081986
@Torchok19081986
Hallo, everyone. I have some trobles to add waterwamark to ComboBox Element. For TextBox exists mahapps.TextBoxHeler.Watermark = "some text", but same way to add it to comboBox doesnt work.
Tim
@timunie
it is also TextBoxHelper
if you have your own ComboBox.Template make sure you have the Watermark implemented
Torchok19081986
@Torchok19081986
ok, thx Tim. And Custom Style overides Style of MahApps, right?
Tim
@timunie
if you don't inherit yes
BasedOn="{StaticResource MahApps.Styles.ComboBox}"
Torchok19081986
@Torchok19081986
It works now, many thanks again, Tim.
👍👍👍
Tim
@timunie
:+1:
bolt-b
@bolt-b

hello everyone,
I "composed" a style for tooglebutton. It seems the style and the button itself live different lifes
Could someone look at code?

App.xaml

 <Style
                x:Key="CustomToggleButtonStyle"
                BasedOn="{StaticResource MahApps.Styles.ToggleButton.Flat}"
                TargetType="{x:Type ToggleButton}">
                <Setter Property="Background" Value="WhiteSmoke" />
                <Setter Property="BorderBrush" Value="Black" />
                <Setter Property="BorderThickness" Value="1" />
                <Setter Property="Padding" Value="0" />
                <Setter Property="Margin" Value="6" />
                <Setter Property="MaxWidth" Value="35" />
                <Setter Property="Focusable" Value="False" />
                <Setter Property="ContentTemplate" Value="{DynamicResource Template.Button.ViewBox}" />
                <Style.Triggers>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter Property="Background" Value="LightGray" />
                        <Setter Property="Foreground" Value="Black" />
                    </Trigger>
                    <Trigger Property="IsChecked" Value="True">
                        <Setter Property="Background" Value="LimeGreen" />
                        <Setter Property="Foreground" Value="Black" />
                    </Trigger>
                </Style.Triggers>
            </Style>

MainWindow.xaml

  <ToggleButton                       
                                Grid.Row="0"
                                Content="Toggle me"
                                IsChecked="{Binding BooleanValue, Mode=OneWay}"
                                Style="{StaticResource CustomToggleButtonStyle}">                         
  </ToggleButton>

The issue is: it seems there's no response upon binding. In other words it becomes green by itself,
not by binding. What I'm dong wrong?

Tim
@timunie
@bolt-b why is your Binding OneWay?
I think this will break connection as soon as one clicks the button.
bolt-b
@bolt-b
@timunie , I've tried all "BindingWays" variants. That makes no difference.
The button continues living its own life whilst the binding is living its own life.
Is there a way to disable button's internal links and leave binding link only? It needs to have white-green only by binding, not by pushing button.
Tim
@timunie
Can you show me your Property you bind do?
is it public AND implements INotifyPropertyChanged?
Meanwhile let me test it in the demo App
bolt-b
@bolt-b
The property is ok, visible in intellisense and boolean. Based on MVVM light. There have not been any problems with.
ok please test that.
Tim
@timunie
it works on my side
bolt-b
@bolt-b
is there a difference in code?
Tim
@timunie
not in XAML
Ok Mode=TwoWay
bolt-b
@bolt-b
where?
Tim
@timunie
Maybe the property
I have not your Property
image.png
image.png
bolt-b
@bolt-b
...and it works by true coming from binding only?
Tim
@timunie
yep
And I think there is an issue in your MVVM
So please share your code of the Property
bolt-b
@bolt-b
nothing special... standard property made by code snippet.
I have got hundreds identical ones, all working.
 public bool BooleanValue
        {
            get { return _booleanValue; }
            set { Set(ref _booleanValue, value); }
        }
        private bool _booleanValue;
Tim
@timunie
very strange, but not MahApps related as it works in the demo
bolt-b
@bolt-b
@timunie thank you, seems I found a culprit. it was App specific issue. Not WPF and Mahapps.
Tim
@timunie
I sent you a private link
It's a tool which helped me in the past
bolt-b
@bolt-b
Oh, I see.
JendolaRajda
@JendolaRajda
Hello there! I've been using MahApps for some time now, but only now am I really getting into utilizing the ThemeManager within my apps and have a little question or a possible feature request: Are there any brushes within each of the themes that could give me the Accent colour when using a Light theme, but a dark grey colour when using a Dark theme? Or perhaps vice versa - a brush that would produce accented colour for Dark theme and a shade of dark grey for the Light theme? There's a lot of brushes that switch between dark grey and white depending on the theme, but I haven't found any that would switch between the accent and grey.
Tim
@timunie
Hi @JendolaRajda
You can roll your own ThemeManager and adjust it the way you need to.
Have a look at
Override the LibraryThemeProvider
Happy theming
Tim
TripleNico
@TripleNico
Hi all! Is there a helper function in Mahapps to start a MetroWindow on it's own thread instead of the MainWindow thread?