Hi Telerik Team.
I'm using Rad Controls For Silverlight Q3 2010 SP1
I have a Textbox, a RadButton. How can I implement:
- When Click the Button show FontPropertiesDialog, and after this dialog close, the Textbox display Font, Font Style, Size I've just choosed.
- When I reclick the Button, show FontPropertiesDialog with Properties: font, font style, size display the result in textbox
My code behind:
But oFontDialog.FontStyle is Normal. I need get string: "11;Arial;Bold"
Thanks for your advises
I'm using Rad Controls For Silverlight Q3 2010 SP1
I have a Textbox, a RadButton. How can I implement:
- When Click the Button show FontPropertiesDialog, and after this dialog close, the Textbox display Font, Font Style, Size I've just choosed.
- When I reclick the Button, show FontPropertiesDialog with Properties: font, font style, size display the result in textbox
My code behind:
Private
WithEvents oFontDialog As FontPropertiesDialog
Private Sub FontButton_Click(sender As System.Object, e As System.Windows.RoutedEventArgs)
Dim btnFontSelectButton As RadButton = TryCast(sender, RadButton)
oFontDialog =
New FontPropertiesDialog()
AddHandler oFontDialog.Closed, AddressOf FontDialog_Closed
oFontDialog.ShowDialog()
End Sub
Private
Sub FontDialog_Closed(sender As Object, e As Telerik.Windows.Controls.WindowClosedEventArgs)
Dim bResult As Nullable(Of Boolean) = e.DialogResult
If bResult Then
With oFontDialog
txtCompanyNameFont.Text = .FontSize.ToString &
";" & .FontStyle.ToString
End With
End If
End Sub
But oFontDialog.FontStyle is Normal. I need get string: "11;Arial;Bold"
Thanks for your advises