-
Get the latest release
-
Add
ControlsLib.dllreference to your project -
Include library styles in
App.xaml:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/ControlsLib;component/Styles/Generic.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>- Add required namespaces to your window:
<Window x:Class="YourApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:YourApp"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800"
xmlns:clib="clr-namespace:ControlsLib.Controls;assembly=ControlsLib"
xmlns:prop="clr-namespace:ControlsLib.AttachedProperties;assembly=ControlsLib">
</Window>- Use ControlsLib components
<Window x:Class="YourApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:YourApp"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800"
xmlns:clib="clr-namespace:ControlsLib.Controls;assembly=ControlsLib"
xmlns:prop="clr-namespace:ControlsLib.AttachedProperties;assembly=ControlsLib">
<clib:Button Background="#d22d39"
CornerRadius="10"
Padding="10"
BorderThickness="0"
HoverBackgroundColor="#bc2934"
ClickBackgroundColor="#a0222b"
Foreground="White"
FontSize="15"
HorizontalAlignment="Left"
FontWeight="SemiBold"
Content="Button content"/>
</Window>For example see Rich Presence GUI
- NavigationRadioButton
FlagXFlagYFlagEndXFlagEndYFlagAnimationDurationFlagCornerRadiusFlagBackgroundFlagPaddingFlagMarginFlagPosition
- TimeProgressBar
TimeContextCornerRadiusProgressBarBackgroundProgressBarBorderBrushProgressBarForegroundProgressBarCornerRadiusProgressBarBorderThicknessProgressBarWidthProgressBarHeight
- Button
CornerRadiusHoverBackgroundColorClickBackgroundColor
- CheckBox
TitleTitleFontSizeTitleFontWeightTitleFontStyleTitleFontFamilyTitleFontStretchTitleForegroundTitleOpacityCornerRadiusCheckWidthCheckHeight
- ComboBox
CornerRadiusItemsCornerRadiusItemsForegroundHoverBackgroundColorClickBackgroundColorPopupBackgroundPopupBorderBrushPopupBorderThicknessPopupCornerRadiusPopupWidthPopupHeightPopupMaxWidthPopupMaxHeightHoverItemBackgroundSelectedItemBackgroundCommandCommandParameterCommandTargetPopupMarginPopupPaddingPopupEffect
- ImageRadioButton
CornerRadiusImageSourceCheckedImageSourceHoverBackgroundColorClickBackgroundColorCheckedBackgroundColorCheckedForegroundColorCheckedBorderBrushImageWidthImageHeightImageMarginContentMargin
- ListView (ListBox)
ScrollViewerStyleHoverItemBorderBrushHoverItemBackgroundSelectedItemBorderBrushSelectedItemBackgroundItemBorderThicknessItemBorderRadiusScrollBarWidthScrollBarBackgroundScrollBarCornerRadiusScrollBarThumbBackgroundHoverScrollBarThumbBackgroundClickScrollBarThumbBackgroundScrollBarThumbCornerRadiusScrollBarThumbWidthCanSelect
- ProgressBar
CornerRadius
- ScrollViewer
ScrollBarWidthScrollBarBackgroundScrollBarCornerRadiusScrollBarThumbBackgroundHoverScrollBarThumbBackgroundClickScrollBarThumbBackgroundScrollBarThumbCornerRadiusScrollBarThumbWidth
- TextBox
CornerRadiusTitleTitleFontSizeTitleFontWeightTitleFontStyleTitleFontFamilyTitleFontStretchTitleForegroundTitleOpacityPlaceholderPlaceholderFontSizePlaceholderFontWeightPlaceholderFontStylePlaceholderFontFamilyPlaceholderFontStretchPlaceholderForegroundPlaceholderOpacity
-
ListBoxBehaviour
AllowCopy
-
PanelChildrenProperties
MarginWidth
-
ScrollViewerHelper
ScrollBarWidthScrollBarBackgroundScrollBarCornerRadiusScrollBarThumbBackgroundHoverScrollBarThumbBackgroundClickScrollBarThumbBackgroundScrollBarThumbCornerRadiusScrollBarThumbWidth
- TreeTools
GetVisualChild<T>()GetVisualChild()GetVisualParent<T>()GetVisualChildren<T>()GetVisualTree()GetLogicalChild<T>()GetLogicalChild()GetLogicalTree()GetChild<T>()
- TimeBarContext
StartSpanPercentsEndSpan
- FlagPosition
LeftRight
