|
|
|
@ -20,22 +20,22 @@ |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<StackPanel Margin="18" Spacing="4" Width="200"> |
|
|
|
<TextBlock FontSize="16" Text="Simple Bindings"/> |
|
|
|
<TextBox PlaceholderText="Two Way" UseFloatingPlaceholderText="True" Text="{Binding Path=StringValue}" Name="first"/> |
|
|
|
<TextBox PlaceholderText="Two Way (LostFocus)" UseFloatingPlaceholderText="True" Text="{Binding Path=StringValue, UpdateSourceTrigger=LostFocus}"/> |
|
|
|
<TextBox PlaceholderText="One Way" UseFloatingPlaceholderText="True" Text="{Binding Path=StringValue, Mode=OneWay}"/> |
|
|
|
<TextBox PlaceholderText="One Time" UseFloatingPlaceholderText="True" Text="{Binding Path=StringValue, Mode=OneTime}"/> |
|
|
|
<TextBox PlaceholderText="Two Way" UseFloatingPlaceholder="True" Text="{Binding Path=StringValue}" Name="first"/> |
|
|
|
<TextBox PlaceholderText="Two Way (LostFocus)" UseFloatingPlaceholder="True" Text="{Binding Path=StringValue, UpdateSourceTrigger=LostFocus}"/> |
|
|
|
<TextBox PlaceholderText="One Way" UseFloatingPlaceholder="True" Text="{Binding Path=StringValue, Mode=OneWay}"/> |
|
|
|
<TextBox PlaceholderText="One Time" UseFloatingPlaceholder="True" Text="{Binding Path=StringValue, Mode=OneTime}"/> |
|
|
|
<!-- Removed due to #2983: reinstate when that's fixed. |
|
|
|
<TextBox Placeholder="One Way to Source" UseFloatingPlaceholder="True" Text="{Binding Path=StringValue, Mode=OneWayToSource}"/> |
|
|
|
--> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Margin="18" Spacing="4" Width="200"> |
|
|
|
<TextBlock FontSize="16" Text="Collection Bindings"/> |
|
|
|
<TextBox PlaceholderText="Items[1].Value" UseFloatingPlaceholderText="True" Text="{Binding Path=Items[1].Value}"/> |
|
|
|
<TextBox PlaceholderText="Items[1].Value" UseFloatingPlaceholder="True" Text="{Binding Path=Items[1].Value}"/> |
|
|
|
<Button Command="{Binding ShuffleItems}">Shuffle</Button> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Margin="18" Spacing="4" Width="200"> |
|
|
|
<TextBlock FontSize="16" Text="Negated Bindings"/> |
|
|
|
<TextBox PlaceholderText="Boolean String" UseFloatingPlaceholderText="True" Text="{Binding Path=BooleanString}"/> |
|
|
|
<TextBox PlaceholderText="Boolean String" UseFloatingPlaceholder="True" Text="{Binding Path=BooleanString}"/> |
|
|
|
<CheckBox IsChecked="{Binding !BooleanString}">!BooleanString</CheckBox> |
|
|
|
<CheckBox IsChecked="{Binding !!BooleanString}">!!BooleanString</CheckBox> |
|
|
|
</StackPanel> |
|
|
|
@ -43,17 +43,17 @@ |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<StackPanel Margin="18" Spacing="4" Width="200" HorizontalAlignment="Left"> |
|
|
|
<TextBlock FontSize="16" Text="Numeric Bindings"/> |
|
|
|
<TextBox PlaceholderText="Double" UseFloatingPlaceholderText="True" Text="{Binding Path=DoubleValue, Mode=TwoWay}"/> |
|
|
|
<TextBox PlaceholderText="Double" UseFloatingPlaceholder="True" Text="{Binding Path=DoubleValue, Mode=TwoWay}"/> |
|
|
|
<TextBlock Text="{Binding Path=DoubleValue}"/> |
|
|
|
<ProgressBar Maximum="10" Value="{Binding DoubleValue}"/> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Margin="18" Spacing="4" Width="200" HorizontalAlignment="Left"> |
|
|
|
<TextBlock FontSize="16" Text="Binding Sources"/> |
|
|
|
<TextBox PlaceholderText="Value of first TextBox" UseFloatingPlaceholderText="True" |
|
|
|
<TextBox PlaceholderText="Value of first TextBox" UseFloatingPlaceholder="True" |
|
|
|
Text="{Binding #first.Text, Mode=TwoWay}"/> |
|
|
|
<TextBox PlaceholderText="Value of SharedItem.StringValue" UseFloatingPlaceholderText="True" |
|
|
|
<TextBox PlaceholderText="Value of SharedItem.StringValue" UseFloatingPlaceholder="True" |
|
|
|
Text="{Binding Value, Source={StaticResource SharedItem}, Mode=TwoWay, DataType={x:Type vm:MainWindowViewModel+TestItem, x:TypeArguments=x:String}}"/> |
|
|
|
<TextBox PlaceholderText="Value of SharedItem.StringValue (duplicate)" UseFloatingPlaceholderText="True" |
|
|
|
<TextBox PlaceholderText="Value of SharedItem.StringValue (duplicate)" UseFloatingPlaceholder="True" |
|
|
|
Text="{Binding Value, Source={StaticResource SharedItem}, Mode=TwoWay, DataType={x:Type vm:MainWindowViewModel+TestItem, x:TypeArguments=x:String}}"/> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Margin="18" Spacing="4" Width="200" HorizontalAlignment="Left"> |
|
|
|
@ -93,17 +93,17 @@ |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<StackPanel Margin="18" Spacing="4" MinWidth="200" DataContext="{Binding ExceptionDataValidation}"> |
|
|
|
<TextBlock FontSize="16" Text="Exception Validation"/> |
|
|
|
<TextBox PlaceholderText="Less Than 10" UseFloatingPlaceholderText="True" Text="{Binding Path=LessThan10}"/> |
|
|
|
<TextBox PlaceholderText="Less Than 10" UseFloatingPlaceholder="True" Text="{Binding Path=LessThan10}"/> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Margin="18" Spacing="4" MinWidth="200" DataContext="{Binding IndeiDataValidation}"> |
|
|
|
<TextBlock FontSize="16" Text="INotifyDataErrorInfo Validation"/> |
|
|
|
<TextBox PlaceholderText="Maximum" UseFloatingPlaceholderText="True" Text="{Binding Path=Maximum}"/> |
|
|
|
<TextBox PlaceholderText="Value" UseFloatingPlaceholderText="True" Text="{Binding Path=Value}"/> |
|
|
|
<TextBox PlaceholderText="Maximum" UseFloatingPlaceholder="True" Text="{Binding Path=Maximum}"/> |
|
|
|
<TextBox PlaceholderText="Value" UseFloatingPlaceholder="True" Text="{Binding Path=Value}"/> |
|
|
|
</StackPanel> |
|
|
|
<StackPanel Margin="18" Spacing="4" MinWidth="200" DataContext="{Binding DataAnnotationsValidation}"> |
|
|
|
<TextBlock FontSize="16" Text="Data Annotations Validation"/> |
|
|
|
<TextBox PlaceholderText="Phone #" UseFloatingPlaceholderText="True" Text="{Binding PhoneNumber}"/> |
|
|
|
<TextBox PlaceholderText="Less Than 10" UseFloatingPlaceholderText="True" Text="{Binding Path=LessThan10}"/> |
|
|
|
<TextBox PlaceholderText="Phone #" UseFloatingPlaceholder="True" Text="{Binding PhoneNumber}"/> |
|
|
|
<TextBox PlaceholderText="Less Than 10" UseFloatingPlaceholder="True" Text="{Binding Path=LessThan10}"/> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</TabItem> |
|
|
|
|