Skip to content

Commit

Permalink
Rename IsConfirmButtonShow to ShowConfirmButton
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost1372 committed Dec 17, 2024
1 parent 29eeb7b commit edd6b92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ public Style ConfirmButtonStyle
public static readonly DependencyProperty ConfirmButtonStyleProperty =
DependencyProperty.Register(nameof(ConfirmButtonStyle), typeof(Style), typeof(DateTimePicker), new PropertyMetadata(default(Style)));

public bool IsConfirmButtonShow
public bool ShowConfirmButton
{
get { return (bool)GetValue(IsConfirmButtonShowProperty); }
set { SetValue(IsConfirmButtonShowProperty, value); }
get { return (bool)GetValue(ShowConfirmButtonProperty); }
set { SetValue(ShowConfirmButtonProperty, value); }
}

public static readonly DependencyProperty IsConfirmButtonShowProperty =
DependencyProperty.Register(nameof(IsConfirmButtonShow), typeof(bool), typeof(DateTimePicker), new PropertyMetadata(true));
public static readonly DependencyProperty ShowConfirmButtonProperty =
DependencyProperty.Register(nameof(ShowConfirmButton), typeof(bool), typeof(DateTimePicker), new PropertyMetadata(true));

public TimeSpan? SelectedTime
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
Tag="Bottom"
Unchecked="RadioButton_Checked" />
</RadioButtons>
<ToggleSwitch x:Name="IsConfirmButtonShow"
Header="IsConfirmButtonShow"
<ToggleSwitch x:Name="ShowConfirmButton"
Header="ShowConfirmButton"
IsOn="True" />
<TextBox x:Name="TxtConfirm"
Header="Confirm Button Content"
Expand All @@ -53,7 +53,7 @@
ConfirmButtonContent="{x:Bind TxtConfirm.Text, Mode=OneWay}"
Description="Choose your Date and Time from CalendarView and TimePicker"
Header="Select a Date and Time"
IsConfirmButtonShow="{x:Bind IsConfirmButtonShow.IsOn, Mode=OneWay}" />
ShowConfirmButton="{x:Bind ShowConfirmButton.IsOn, Mode=OneWay}" />
</local:ControlExample>
</StackPanel>
</ScrollViewer>
Expand Down

0 comments on commit edd6b92

Please sign in to comment.