In my WPF C# project i wanted to use the DecimalUpDown control but it doesn't have the same feel and look as my other controls in the UserControl because i am Using MaterialDesignThemes in MaterialDesignInXamlToolkit. Now what i wanted is to Customize the TextBox part of the DecimalUpDown of the ExtendedWPFToolkit and the Button Part so that they look like materialDesignFloatingHintTextBox and one of the MaterialDesignButton styles respectively. I tried that but can't find anywhere to start like the Source Code etc
Where can i get the xctk:DecimalUpDown xaml so that i can Customize the way i want it?
120 views Asked by Moha At
2
There are 2 answers
3
Ahmed Laoun
On
try using userControle as UI Element
<UserControl x:Class="namespace.Views.MyUpAndDown"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:namespace.Views"
mc:Ignorable="d"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
d:DesignHeight="80" d:DesignWidth="200">
<StackPanel Orientation="Horizontal">
<TextBlock Background="{StaticResource MaterialDesignCardBackground}" MinWidth="140" Text="{Binding Value}"/>
<StackPanel Margin="5" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Vertical">
<Button Margin="1" Command="{Binding Increment}">
<Button.Content>
<materialDesign:PackIcon Kind="ArrowTop"/>
</Button.Content>
</Button>
<Button Margin="1" Command="{Binding Descrement}">
<Button.Content>
<materialDesign:PackIcon Kind="ArrowDown"/>
</Button.Content>
</Button>
</StackPanel>
</StackPanel>
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in WPF
- Sorting a List by its property renames all the objects in the List
- Can't open new instance of another window in my app, in WPF .NET 8
- Binding forecolour and ToolTip to a DataGrid
- how to create Infinite Upgrades in a clicker game
- Try Catch exception is not catching the unhandled exception
- Assigning an object to another doesn't raise PropertyChanged event in WPF
- Masking input in TextBox
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- reading configuration file (mytest.exe.config)
- WPF Windows Initializing is locking the separated thread in .Net 8
- How to bind to the DataContext ViewModel of another view?
- mouse coordinates in image go below 0 and above width
- WPF pop up is behaving differently in English language PC and Japanese language PC
- Multi level project reference using dll
- Unable to unzip archive .NET framework
Related Questions in XAML
- Can't open new instance of another window in my app, in WPF .NET 8
- Visual Studio throwing DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION when I try to add a log
- Deeplinking in .net Maui "Window was allready created"
- MauiApp crashes only in release mode at sideswitch android.os.DeadObjectException
- Move .net maui contents below the drawer when it's opened
- Both `TouchBehavior.CommandParameter` and `TouchBehavior.LongPressCommandParameter` are always passed as `null` to `Command` and `LongPressCommand`
- How do I change the size of a window?
- How can I force a .NET MAUI ContentView to fill the entire remaining space of its FlexLayout parent?
- How can I get this ComboBox to bind, populate the dropdown and write back selected value on update?
- MAUI-Animating each element of a BindableLayout
- Correctly set RadioButtonGroup for CollectionView in .NET MAUI
- Multiple color schemes depending on build configuration in WPF-application
- Select XAML file based on build configuration (Visual Studio 2022, WPF)
- The type was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built
- How can I tell if a control is actually Visible in UWP?
Related Questions in XCEED
- How to set property validation for xceed. propertyGrid?
- How do I add advanced filter on xceed datagrid?
- Where can i get the xctk:DecimalUpDown xaml so that i can Customize the way i want it?
- ASP NET, Xceed Docx, Table of content with heading that has no numbering
- How do I access properties of a popup that is defined in a style (WPF)
- Extended WPF Toolkit: Not showing up after installing trough NuGet
- XCeed PropertyGrid - How to add a custom property with PropertyDefinition having bool (CheckBox) type
- Insert chart at specific location in ms word using c# with xceed namespace
- Unity , C# Error CS0012 : The type 'Color' is defined in an assembly that is not referenced
- How to replace words using regex with Xceed Docx
- Change button background color using Xceed ColorPicker
- Extended datetimepicker raise error DateRange because DateTime Device not in range
- How to use PropertyGrid in Xceed.Wpf.Toolkit with cascade properties?
- How to remove the Related People (Author and Modified By) property of Word file using Xceed in C#
- Why do AvalonDock panes collapse in height when splitters first moved?
Related Questions in MATERIAL-DESIGN-IN-XAML
- materialDesign:MahAppsBundledTheme is gone with 5.0.0 release but still works in the Demo project
- HelperText Color Change XAML Material Design
- How to replace button hover color in XAML and Material Design Xaml Toolkit?
- How to fix Visual Studio C# WPF not supporting hint assist
- DataGridCell IsReadOnly ControlTemplate trigger to change background color -
- Where can i get the xctk:DecimalUpDown xaml so that i can Customize the way i want it?
- How to apply custom color as controller background in MaterialDesign in WPF
- How Can I implement a TextBox that displays FullName when not Focused and Splits the name into FirstName, MiddleName and LastName when Clicked WPF C#?
- using StaticResource in hijacked Style causes Crash
- C# WPF DataGrid column header style error Cannot find source: RelativeSource FindAncestor
- XAML Toolkit MaterialDesign Button Override issue
- How can I create a TextBox that contains three other TextBoxes to collect date, month and year from the user respectively in WPF?
- WPF Material Design how to change icon and press color of ComboBox icon?
- WPF/C# MaterialDesignInXAML, How to change badged button packicon content with datatrigger binding
- How do you modify the color of a highlighted Menu Item?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

The source code for the
DecimalUpDowncontrol is available on GitHub.Here you will also find the default template that you can customize however you want.