Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:49
    kacciocciacciara commented #2432
  • 09:09

    github-actions[bot] on nightly_release

    Fix dialog shown behind deactiv… (compare)

  • 05:11
    Keboo synchronize #2445
  • 05:02

    Keboo on master

    Fix dialog shown behind deactiv… (compare)

  • 05:02
    Keboo closed #2444
  • 05:02
    Keboo closed #2443
  • Sep 27 20:20
    Yoooi0 edited #2445
  • Sep 27 20:19
    Yoooi0 opened #2445
  • Sep 27 19:52
    Keboo milestoned #2443
  • Sep 27 19:51
    Keboo milestoned #2444
  • Sep 27 19:51
    Keboo review_requested #2444
  • Sep 27 17:15
    Yoooi0 edited #2444
  • Sep 27 17:14
    Yoooi0 opened #2444
  • Sep 27 17:03

    github-actions[bot] on nightly_release

    Limit Action runs to only the m… Removing secrets context for if… (compare)

  • Sep 27 16:53
    Keboo commented #2443
  • Sep 27 16:49
    jamesport079 closed #1224
  • Sep 27 16:46
    Yoooi0 opened #2443
  • Sep 27 16:40
    jamesport079 opened #2442
  • Sep 27 16:38

    Keboo on master

    Removing secrets context for if… (compare)

  • Sep 27 16:19
    Keboo labeled #2024
Federico Rossi
@artipo
2021-01-29_19h47_18.png
2021-01-29_19h48_50.png
GnahZn1x
@GnahZn1x
Hello, I am trying to override "TextFieldCornerRadius" of "MaterialDesignOutlinedComboBox" and I am able to see the change in VS Designer of the user control. But in the designer of the mainwindow and runtime, it fell back to the default style. Really appreciated if you can provide some pointers.
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ComboBox.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <Style x:Key="MaterialDesignOutlinedComboBox" TargetType="{x:Type ComboBox}"
                   BasedOn="{StaticResource MaterialDesignOutlinedComboBox}">
                <Setter Property="materialDesign:TextFieldAssist.TextFieldCornerRadius" Value="50"/>
            </Style>

        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <ComboBox Style="{StaticResource MaterialDesignOutlinedComboBox}">
            <ComboBoxItem>item 1</ComboBoxItem>
            <ComboBoxItem>item 2</ComboBoxItem>
            <ComboBoxItem>item 3</ComboBoxItem>
        </ComboBox>
    </Grid>
image.png
image.png
David Price
@dprice809
Is there a NumericUpDown control? I see some source that eludes to a NumericUpDown, but I don't see an example in the demos.
Federico Rossi
@artipo
@GnahZn1x I don't think naming your custom style with the base style name it's a good idea. The latter get overridden by yours and this could be the reason why th style seems incorrect at runtime
numericsguy
@numericsguy

hi guys, I am using a PopupBox in a CellTemplate for a DataGridTemplateColumn. The PopupBox shows up as expected, but when clicking the Save-Button defined as

<Button Content="_Save"  Command="{x:Static materialDesign:PopupBox.ClosePopupCommand}" />

a get an InvalidOperationException: System.Windows.Documents.Run is not a Visual or Visual 3D

When I use the same PopupBox-XAML-code outside of the DataGrid the button works as expected. Do I need to do something special to get it to work within a DataGrids CellTemplate or could this be a bug?

GnahZn1x
@GnahZn1x
@artipo thanks for the suggestion. I will take a try.
chizran
@chizran
Is there a way to change the FontSize of the SnackbarMessage?
Stehsaer
@Stehsaer
image.png
i'm having a problem here...
it works fine in light mode, but when i switch to dark mode in App.xaml
it goes like this
image.png
only the expander changes, other controls like scrollview, menu just do nothing
image.png
Stehsaer
@Stehsaer
image.png
after some minor fixes:
image.png
Stehsaer
@Stehsaer
Is there a way to change the FontSize of the Snackbar
try this:
 MySnackBar.MessageQueue.Enqueue(new TextBlock{ FontSize=***, *Other Properties*...});
chizran
@chizran
@Stehsaer thanks, working great.
Jesper Hansen
@jespersh
Say I have a (popup) window with a dialoghost that I reuse for all my popups. So all the windows actually have the same named dialoghost. So I'm having this Multiple viable DialogHosts. Specify a unique Identifier on each DialogHost, especially where multiple Windows are a concern. Anyone got an idea on how you could do this without going out to create a unique Window file for each?
Jesper Hansen
@jespersh
found a way to introduce two dependency properties that would allow for a randomization of the DialogHost's Identifier name
Mikael Silvén
@silven
Hi, how can I control the behaviour of pressing Enter in a text field in a Dialog(Host)? I don't want it to close the dialog
Yves Calaci
@YvesHenri
How do I change the snackbar's background color?
To use my PrimaryHueLightBrush's color
Yves Calaci
@YvesHenri
...and also how do I get to show huge texts within a small snackbar?
ShannonZ
@ShannonZ
how to hide the under-line of the TextBox?
KHALED LAKEHAL
@KHALED-LAKEHAL
@ShannonZ set border thickness to 0 and set md:TextFieldAssist.DecorationVisible=False
ShannonZ
@ShannonZ
@KHALED-LAKEHAL this works. thx!
ShannonZ
@ShannonZ
Changing the VerticleContentAlignment of a TextBox has no effect to the final visual results. Why?
image.png
Kevin B
@Keboo
@YvesHenri in general you don't want to show large amounts of text in a snackbar (typically only a line or two of text). However if you would like to allow it to be larger there is an attached property you can set like this (adjust the actual value to suit your content).
<materialDesign:Snackbar
    materialDesign:SnackbarMessage.ContentMaxHeight="400">
...
</materialDesign:Snackbar>
Kevin B
@Keboo
@ShannonZ try setting the background of the text box to something like Red just to see the area that it occupies (sometimes the snoop outline can be misleading). I also like to change the parent element of the TextBox to have a background like Blue (just for debugging this sort of thing). Typically your VertialAlignment should be centering the textbox. VerticalContentAlignment doesn't do much/anything if the VertialAlignment is not set to Stretch.
@YvesHenri you can simply set the Background property of the Snackbar to change its color.
<materialDesign:Snackbar
                        Background="{DynamicResource PrimaryHueLightBrush}" />
Kevin B
@Keboo
@silven there should not be anything in the DialogHost control that automatically handles the Enter key. However, if you have a Button within your dialog that has IsDefault="True", that button will automatically get triggered on Enter key presses (this is how most of the dialog samples in the demo app work).
Mikael Silvén
@silven
@Keboo , yes I found that :)
SmRiley
@SmRiley
Hello everyone, I would like to ask, does this project include a style similar to the marquee attribute in HTML to make the text scroll left and right?
I just used this project and did not find a similar effect in the demo, so I want to ask. If there is any, I don’t need to write one myself.
radoslawkosinski
@radoslawkosinski
Hi, I'm using DialogHost, all is working fine but I'm not able to focus text edit from dialog's view model(through xaml binding; local:FocusExtension.IsFocused="{Binding IsUserNameFocused}" . I have also attached property IsFocused which sets the focus on the given control.
It works fine without dialogs but when I add dialogs (I have defined them as resource) then it seems that:
the bool property is passed properly from vm to dialog but the focus doesn't work.
Do you have any sample usage how I to focus the control from view model (that is the dialog's view model of course).
I appreciate any help
KHALED LAKEHAL
@KHALED-LAKEHAL
hello how show dialoghost when window open
etheaven
@etheaven
Hello, anybody knows how can I change the little arrow icon on MaterialDesignComboBox ? I've tried many things, but I'm too bad for now.
abdulllah111
@abdulllah111
image.png
Hello. I'm trying to open the material design xaml toolkit, but the build displays a bunch of errors. Who knows what this is about?
Andrey Nasonov
@Erapchu
@abdulllah111 hello. I suggest to update visual studio to latest version with visual studio installer
Then try to restore all nugets
Andrey Nasonov
@Erapchu

hello how show dialoghost when window open

Hello. In xaml root of main window insert DialogHost control.