Code Monkey home page Code Monkey logo

materialdesigninxaml.examples's Introduction

Material Design in XAML (MDIX) Samples

If you are just getting started, take a look at these 5 steps for getting started with MDIX

A collection of small samples using MaterialDesignInXaml.

Samples may be in various states of "done". If there is some concept you would like to see demonstrated please open an issue. PRs happily accepted as well.

Online Videos / Streams

I do live streams on Material Designs in XAML and WPF. You can find me on twitch and YouTube

Helpful Blog Posts

materialdesigninxaml.examples's People

Contributors

adamskt avatar ali50m avatar dependabot[bot] avatar elangovanr avatar keboo avatar marvac avatar michelmichels avatar rollerss avatar rozzaysred avatar shannonz avatar stigrune avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

materialdesigninxaml.examples's Issues

how to modify code

Hello, I downloaded this file (Keboo / MaterialDesignInXaml.Examples)on github and opened it, there will be errors. How do I modify it?thank you

Unknown generation error "Unable to resolve the dependencies of assembly" Microsoft.Windows.Design.Extensibility, Version = 4.3.1.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a "because there is no preload. When using ReflectionOnly API, you must pass The ReflectionOnlyAssemblyResolve event preloads or loads dependent assemblies as needed. "MultiProject.Views

Create README for DialogHost\DialogHost.ClosingConfirmation.CodeBehind\DialogHost.ClosingConfirmation.CodeBehind project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

CustomLoginDialogTemplate.xaml references the wrong assembly

Hi Keboo, thank you very much for that instructive example how to move the visual representation of dialgohost.
But there is a small bug inside. CustomLoginDialogTemplate.xaml sholud reference xmlns:system="clr-namespace:System;assembly=mscorlib" and not xmlns:system="clr-namespace:System;assembly=System.Runtime". Its not a big deal but it can be annoying for less experienced developers. Stay healthy and do well Keboo!

Create README for DrawerHost\DrawerHost.Airspace\DrawerHost.Airspace project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for ColorZone\ColorZone.StackPanel\ColorZone.StackPanel project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for ContextMenu\ContextMenu.OpenBehavior\ContextMenu.OpenBehavior project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for Dragablz\TabablzControl.FullWidthTabs\TabablzControl.FullWidthTabs project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for Button\Button.SingleButtonTheme\Button.SingleButtonTheme project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DialogHost\DialogHost.FromViewModel\DialogHost.FromViewModel project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DialogHost\DialogHost.AnchorBottom\DialogHost.AnchorBottom project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DialogHost\DialogHost.AttachedPropertyClosing\DialogHost.AttachedPropertyClosing project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DialogHost\DialogHost.CommonDialogWindow\DialogHost.CommonDialogWindow project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DialogHost\DialogHost.FocusBehavior\DialogHost.FocusBehavior project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DialogHost\DialogHost.CornerRadius\DialogHost.CornerRadius project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DialogHost\DialogHost.EmbeddedFill\DialogHost.EmbeddedFill project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DrawerHost\DrawerHost.Airspace\Microsoft.DwayneNeed\CustomBitmapDemo\CustomBitmapDemo project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for Badged\Badged.Animation\Badged.Animation project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Move DatePicker.PersianCalendar project

This project should be moved inside of a folder called DatePicker to match how the rest of the projects are organized.
Ensure you also update the solution file so that it shows up in Visual Studio.

problem of accessibility for property visibility

in folder styling for the project TreeviewMenu in file MainWindow.xaml, i have an error about line 476

<Setter Property="Visibility" Value="Hidden" />

the property has a problem of accessibility or its unknown, i dont know how to avoid this error

regards
Terry

Create README for DialogHost\DialogHost.WithResult\DialogHost.WithResult project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

License?

Can you add a license statement or file to this project?

Clean clone not compilable

  1. clone
  2. restore nuget packages
  3. still build errors

18>------ Rebuild All started: Project: WelcomeMessage, Configuration: Debug Any CPU ------
16>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MaterialDesignColors, Version=1.2.0.319, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
16>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MaterialDesignThemes.Wpf, Version=2.6.0.319, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

Create README for Button\Button.RotatedProgress\Button.RotatedProgress project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for Calendar\Calendar.Colors\Calendar.Colors project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Outsourcing dialogs visual representaion

Hi Keboo, is there a way to create the visual representation of dialogs in a separate file instead of embedding them directly into MainView as DialogContentTemplate? It does not seem to be right inside MainView if there are many dialogs. If yes, could you also provide an example (inside the project DialogHost.FromViewModel maybe?) how to outsource the visual representation? Thank you in advance. Your videos on youtube are very instructive, also thanks for that!

Create README for DialogHost\DialogHost.ChangingContent\DialogHost.ChangingContent project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DataGrid\DataGrid.SmoothScroll\DataGrid.SmoothScroll project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DrawerHost\DrawerHost.Airspace\Microsoft.DwayneNeed\DemoApp\DemoApp project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DataGrid\DataGrid.ChangeRowColor\DataGrid.ChangeRowColor project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DatePicker\DatePicker.PersianCalendar\DatePicker.PersianCalendar project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Not find the source : ValidationErrorTemplate.xaml in the (ValidationTemplate.MainWindow) project(application)

<Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                **<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/ValidationErrorTemplate.xaml" />**
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

             **<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/ValidationErrorTemplate.xaml" />**

(ValidationTemplate.MainWindow)

    I tried to download the MahApps source code (Github) and I didn't find ::: "pack:,,,/MahApps.Metro; component/Styles/ValidationErrorTemplate.xaml".

Treeview with binding data

Hi Kevin,

Thanks for your examples, it helps a lot !

I am working on project by using the treeviewmenu example, there's hard code xaml treeviewItem data in the example, once I changed to a binding ObservableCollection data, the Style trigger wouldn't fire. Could you help to modify the example to adapt the dynamic data ? I worked whole day on this but haven't found the root cause. Any help would be appreciate.

Regards,

cannot be found. MaterialDesignTitleTextBlock Resource

Hello.
System.Windows.Markup. The XamlParseException:"" in "System.Windows.StaticResourceExtension "An exception was raised when the value was provided on." The line number is "52" and the line position is "52"."

Exception: A resource named "MaterialDesignTitleTextBlock" cannot be found. Resource names are case sensitive.

TextBlock Grid.Column="0" Grid.Row="0" Style="{StaticResource MaterialDesignTitleTextBlock}"
Is there anything I can do to fix this problem?
Thank you.

Create README for DialogHost\DialogHost.WebBrowser\DialogHost.WebBrowser project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Button.CornerRadius example project

I was reviewing the Button.CornerRadius project and the code does something very clever in MainWindow.xaml.

It changes a part of the button template with the attached property TreeHelpers.Modifiers.

<Style
    x:Key="SquareButton"
    TargetType="ButtonBase"
    BasedOn="{StaticResource MaterialDesignRaisedButton}">
    <Setter
        Property="utilities:TreeHelpers.Modifiers">
        <Setter.Value>
            <utilities:ModifierCollection>
                <utilities:Modifier
                    TemplatePartName="border"
                    Property="{x:Static Border.CornerRadiusProperty}">
                    <utilities:Modifier.Value>
                        <CornerRadius>0</CornerRadius>
                    </utilities:Modifier.Value>
                </utilities:Modifier>
            </utilities:ModifierCollection>
        </Setter.Value>
    </Setter>
</Style>

I think it's a genius bit of code, but I guess this is kinda legacy? There's ButtonAssist.CornerRadius now as an attached property on the button control itself.

My question is, should this code get dropped in favor of ButtonAssist.CornerRadius?

Create README for DialogHost\DialogHost.RoutedCommand\DialogHost.RoutedCommand project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for ComboBox\ComboBox.CustomFilter\ComboBox.CustomFilter project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DataGrid\DataGrid.SelectedRow\DataGrid.SelectedRow project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for Dragablz\TabablzControl.Colors\TabablzControl.Colors project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Create README for DialogHost\DialogHost.CodeBehindExample\DialogHost.CodeBehindExample project

The README should contain the following elements

    - The title of the project
    - A brief decription of what the project shows
    - A visual of the running project. This may be either a static image or a gif ([ScreenToGif](https://www.screentogif.com/) may be helpful)
    - When possible a brief explanation of how the code works.

    You can see an example [here](https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/Animation/WelcomeMessage/README.md)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.