Giter VIP home page Giter VIP logo

materialdesign-wpf-expander's Introduction

MaterialDesign-WPF-Expander

Just expander designed with using material design.

This is my first custom WPF control library. These are preliminary
versions and the library was experimental before the 0.5.0 version.
Perhaps there are some problems, if you notice them please report them.

The idea of creating this Expander ui element came up with when I
visited https://domains.google/#/domains-features, there I saw
this element and I just had an idea to try to implement this element
in WPF. It turned out not bad, I think.
Install package (nuget): Install-Package aterialDesign-WPF-Expander

Here are some screenshots of the demo project:

This element also supports basic customization, background color,
foreground color, hover foreground color, font styling and in
general you can simply override the files with themes.

Quick start:

App.xaml:
<Application>
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesign-WPF-Expander;component/Resources/Icons/Icons.xaml" />
                <!--  For using by default light theme just replace DarkDictionary.xaml on LightDictionary.xaml  -->
                <ResourceDictionary Source="pack://application:,,,/MaterialDesign-WPF-Expander;component/Themes/DarkDictionary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
MainWindow.xaml:
<Window . . .
        xmlns:mdex="clr-namespace:MaterialDesign_WPF_Expander;assembly=MaterialDesign-WPF-Expander">
        <Grid>
            <mdex:Expander
                Title="Lorem ipsum dolor sit amet"
                Background="{DynamicResource Ex-Background-Brush}"
                BorderBrush="{DynamicResource Ex-BorderFill-Brush}"
                Foreground="{DynamicResource Ex-HeaderForeground-Brush}"
                HoverForeground="{DynamicResource Ex-HeaderHoverForeground-Brush}"
                IsOpened="True">
                    <TextBlock
                        Padding="40,5,5,0"
                        FontSize="14"
                        Foreground="{DynamicResource Ex-HeaderForeground-Brush}"
                        TextWrapping="WrapWithOverflow">
                        Some text for expander
                    </TextBlock>
            </mdex:Expander>
        </Grid>
</Window>

materialdesign-wpf-expander's People

Contributors

mairwunnx avatar mart-bogdan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.