Telerik Forums
UI for WPF Forum
1 answer
91 views

I´m trying to set styling on RichTextBox, but no styling is applied. Telerik styling is not supported for RichTextBox?

My code example:

<Window x:Class="Richtextboxstyling.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <RichTextBox  telerik:StyleManager.Theme="Office_Silver"
                     Height="140"
                     VerticalScrollBarVisibility="Auto" 
                     HorizontalAlignment="Stretch" 
                     VerticalAlignment="Stretch"  />
    </Grid>
</Window>

Iva Toteva
Telerik team
 answered on 10 Mar 2011
1 answer
70 views
Good morning,

I'm currently looking quite closely at the WPF RichTextBox in regards of using it in a project for a customer, but I know some of its users are actively using images in their documents and placing them 'freely' in the document (as in not only aligned left/center/right) etc, but using Word's textflow, margins etc options to keep images inline with the text.

Is anything like that planned for the RadRichTextbox?

All the best,
-Jörg
Iva Toteva
Telerik team
 answered on 10 Mar 2011
3 answers
311 views

I have a Prism app which uses the BackGroundWorker for loading data into a DataTable and then binding the DataTable.DefaultView to the ItemSource of a RadGridView.  Often when I start the application, I get blank rows added into the grid.  Any idea why I get blank rows when I run the application sometimes but see actual data other times?  See XAML below:

<UserControl x:Class="OrganizationalUnitModule.Views.OUList"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:my="clr-namespace:OrganizationalUnitModule.Presenter"
             xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
             xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.DataContext>
        <my:OUListBWPresenter/>
    </UserControl.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="80"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="600"/>
        </Grid.RowDefinitions>
        <Border Grid.Row="0" Margin="0,0,0,0" VerticalAlignment="Top" Height="80" Width="Auto">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                    <GradientStop Color="#FFEEF3EB" Offset="1"/>
                    <GradientStop Color="#FF0B72B4"/>
                    <GradientStop Color="#FF549BC5" Offset="0.323"/>
                    <GradientStop Color="#FFA4C9D8" Offset="0.677"/>
                </LinearGradientBrush>
            </Border.Background>
        </Border>
  
        <Border Grid.Row="1" Margin="0,0,0,0" VerticalAlignment="Top" Height="40" Width="Auto">
            <StackPanel Orientation="Horizontal">
                <telerikControls:RadButton Content="Mode" Height="30" Width="80" Margin="15,5,0,5"/>
                <telerikControls:RadButton Content="Load" Height="30" Width="80" Margin="15,5,0,5"  Command="{Binding LoadCommand}" />
                <telerikControls:RadButton Content="Cancel" Height="30" Width="80" Margin="15,5,0,5"  Command="{Binding CancelCommand}" />
            </StackPanel>
        </Border>
  
        <Border Grid.Row="2" Margin="12,12,10,12">
            <telerik:RadGridView x:Name="OUGridView" AutoGenerateColumns="True"
                             ItemsSource="{Binding Path=OrganizationalUnitsDT.DefaultView}"
                             IsBusy="false" Grid.Row="2" SelectionMode="Multiple" Margin="0,0,0,0"
                             Height="Auto" Width="Auto" >
            </telerik:RadGridView>
                    </Border>
    </Grid>
</UserControl>

Vlad
Telerik team
 answered on 10 Mar 2011
2 answers
77 views
I can occasionally have SeriesMappings that I want to use a separate object to provide my data source.

My app is fairly heavy on charts and data and has pretty decent viewmodels for the charts. We bind directly to different objects for our current charting engines DataSeries.  Since the datasources can be swapped several objects below (but all INotify) we avoid alot of wiring.
Joel
Top achievements
Rank 1
 answered on 10 Mar 2011
1 answer
116 views
Hi,

I would like to implemement a command (a button) to scroll automatically to a timeslot.

Here is my scenario : I
enter a timeslot (for exemple 9:00 PM) from the GUI, I click on the button and the scheduleview automatically scrolls to the timeslot.

Are there mechanisms that allow to scroll to a timeslot?

Regards.
C.Léoni.
Valeri Hristov
Telerik team
 answered on 09 Mar 2011
3 answers
130 views
I´m using RadDocking. In one RadPane is GridView, in second ScheduleView. I use dragging items from GridView for reordering rows in GridView according to demo "GridView - Reorder rows". I´m using version 2010.3.1314.35
When I drag GridViewRow over ScheduleView, NullReferrence exeption appears. I think, it´s a bug. See attached printscreens for more information.

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.ScheduleView
  StackTrace:
       at Telerik.Windows.Controls.DefaultDragDropBehavior.GetDragDropState(Object payload, IDataObject dragDataObject, IEnumerable destinationAppointmentsSource, IServiceProvider serviceProvider) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\DefaultDragDropBehavior.cs:line 43
       at Telerik.Windows.Controls.DragDropHelper.GetStateForDragDrop(Object payload, DataObject dropDataObject, Point relativeDragPoint) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\Helpers\DragDropHelper.cs:line 660
       at Telerik.Windows.Controls.DragDropHelper.OnDropQuery(Object sender, DragDropQueryEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\Helpers\DragDropHelper.cs:line 402
       at Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragDropQueryEventArgs.cs:line 50
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.DragDropProvider_DropQuery(Object sender, DragDropEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\RadDragAndDropManager.cs:line 314
       at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDropQuery() in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\DragDropProviderBase.cs:line 182
       at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnRealDrag(IMouseEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\SimulatedDragDropProvider.cs:line 469
       at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseMoveInternal(IMouseEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\SimulatedDragDropProvider.cs:line 361
       at Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.OnCoverRectangleMouseMove(Object sender, MouseEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\WPFSimulatedDragDropProvider.cs:line 380
       at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at Administration2010.App.Main() in D:\ZSVNN\Administration2010\Administration2010\obj\x86\Debug\App.g.cs:line 50
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:
Valeri Hristov
Telerik team
 answered on 09 Mar 2011
1 answer
92 views

Hi,
When I am trying to add WPF controls to my tool box the whole visual studio is close..

 

How can we resolve this problem?

 

Thanks in advance

Ivan Ivanov
Telerik team
 answered on 09 Mar 2011
5 answers
160 views
Ordinarily, if I hide/show an element containing a RadGridView, when I show it the first time, it takes around a half second to initialize, but when I show it a second time it appears almost instantaneously.

Unless I put it in a Popup, as I discovered when trying to implement a ComboBox-like UserControl.  Then it initializes every time the Popup is displayed.  The RadGridView in this example is bound to a collection containing three strings, and it takes about a half second to display every time I click on the ToggleButton:

        <DockPanel>
            <ToggleButton DockPanel.Dock="Top"
                            x:Name="Toggle">Show/Hide</ToggleButton>
                
            <Popup IsOpen="{Binding ElementName=Toggle, Path=IsChecked}"
                    Placement="Bottom">
                <Controls:RadGridView ItemsSource="{Binding Strings}"
                                        ShowGroupPanel="False"
                                        AutoGenerateColumns="False">
                    <Controls:RadGridView.Columns>
                        <Controls:GridViewDataColumn IsFilterable="False"
                                                        IsGroupable="False"
                                                        IsReadOnly="True"
                                                        SortingState="Ascending"
                                                        Header="String"
                                                        DataMemberBinding="{Binding}" />
                    </Controls:RadGridView.Columns>
                </Controls:RadGridView>
            </Popup>
        </DockPanel>

Is there something I can do to get around this?  I'd really like to avoid having to go back to using a ListView in my control.

Thanks,

Robert
Kais
Top achievements
Rank 1
 answered on 09 Mar 2011
2 answers
157 views
Hello there,

another feature item I just came across is 'custom styles', as predefined styles (known from Word (font/size/color, indentation, bullet list (if applicable), margins etc), defined & stored/loaded in/from the doc upon saving/loading) which doesn't seem to be supported at the moment.

Is this feature planned?

All the best,
-Jörg B.
Iva Toteva
Telerik team
 answered on 09 Mar 2011
1 answer
130 views
So i have points Data that have two members YValue and Axis Label.
i have multiple series. for each series i set the mapping as such

seriesmapping.SeriesDefinition = GetSeriesType(series.SeriesType);// right now all are line charts
            seriesmapping.CollectionIndex =index;
    ItemMapping itemMapping = new ItemMapping();
            itemMapping.DataPointMember = DataPointMember.YValue;
            itemMapping.FieldName = "YValue";
            return itemMapping;
    seriesmapping.ItemMappings.Add(ItemMapping);

Now for the labels i am taking the following approach. i tried keeping this binding for only the first series. then bind to every series
//ItemMapping itemMapping = new ItemMapping();
                //itemMapping.DataPointMember = DataPointMember.Label;// i tried both this and X category
                //itemMapping.FieldName = "AxisLabel";
                //seriesmapping.ItemMappings.Add(itemMapping);

with one series the labels work (i have other issues but they are mentioned in my last question). but adding multiple series and trying to bind the labels it does not work . what am i doing wrong.

Also. i dont want display certain points. these points i have as NAN. but you guys graph that and makes my graph look awful. is there anyway i can not display NAN.
Missing User
 answered on 09 Mar 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?