Posted 15 years ago
by Bernhard Wahl
Version: 9.2.0512
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
xaml code
<Editors:Int32EditBox x:Name="AmountTextBox"
Focusable="true"
Minimum="0"
Maximum="{Binding Path=MaxAmountValue, Source={StaticResource inventoryWindowViewModel}}"
IsNullAllowed="true"
IsNullContentVisible="False"
PromptIndicatorVisibility="Never"
Grid.Row="4" Grid.Column="1"
Height="{Binding ActualHeight, ElementName=comboBox, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}"
Style="{StaticResource positioningStyle}"
Value="{Binding Path=Amount, Source={StaticResource inventoryWindowViewModel}, UpdateSourceTrigger=PropertyChanged}">
</Editors:Int32EditBox>
code behind
{
Loaded += OnLoaded;
AmountTextBox.Loaded += OnLoaded;
}
private void OnLoaded(object sender, RoutedEventArgs args)
{
Dispatcher.BeginInvoke(DispatcherPriority.Normal, (DispatcherOperationCallback)
delegate
{
return AmountTextBox.Focus();
}, null);
}
I'm using the int32edit box and it works fine, but i didn't get a visual response if the editbox is focused or not, i can see the cursor, why not? I snooped into the control and check out that the int32editbox has the focus but didn't tunnel the focus to the maskedtextbox ('PART_MaskedTextBox') in the int32editbox.Template!
Please fix this
<Editors:Int32EditBox x:Name="AmountTextBox"
Focusable="true"
Minimum="0"
Maximum="{Binding Path=MaxAmountValue, Source={StaticResource inventoryWindowViewModel}}"
IsNullAllowed="true"
IsNullContentVisible="False"
PromptIndicatorVisibility="Never"
Grid.Row="4" Grid.Column="1"
Height="{Binding ActualHeight, ElementName=comboBox, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}"
Style="{StaticResource positioningStyle}"
Value="{Binding Path=Amount, Source={StaticResource inventoryWindowViewModel}, UpdateSourceTrigger=PropertyChanged}">
</Editors:Int32EditBox>
code behind
{
Loaded += OnLoaded;
AmountTextBox.Loaded += OnLoaded;
}
private void OnLoaded(object sender, RoutedEventArgs args)
{
Dispatcher.BeginInvoke(DispatcherPriority.Normal, (DispatcherOperationCallback)
delegate
{
return AmountTextBox.Focus();
}, null);
}
I'm using the int32edit box and it works fine, but i didn't get a visual response if the editbox is focused or not, i can see the cursor, why not? I snooped into the control and check out that the int32editbox has the focus but didn't tunnel the focus to the maskedtextbox ('PART_MaskedTextBox') in the int32editbox.Template!
Please fix this