Skip to main content

All Questions

Tagged with
-1 votes
1 answer
52 views

How do I dynamically change the stringformat of a datepicker (WPF, c#)?

I have this datepicker element: <DatePicker Name="DataSelected" Grid.Column="1" Grid.Row="2" ...
Kristina Tamaro's user avatar
0 votes
1 answer
30 views

Custom DatePicker: how can I change icon image and open the popup clicking on TextBox on codebehind?

Here's my Custom DatePicker: <customcontrols:CustomDatePicker x:Name="DataCreazione" SelectedDate="{Binding DataCreazione, StringFormat={}{0:dd/MM/...
markzzz's user avatar
  • 47.4k
1 vote
1 answer
151 views

WPF DatePicker Date-Validation after Enter key pressed

I have set an InputBinding in a WPF application, along with a DatePicker and a TextBox. When I press the Enter key while the focus is not on the DatePicker, my KeyBinding Event is triggered. When the ...
cypric's user avatar
  • 19
-2 votes
1 answer
57 views

C# WPF Update the blackoutDates in DatePickers

I'm writing a C# WPF application for a kiosk (so a long-time running app). In the main window there are two DatePickers that must select only today and future days. So I checked the BlackoutDate ...
SteMMo's user avatar
  • 408
0 votes
1 answer
117 views

Change the inner textbox 'mouse over' color of the MaterialDesign DatePicker in WPF

Can i change DatePicker's TextBox underline and calender icon color? like below : enter image description here <DatePicker materialDesign:HintAssist.Hint="...
Rolang's user avatar
  • 13
-1 votes
1 answer
86 views

DatePicker Template, Binding to SelectedDate not Working

I'm trying to change the DatePicker template. I almost made the design with the help of Custom Control. But not only did I spend 2 days of my life on this, it also does not work incorrectly. The ...
Zero Indefined's user avatar
1 vote
1 answer
336 views

How to get the output of a wpf datepicker selected date in a specific text format c#?

I have a SQLite database table with multiple columns. The model representing that looks something like this public class Bills : ViewModelBase { private int _id; public int Id { ...
Tamal Banerjee's user avatar
-1 votes
1 answer
124 views

How to make background transparent in WPF DatePicker

I am trying to make a DatePicker background transparent in wpf but I can't get rid of this white line. Does any one knows how it is called so I can make it transparent? I painted background blue and ...
Jocast80's user avatar
0 votes
1 answer
1k views

WPF DatePicker Custom Format

As mentioned I am looking to customize the datepicker dates to YYYY-MM-DD I have in my XAML file: <DatePicker x:Name="DatePicker_Date" Width="300px" VerticalAlignment="...
Mufacka's user avatar
  • 257
0 votes
1 answer
1k views

XAML-Creating a TimePicker with TextBox

While working on my Wpf project, I need to make a time picker (a simple textbox with a separator on which the user can write HH:mm:ss). I already did one, but the problem is that the separators are ...
Scoops's user avatar
  • 46
0 votes
0 answers
196 views

Change DatePickerTextBox value

Hello I changed the value of the DatePicketTextBox : <DatePicker Grid.Column="3" Grid.Row="1" SelectedDate="{Binding Order.DateIn, Mode=TwoWay}"...
user7849697's user avatar
0 votes
1 answer
1k views

How can I add specific blackout dates in datepicker c# wpf?

I'm using a Datepicker and I would like to add specific dates as blackout dates , the problem is that this property forces the add only with Calendar Range , Is there any possibility to add days ...
abdou93's user avatar
  • 165
0 votes
1 answer
4k views

Change the appearence of the MaterialDesign DatePicker in WPF

I'm using WPF Is it possible to edit the entire template for the DatePicker? I want to change some colors but I cannot find where this properties are I've tried using the next code, but it only ...
Yair Briones's user avatar
0 votes
1 answer
360 views

Change date color from a material DataPicker in WPF

I´m a little new using WPF, and i´m implementing the MaterialDesing library. I want to change the color of certain propierties of a DataPicker but cannot find where to do that. Specially the container ...
Yair Briones's user avatar
0 votes
1 answer
272 views

WPF Custom Event Handler

I have implemented the code for DatePicker https://github.com/cmyksvoll/HighlightDatePicker but I cannot use SelectedDateChanged in WPF with the error ArgumentException: Cannot bind to the target ...
michal's user avatar
  • 163

15 30 50 per page
1
2 3 4 5
27