or
| void RadGridView1_KeyDown(object sender, KeyEventArgs e) |
| { |
| if (e.Key == Key.Decimal) |
| { |
| e.Handled = true; |
| e.Source = "2"; // ==> error |
| } |
| if (e.Key == Key.OemComma) |
| { |
| e.Handled = true; |
| } |
| if (e.Key == Key.OemPeriod) |
| { |
| e.Handled = true; |
| } |
| } |
| <telerik:RadDocking.DocumentHost> |
| <telerik:RadSplitContainer> |
| <telerik:RadPaneGroup> |
| <telerik:RadPane Header="Browser" CanFloat="False"> |
| <Grid x:Name="grdBrowser" Margin="0"> |
| <StackPanel HorizontalAlignment="Stretch" Margin="6" Name="stackPanel1" VerticalAlignment="Stretch"> |
| <StackPanel Name="stackPanel2" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Stretch"> |
| <Button x:Name="btnWebPrev" HorizontalAlignment="Left" Height="34" Style="{DynamicResource stylePreviousButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/> |
| <Button x:Name="btnWebNext" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleNextButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/> |
| <TextBox Height="23" x:Name="txtWebURL" Width="519" /> |
| <Button x:Name="btnWebSearch" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleSearchButton}" VerticalAlignment="Top" Width="34" Cursor="Hand" Click="btnWebSearch_Click"/> |
| <Button x:Name="btnWebStop" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleStopButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/> |
| <Button x:Name="btnWebRefresh" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleRefreshButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/> |
| <Button x:Name="btnWebAddSource" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleAddSourceButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/> |
| </StackPanel> |
| <WebBrowser Height="603" x:Name="webBrowser" /> |
| <StackPanel Name="stackPanel3" Orientation="Horizontal"> |
| <Label Content="Label" Height="28" Name="lblStatus" /> |
| </StackPanel> |
| </StackPanel> |
| </Grid> |
| </telerik:RadPane> |
| </telerik:RadPaneGroup> |
| </telerik:RadSplitContainer> |
| </telerik:RadDocking.DocumentHost> |
| foreach (LJSDataSet.LJ_DBRow row in dbNew.LJ_DB.Rows) |
| { |
| StackPanel pan = new StackPanel(); |
| TextBlock tb1 = new TextBlock(); |
| TextBlock tb2 = new TextBlock(); |
| tb1.Width = 130; |
| tb1.Text = row.DBNAME; |
| tb2.Width = 90; |
| tb2.Text = row.DBSERV; |
| pan.Orientation = Orientation.Horizontal; |
| pan.Children.Add(tb1); |
| pan.Children.Add(tb2); |
| this.comboDB.Items.Add(pan); |
| } |
| <telerik:RadDatePicker Grid.Row="4" Grid.Column="1" Name="DatePlanned" |
| SelectedDate="{Binding SelectedDatePlanned, Mode=TwoWay}" > |
| <telerik:RadDatePicker.MonthViewStyle> |
| <Style> |
| <Setter Property="Control.FontSize" Value="16" /> |
| </Style> |
| </telerik:RadDatePicker.MonthViewStyle> |
| </telerik:RadDatePicker> |
