Skip to content
Discussion options

You must be logged in to vote

Hi 🖐,

There is many way to do it. The basic way to do it is to create a user control :

RangeDatePicker.xaml

<ContentControl x:Class="Wpf_Test.RangeDatePicker"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                Width="400">
    <StackPanel Orientation="{Binding Position}">
        <DatePicker SelectedDate="{Binding StartDate, Mode=TwoWay}" Height="30" Style="{StaticResource DatePickerExtend}"/>
        <DatePicker SelectedDate="{Binding EndDate, Mode=TwoWay}" Height="30" Style="{StaticResource DatePickerExtend}"/>
    </StackPanel>
</ContentControl>

RangeDatePicker.xaml.cs

p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MasterBran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants