Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 20:18

    Keboo on icons

    (compare)

  • 20:18

    Keboo on master

    Icons update from Azure pipelin… (compare)

  • 20:18
    Keboo closed #1716
  • 20:18
    Keboo milestoned #1716
  • 16:50
    Asugakoisi commented #1551
  • 07:02

    Keboo on icons

    Icons update from Azure pipeline (compare)

  • 07:02
    MDIX-SA opened #1716
  • 06:55
    Keboo commented #1551
  • 06:25
    Asugakoisi commented #1551
  • 03:05
    Keboo labeled #1464
  • 03:04
    Keboo labeled #1468
  • 03:04
    Keboo commented #1468
  • 03:00
    Keboo commented #1485
  • 03:00
    Keboo labeled #1485
  • 02:59
    Keboo closed #1477
  • 02:58
    Keboo labeled #1494
  • 02:58
    Keboo commented #1494
  • 02:57
    Keboo closed #1503
  • 02:57
    Keboo commented #1503
  • 02:54
    Keboo labeled #1519
Twitter Tweets
@mrjakepavek_gitlab
Jesper do you know how to wrap text in a datagrid? or remove returns?
as seen here
Jesper Hansen
@jespersh
@mrjakepavek_gitlab
                <DataGridTextColumn ...>
                    <DataGridTextColumn.ElementStyle>
                        <Style>
                            <Setter Property="TextBlock.TextWrapping" Value="Wrap" />
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
Twitter Tweets
@mrjakepavek_gitlab
I tried that and it didn't appear to work
I just want it to remove the returns and show in one line
Jesper Hansen
@jespersh
@mrjakepavek_gitlab create a converter and use that in the column binding
sekulicb
@sekulicb
@jespersh it works thanks :D
ShannonZ
@ShannonZ
The background of ComboBox become White in ci1204. @Keboo
ShannonZ
@ShannonZ
1204.gif
981.gif
Kevin B
@Keboo

@ShannonZ that is somewhat expected. The popup box trying to determine its background color via the old mechanism was problematic (see #1550). The fix (#1576) was to switch it to use the theme brush. So if you use the theme brush it works, but if you have an explicit background like your example it will fail. You can work around this by setting the MaterialDesignPaper resource brush at a reasonable level. Something like:

<ComboBox Width="320" materialDesign:ComboBoxAssist.ShowSelectedItem="true" Foreground="White" FontSize="18" Background="#FF3C4650">
    <ComboBox.Resources>
        <SolidColorBrush x:Key="MaterialDesignPaper" Color="#FF3C4650" />
    </ComboBox.Resources>
...
</ComboBox>

You can also move that brush up to the Window level if it makes sense in your application, rather than specifying it on each combo box. Alternatively if you use the same background for all combo boxes you can use this style in your App.xaml

<Style TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
    <Style.Resources>
        <SolidColorBrush x:Key="MaterialDesignPaper" Color="#FF3C4650" />
    </Style.Resources>
</Style>
I will make sure to include this in the release notes for 3.1.0
ShannonZ
@ShannonZ
thx @Keboo
ShannonZ
@ShannonZ
I want to mimic the demo here: https://material.io/design/color/dark-theme.html#anatomy
how to set the following Colors: BaseTheme="Dark" PrimaryColor="" SecondaryColor="" ?
There are 8 kind of colors including Background (0dp elevation surface overlay)
Surface (with 1dp elevation surface overlay)
Primary
Secondary
On background
On Surface
On Primary
On Secondary
ShannonZ
@ShannonZ
set the color of each control separately is the only solution?
Jesper Hansen
@jespersh
@ShannonZ no
RWim
@RWim
Is there any way to have the material design theme over your whole app, but use the default WPF style for one control? I'm trying to have the material design theme all over my application, except for a datagrid which i want default WPF style
Jesper Hansen
@jespersh
@RWim try Style="{x:Null}"
RWim
@RWim
Does not change anything unfortunately :(
Jesper Hansen
@jespersh
@RWim what did you set it on? Because you'll need to do the rows and columns and cells as well
RWim
@RWim
Ah, top level on the datagrid
if i specify it on cell,headerstyle and rowstyle, it does work, thanks!
Alex Devien
@Adevien
Hey, is there a way to hide the resize white bar?
Jesper Hansen
@jespersh
@Adevien could you take a pic and circle what you mean?
Mohammedzuhair
@Mohammedzuhair
Hi guys. How can i change the border color of radio button from White to Black?
Kevin B
@Keboo
@Mohammedzuhair i have upload an example showing changing various colors on the radio buttons. https://github.com/Keboo/MaterialDesignInXaml.Examples/tree/master/RadioButton/RadioButton.Colors
Proless
@Proless
What could cause this ? https://imgur.com/YterMdb/ it is fairly straight forward nothing special i am just opening this window as a dialog (i am using Caliburn.Micro)
<ComboBox Grid.Row="3"
                  IsEditable="True"
                  ItemsSource="{Binding Games}"
                  SelectedItem="{Binding SelectedGame}"
                  DisplayMemberPath="Name"
                  Margin="4"
                  VerticalAlignment="Center"
                  materialDesign:HintAssist.Hint="Select a game"
                  materialDesign:HintAssist.HelperText="Game">
            <ComboBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <VirtualizingStackPanel />
                </ItemsPanelTemplate>
            </ComboBox.ItemsPanel>
        </ComboBox>
since i don't really know if this is related to Material Design toolkit or not i opened a question on stackoverflow: https://stackoverflow.com/questions/60915083/how-to-show-a-dialog-properly-before-displaying-the-shellview-with-caliburn-micr
Jesper Hansen
@jespersh
the more questions I see on here about caliburn the less I want to try it out
Kevin B
@Keboo
@Proless can you try it out on the latest pre-release version (3.1.0-ci1232). There was a bug with the popup placement when the screen DPI was greater than 100% which could cause the popup placement to end up in the corner of your screen.
Proless
@Proless
i tried the version (3.1.0-ci1232), same problem but now the popup does have a background brush visible ( See Image). i also tried version (3.1.0-ci981) same behavior as the release version(3.0.1) transparent brush and wrong placement.
Kevin B
@Keboo
@Proless any chance this is a open source thing I can take a look at?
Kevin B
@Keboo
@/all tonight's NuGet release will be the 3.1.0 release candidate. I will probably give it a few days to give people a chance to provide feedback and do some testing, but unless something comes up my intent is to release 3.1.0 in the next week or so.
Kevin B
@Keboo
Also if anyone does have time to test the latest code and provide feedback that would be appreciated (both positive and negative feedback welcome.).
Proless
@Proless
@Keboo yes it is a open source, here is the link Repo, also i was able to reproduce this problem without MaterialDesign toolkit, it is more of a Caliburn.Micro bug i guess. Test Repo
ShannonZ
@ShannonZ
roger that @Keboo
Kevin B
@Keboo
@Proless yea I would agree that it is probably a Caliburn, however I am not actually able to reproduce the popup positioning issue from your test repo. I am wondering if perhaps the problem may be related to DPI or culture settings.
Proless
@Proless
@Keboo weird i have updated the code , my monitor is 1080p and my dpi is set to 100%, i do have three different languages installed and my current language is set to english. Image
Thanks for your time. now i know it is not the MaterialDesign toolkit.
Twitter Tweets
@mrjakepavek_gitlab

Hello, how can I add the steps to my progress bar Example:

Deleting Zip
Zipping release folder
Updating version number
Saving update.xml

Kevin B
@Keboo
@mrjakepavek_gitlab not sure I understand the question, but you can simply just set the value of the progress bar as things complete.
A very simplistic implementation might look like:
ProgressBar progressBar = ...;
progressBar.Minimum = 0;
progressBar.Maximum = 100;
progressBar.IsIndeterminate = false;

progressBar.Value = 1; //I like to use a small value rather than zero here to make the progress bar a little more obvious.
//Do delete zip
progressBar.Value = 25;
//Do zipping release folder
progressBar.Value = 50;
//Do Updating version number
progressBar.Value = 75;
//Do saving update.xml
progressBar.Value = 100;
Twitter Tweets
@mrjakepavek_gitlab
@Keboo but for it to count up to 25 and 50 instead of just going from 25% to 50%
Kevin B
@Keboo
@mrjakepavek_gitlab that depends on the API/library you are using for doing the zipping. Not all methods will report progress, so you might not be able to report progress between 25% and 50%.
Twitter Tweets
@mrjakepavek_gitlab
just using standard c#
zipfile
Kevin B
@Keboo
@mrjakepavek_gitlab that API doesn't report progress so you wont be able to do anything other than jump for 25% to 50%. There are other libraries such as SharpCompress that give you more control over the process and allow you to report back progress, but this is not actually easy to do adamhathcock/sharpcompress#462.
Twitter Tweets
@mrjakepavek_gitlab
Okay thank you