In XAML: 1 2 3 4 5 6 7 8 9 <Button Name="myComboBox" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" /> <ComboBox Name="myButton" Style="{StaticResource {x:Static ToolBar.ComboBoxStyleKey}}" /> <Button Name=”myComboBox” Style=”{StaticResource {x:Static ToolBar.ButtonStyleKey}}” /> <ComboBox Name=”myButton” Style=”{StaticResource {x:Static ToolBar.ComboBoxStyleKey}}” /> In code (C#): 1 2 3 4 5 myButton.Style = (Style)FindResource(ToolBar.ButtonStyleKey); myComboBox.Style […]
Continue reading…
C#
How to count the frequency of the words in a text
Here is the sample code wirtten in c#: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 using System; using System.IO; using […]
Continue reading…