Ribbon FontSizeComboBox, entering a value goes wrong

Ribbon for WPF Forum

Posted 9 years ago by Arthur Damen
Version: 11.2.0545
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
Avatar
I am using a Fontsizecombobox to let the user select a fontsize.
But when the user enters a value manually, it is skipped ????


Private Sub FontFontSizeChanged(ByVal sender As Object, ByVal e As System.Windows.Controls.SelectionChangedEventArgs)
On Error Resume Next
Dim FontS as double= Format_FontFontSize.SelectedValue
End Sub

<ribbon:FontSizeComboBox Name="Format_FontFontSize" SelectionChanged="FontFontSizeChanged" Width="40" />

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Arthur,

I don't believe SelectionChanged fires on text changes, only on dropdown clicks. You'd probably want to instead wire up a command and handle the command execute as that will fire whenever the value changes.


Actipro Software Support

The latest build of this product (v2020.1.1) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.