mardi 30 juin 2020

UWP 10 XAML Strikeout Content in Checkbox

I am Building a To-Do-List App and want to strikeout the Content in my Checkbox if it is Checked. But i dont know how. Can maybe someone help me?

<StackPanel Orientation="Horizontal">
                            <CheckBox x:Name="checkBoxToDo" 
                                      IsChecked="{Binding istErledigt, Mode=TwoWay}"
                                      Content="{Binding ToDoName}"  />
                        </StackPanel>
internal class ToDoViewModel
   {
       public string ToDoName { get; set; }
       public bool istErledigt { get; set; }
   }
}



Aucun commentaire:

Enregistrer un commentaire