Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:28
    Keboo commented #2432
  • 16:57
    Keboo synchronize #2441
  • 16:56
    Keboo closed #2262
  • 16:56
    Keboo milestoned #2262
  • 16:56

    Keboo on master

    Improve null dialog identifier … (compare)

  • 16:56
    Keboo milestoned #2445
  • 16:56
    Keboo closed #2445
  • 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
mariannapas
@mariannapas

Hello, I'm using materialdesignextension for the TabcControlStepper component

<mde:TabControlStepper>
<TabItem Name="tabSelect" >
<TabItem.Header>
<model:StepTitleHeader FirstLevelTitle="Select" />
</TabItem.Header>
</mde:TabControlStepper>

but I'm not able to change the foreground of the step number. I tried to import the style and modified it but I didn't succeed

2 replies
Kynastone
@Kynastone
How can i change the background color of a popup shown when you click the combobox ?
10 replies
LF_Mcxixif_
@LFMcxixif
Why doesn't my ScrollViewer display the right slider?
On the page
<Grid Background="#4CFFFFFF">
        <Border CornerRadius="10" Background="#33FFFFFF" Height="400" Width="730" Margin="0">
            <Grid>
                <ScrollViewer materialDesign:ScrollViewerAssist.IsAutoHideEnabled="True" Width="700" Height="380" Margin="0">
                    <TextBlock x:Name="TextBlock_Announcement" FontSize="15" TextWrapping="Wrap"/>
                </ScrollViewer>
            </Grid>
        </Border>
    </Grid>
For example this
image.png
Kevin B
@Keboo
@LFMcxixif can you share more of the screenshot and XAML? Difficult to tell from just those snippets
Twitter Tweets
@mrjakepavek_gitlab

image.png

bump

Roy
@Roypy

Hi, I was trying to modify the TabItem style but I'm getting the error shown below, tried to fiddle around with it but can't get it to work any idea how to fix it?

SelectionCornerRadiusMissing.png

3 replies
lokiuucx
@lokiuucx

Hello! I am using the Navigation Rail (TabControl) from material design for amazing look. When I bind the ItemsSource/Header to a string List I cannot define the Tab Headers Width and Height:

<TabControl ItemsSource="{Binding Tabs}" TabStripPlacement="Top" Style="{StaticResource MaterialDesignNavigatilRailTabControl}"
materialDesign:NavigationRailAssist.ShowSelectionBackground="True">
    <TabControl.ItemTemplate>
                <DataTemplate>
                     <TextBlock Text="{Binding Header, Mode=OneTime}" Height="40" Width="160"/>
            </DataTemplate>
    </TabControl.ItemTemplate>
</TabControl>

Changing the TextBlock Width/Height makes no difference, because it seems that the Tab Header has a default Height? Is there a way I can change the Tab Header's Height/Width with data binding?

2 replies
TabHeaders.png
LF_Mcxixif_
@LFMcxixif
image.png
image.png
image.png
Does anyone know why the scroll bar is not displayed here? But he can use the roller to slide
<Grid Background="#4CFFFFFF">
        <Border CornerRadius="10" Background="#33FFFFFF" Height="400" Width="730" Margin="0">
            <Grid>
                <ScrollViewer materialDesign:ScrollViewerAssist.IsAutoHideEnabled="True" Width="700" Height="380" Margin="0">
                    <TextBlock x:Name="TextBlock_Announcement" FontSize="15" TextWrapping="Wrap" Width="660" Margin="0,10"/>
                </ScrollViewer>
            </Grid>
        </Border>
    </Grid>
3 replies
LF_Mcxixif_
@LFMcxixif
@Keboo
LF_Mcxixif_
@LFMcxixif
image.png
Deivid AG
@DeividAGamex_twitter
I need help with Drawer Host, my problem is the animation time it has, is there an option to speed it up?
1 reply
I clarify that I have a DrawHost in a DialogHost
Connybot
@Connybot
Hi! Is there a way to select item in TreeView by clicking on its name? If I click on it, nothing happens, I must click on outside border to select TreeViewItem.
6 replies
Deivid AG
@DeividAGamex_twitter
can i questions of some topic relationation with c# or wpf or is it specific to wpf material?
Kevin B
@Keboo
@DeividAGamex_twitter I don't mind general c#/Wpf questions
Cameron Watson
@huhmit
How would I override the SnackbarActionButton's IsMouseOver background setter? I've changed the background of the Snackbar and action button's background looks out of place.
3 replies
Ahmed Mohamed Abdel-Razek
@ahmed-abdelrazek
is there a way to have squared (normal button like style) for the ToggleButton instead of the circular one ?
4 replies
joeysison
@joeysison
can i resize the height of a floating textfield?
3 replies
Kristian Acel Gene Cua
@kristiancua_gitlab
image.png
hi, is there any way i can add validation before DrawerHost.OpenDrawerCommand is called? I need to check first if something is set in the background before i would be able to show the hidden drawer controls
1 reply
Kristian Acel Gene Cua
@kristiancua_gitlab
or in another approach, how would i be able to call the DrawerHost.OpenDraweCommand from the code behind?
Kynastone
@Kynastone
is there a way to make the slider smaller ? if i set the height it just cut it off...( i guess the dimensions are hardcoded ?)
4 replies
João Guedes
@JoaoGuedes01
Hi guys, I'm new to xaml and material design how could I add styled buttons dynamically through C#? Im trying to populate a filter list with information from a rest API
1 reply
mariannapas
@mariannapas
Hi, how can I select the full row in a datagrid? If I click inside a cell it only selects the cell and not its row.
7 replies
cod3rshotout
@cod3rshotout

How can I set the tab item foreground of dragablz control to white?

This is what I have:

<Style TargetType="{x:Type dragablz:TabablzControl}" BasedOn="{StaticResource MaterialDesignTabablzControlStyle}" />

This is the component:

<dragablz:TabablzControl>
<TabItem>

2 replies
KHALED LAKEHAL
@KHALED-LAKEHAL
hello how change calendar design to accept schedule
1 reply
Jesper Hansen
@jespersh
If you need to close a PopupBox from mvvm, is the choice to bind IsPopupOpen the optimal one?
6 replies
DmitryZhelnin
@DmitryZhelnin
Hi everyone! Is it possible to change size of ListBox items in the ToolBar? I tried to overwrite several styles but managed to change the height only. The width is always stays the same.
2 replies
nguyenvietnb027
@nguyenvietnb027
image.png
Hi all! I'm a newbie. I have a problem. After I Install-Package MaterialDesignThemes, there can be lost any thing. My code copy was error because "Error XDG0006 The namespace prefix "materialDesign" is not defined". Hope you can help me. Thanks guy.
3 replies
creationsoftre
@creationsoftre

Hello Everyone, I could use some assistance. I'm importing wpf xamls into powershell that contain Material Design and i'm encountering the following error when loading the dlls. Wpf windows work in VS no issues.

('PrevChangeWindowOne' is an unexpected token. Expecting white space. Line 9, position 16.
Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.)

Here is my code:

PrevChangeWindowOne Xaml File:

<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>

Powershell:

[System.Reflection.Assembly]::LoadFrom("assembly/MaterialDesignThemes.Wpf.dll") | Out-Null
[System.Reflection.Assembly]::LoadFrom("assembly/MaterialDesignColors.dll") | Out-Null

or

Add-Type -Path "assembly/MaterialDesignThemes.Wpf.dll"

7 replies
Christer van der Meeren
@cmeeren
Hi, I have a validated textbox where the error message contains code. Therefore, I'd like to change the error message font for this textbox to a fixed-width font. Is this possible, without having to copy/rewrite the entire existing error control template? I don't really know that much about WPF templating/styling, and am having trouble researching this.
MaksymOnGit
@MaksymOnGit
Hello, Is there a way to change the corner radius of the modal dialog box using style?
1 reply
EmuAl
@EmuAl

hey all, i am having a problem and need some help
i am getting " the resource could not be resolved" on these three items
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
Background="{DynamicResource MaterialDesignPaper}"

<materialDesign:DrawerHost LeftDrawerBackground="{DynamicResource MaterialDesignPaper}" x:Name="DrawerHost">

i looked online to see other people having this problem but can't really see a solution, i've tried updating the nuget package to the latest but it just makes lots of errors when building the solution

1 reply
Christer van der Meeren
@cmeeren
Does MaterialDesignInXamlToolkit have built-in support for fixed-width fonts, e.g. Roboto Mono? I have a TextBlock where I need a mono-spaced font. I can use e.g. "Courier New", but if MDIXT has built-in support for something else, I'd rather use that.
3 replies
markmov
@markmov
Hi all. Is it possible to set the size of MaterialDesignSwitchToggleButton switch button? I'm using a very high DPI touch screen laptop, and these buttons are very small to be used.
6 replies
Kynastone
@Kynastone
wasn't there a button with 2 faces front and back ?? i cannot find it anymore
4 replies
Roy
@Roypy

Hi, Just wanted to know how I can customize the thumb portion of the ScrollViewer scrollbar, I tried editing the original styles but I can only set the scrollbars background color and border. Edit: Just the color

thumbscroll.png

1 reply
bebenins
@bebenins
Hey guys, this is an amazing WPF/C# community so I thought I'd ask for opinions.
My company is planning to base our next product on Linux. What is the best option to go with if I want to stick with C# (obviously .NET 5.0/Core)?
I just love this MD tookkit and hate that I won't be able to use it on at least one of our products.
Any feedback greatly appreciated. Thanks
6 replies
Kevin B
@Keboo
I am looking to do an overhaul of the brush names in the library. Would love feedback on the proposal: MaterialDesignInXAML/MaterialDesignInXamlToolkit#2435
Kevin B
@Keboo
Also a heads up for everyone. I am on a quest to close out a bunch of the old issues in the repository. If I close one of your issues that you believe is still an issue feel free to comment and re-open it.
Andy Smolak
@Awsmolak
I'm having a weird problem. I have a style for a togglebutton and using ToggleButtonAssist.OnContent to set a PackIcon for the toggle button content. The toggle button style is applied to a toggle in a datatemplate which is set on listview items. When I toggle any of the listviewitem togglebuttons the PackIcon "moves" from one listview item toggle to another.
<Style x:Key="MyToggleButtonStyle" BasedOn="{StaticResource MaterialDesignSwitchToggleButton}" TargetType="ToggleButton">
            <!--<Setter Property="ToggleButton.Content">
                <Setter.Value>
                    <materialDesign:PackIcon Kind="CircleDiameterVariant"/>
                </Setter.Value>
            </Setter>-->
            <Setter Property="materialDesign:ToggleButtonAssist.OnContent">
                <Setter.Value>
                    <materialDesign:PackIcon Kind="Check"/>
                </Setter.Value>
            </Setter>
            <Setter Property="materialDesign:ToggleButtonAssist.SwitchTrackOnBackground">
                <Setter.Value>
                    <SolidColorBrush Color="Green"/>
                </Setter.Value>
            </Setter>
            <Setter Property="materialDesign:ToggleButtonAssist.SwitchTrackOffBackground">
                <Setter.Value>
                    <SolidColorBrush Color="Red"/>
                </Setter.Value>
            </Setter>
        </Style>

<DataTemplate x:Key="MyViewItemTemplate">
            <Grid HorizontalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="{Binding Path=Name}" Grid.Row="0" Grid.Column="0" Style="{StaticResource MaterialDesignSubtitle2TextBlock}"/>
                <TextBlock Text="{Binding Path=Description}" Grid.Row="1" Grid.Column="0"/>
                <ToggleButton Style="{StaticResource PermissionsToggleButtonStyle}" IsChecked="{Binding Path=CanAccess}" Grid.RowSpan="2" Grid.Column="1" Margin="5,0,0,0"></ToggleButton>
            </Grid>
        </DataTemplate>
3 replies