spiegelp / MaterialDesignExtensions

Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
https://spiegelp.github.io/MaterialDesignExtensions/
MIT License
754 stars 122 forks source link

Add XmlnsDefinition #76

Closed AgPeHaJIuH1 closed 4 years ago

AgPeHaJIuH1 commented 4 years ago

It would be nice to add XmlnsDefinition and put all the namespaces from your library there for easy access in xaml (for example, as implemented in MaterialDesingThemes xmlns:mat ="http://materialdesigninxaml.net/winfx/xaml/themes")

[assembly: XmlnsPrefix("http://materialdesigninxaml.net/winfx/xaml/themes", "materialDesign")] [assembly: XmlnsDefinition("http://materialdesigninxaml.net/winfx/xaml/themes", "MaterialDesignThemes.Wpf")] [assembly: XmlnsDefinition("http://materialdesigninxaml.net/winfx/xaml/themes", "MaterialDesignThemes.Wpf.Transitions")] [assembly: XmlnsDefinition("http://materialdesigninxaml.net/winfx/xaml/themes", "MaterialDesignThemes.Wpf.Converters")]

P.S. only make the XmlnsPrefix shorter, for example "matEx"

spiegelp commented 4 years ago

@AgPeHaJIuH1 xmlns:mde="https://spiegelp.github.io/MaterialDesignExtensions/winfx/xaml" will be available with the upcoming release v3.3.0