Telerik Forums
UI for WPF Forum
4 answers
375 views
Hello Telerik Team
I need a example to add programmatically subitems to your  wpf controls example of section "appearance -> Customization".
I try to follow your databind example. 
My steps was 
I Create a menuitem class and all of styles like your example
then i add 
<HierarchicalDataTemplate x:Key="MenuItemTemplate"
                                  ItemsSource="{Binding SubItems}">
            <TextBlock Text="{Binding Text}" />
        </HierarchicalDataTemplate>
after that i add the radmenu
<telerik:RadMenu x:Name="RadMenu"  ItemTemplate="{StaticResource MenuItemTemplate}"  Style="{StaticResource MenuStyle}" Grid.Row="1"   ItemContainerStyleSelector="{StaticResource MainWindowItemStyleSelector}" ItemContainerStyle="{x:Null}"  BorderThickness="0" Margin="30,0,0,0" ItemClick="OnRadMenuItemClick">
       
All its fine until here  but when i add ItemContainerStyleSelector="{StaticResource MainWindowItemStyleSelector}"
then subitems disappear can explain me what happend? 


Thanks
Sujiyama
Top achievements
Rank 1
 answered on 19 Feb 2013
1 answer
120 views
Hello!

I use RadBook with FixedDocumentSinglePagePresenter to show pdf documents, it works fine but I have problem: I want to handle clicks on links inside pdf, these links are internal. I know that FixedDocumentSinglePagePresenter can't handle clicks on links yourself, so I have to do it manually. I checked class RadFixedDocument and found that it have property Annotations that contains list of links with coords and sizes. It is good but problem is that I can't find info about link's desinations: each item has empty fields Action and Destination. Is there way to determine destination for internal links?
P.S. I tested on this pdf: http://compositewpf.codeplex.com/downloads/get/166638#
Petya
Telerik team
 answered on 19 Feb 2013
5 answers
295 views
Hello, I'm using Q3 WPF components for the framework 4.
I'm currently switching the app theme dynamically by clearing the merged dictionnay re-adding:
"/Telerik.Windows.Themes.ThemName;component/Themes/System.Windows.xaml"
"/Telerik.Windows.Themes.ThemName;component/Themes/System.Controls.xaml"
"/Telerik.Windows.Themes.
ThemName;component/Themes/System.Controls.Docking.xaml"
"/Telerik.Windows.Themes.
ThemName;component/Themes/System.Controls.GridView.xaml"
"/Telerik.Windows.Themes.
ThemName;component/Themes/System.Navigation.xaml"
"/Telerik.Windows.Themes.ThemName;component/Themes/System.Data.xaml"
"/Telerik.Windows.Themes.ThemName;component/Themes/System.Controls.RibbonView.xaml"

I'm working on a new user control which works fine with all themes, but as soon as I switch to Expression Dark I get the following:
System.Windows.Markup.XamlParseException was unhandled
      Message=Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.
      Source=PresentationFramework
      ....     ...
      Message=Cannot find resource named 'TextBoxBorder_Disabled'. 

(Sorry for the lengthy error...) 
I would greatly appreciate any hint...
here's the whole thing:


System.Windows.Markup.XamlParseException was unhandled
  Message=Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.
  Source=PresentationFramework
  LineNumber=0
  LinePosition=0
  StackTrace:
       at System.Windows.Markup.XamlReader.RewrapException(Exception e, Uri baseUri)
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
       at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
       at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
       at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
       at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
       at System.Windows.FrameworkElement.ApplyTemplate()
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       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.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, 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.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(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.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at ABC_WPF.Application.Main() in C:\Users\Arie\Documents\Visual Studio 2010\Projects\ABC_WPF\VirtualINV12_WPF\obj\x86\Debug\Application.g.vb:line 74
       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: 
       Message=Cannot find resource named 'TextBoxBorder_Disabled'. Resource names are case sensitive.
       Source=PresentationFramework
       StackTrace:
            at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
            at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
            at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
       InnerException: 





 

Siddharth
Top achievements
Rank 1
 answered on 19 Feb 2013
6 answers
533 views
Hello.

I have a gridView with column. I need to change column template in run-time. I create CellTemplateSelector, but my cell template is not updating. Grid cell template is changing when I scroll the gridView. What is wrong?

        <convertors:TrendConverter x:Key="TrendConverter" />
        <convertors:ConditionalDataTemplateSelector x:Key="selector" ConditionConverter="{StaticResource TrendConverter}">
            <convertors:ConditionalDataTemplateSelector.Rules>
                <convertors:ConditionalDataTemplateRule DataTemplate="{StaticResource d1}">
                    <convertors:ConditionalDataTemplateRule.Value>
                        <sys:Int32>0</sys:Int32>
                    </convertors:ConditionalDataTemplateRule.Value>
                </convertors:ConditionalDataTemplateRule>
                <convertors:ConditionalDataTemplateRule DataTemplate="{StaticResource d2}">
                    <convertors:ConditionalDataTemplateRule.Value>
                        <sys:Int32>1</sys:Int32>
                    </convertors:ConditionalDataTemplateRule.Value>
                </convertors:ConditionalDataTemplateRule>
                <convertors:ConditionalDataTemplateRule DataTemplate="{StaticResource d3}">
                    <convertors:ConditionalDataTemplateRule.Value>
                        <sys:Int32>-1</sys:Int32>
                    </convertors:ConditionalDataTemplateRule.Value>
                </convertors:ConditionalDataTemplateRule>
            </convertors:ConditionalDataTemplateSelector.Rules>
        </convertors:ConditionalDataTemplateSelector>
 
<telerik:GridViewDataColumn Header="Посл." UniqueName="TrendValue" DataMemberBinding="{Binding Path=Trend}" Style="{DynamicResource GridViewDataColumnIntegerStyle}" CellTemplateSelector="{StaticResource selector}">

Thanks
trinh
Top achievements
Rank 1
 answered on 19 Feb 2013
1 answer
109 views
Hello,

We recently acquired a license to Telerik DevCraftUI Edition package.
We are using Telerik RadMap control. The control itself uses custom tiles provider and server to fetch the tiles from sqlite database.
Recently we got a feature request to let users delete the tile for example from the context menu.
I want to check with the support team if RadMap supports only ready-only (just getting and displaying tiles) communication with the server.
I can see that HttpRequest to get tile are initiated by Telerik.Windows.Controls.Map.TilesDownloader. I understand that is done by the control itself behind the scenes. My question is can the control (RadMap) issue POST requests and is there a class in the Telerik.Windows.Controls.Map namespace that can do that?

Anna Yudkovsky.
Sr Software Engineer.
Andrey
Telerik team
 answered on 19 Feb 2013
3 answers
114 views
I use `RowValidating` event for `RadGridView`. It works fine with regular rows, but new row is not getting red when I set `e.IsValid = false;` However, error message displays properly.
What should I do to get it working?
Yoan
Telerik team
 answered on 19 Feb 2013
5 answers
158 views

An ArgumentNullException is thrown when editing items in a “grouped” grid.
It’s easily reproducible with a small WPF application containing the following files:

MainWindow.xaml

<Window x:Class="gridgroupingbug.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <StackPanel>
        <telerik:RadGridView
                            x:Name="_iniEntriesGrid"
                            ItemsSource="{Binding Path=IniEntryModels}"
                            SelectedItem="{Binding Path=SelectedIniEntry, Mode=TwoWay}"
                            AutoGenerateColumns="False"
                            AutoExpandGroups="True"
                            CanUserInsertRows="True">
            <telerik:RadGridView.GroupDescriptors>
                <telerik:GroupDescriptor Member="Scope" SortDirection="Ascending" />
                <telerik:GroupDescriptor Member="SectionName" SortDirection="Ascending" />
            </telerik:RadGridView.GroupDescriptors>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Scope}" Header="Scope" Width="3*"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=SectionName}" Header="Section" Width="3*"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Key}" Header="Key" Width="4*"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <Button Click="AddClicked">AddLine</Button>
    </StackPanel>
</Window>

MainWindow.xaml.cs

using System.Collections.ObjectModel;
using System.Globalization;
using System.Windows;
namespace gridgroupingbug
{
    public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
            IniEntryModels = new ObservableCollection<IniEntryModel>();
            _iniEntriesGrid.DataContext = this;
            for (var i = 0; i < 2; i++)
            {
                IniEntryModels.Add(new IniEntryModel
                    {
                        Key = i.ToString(CultureInfo.InvariantCulture),
                        Scope = "MyScope1",
                        SectionName = "SomeSection",
                    });
            }
        }
        public ObservableCollection<IniEntryModel> IniEntryModels { get; private set; }
        private void AddClicked(object sender, RoutedEventArgs e)
        {
            IniEntryModels.Add(new IniEntryModel());
        }
    }
    public class IniEntryModel
    {
        public string Scope { get; set; }
        public string SectionName { get; set; }
        public string Key { get; set; }
    }
}

Telerik version: 2012.3.1129.40

Steps to reproduce:

  1.       Make sure you have at least two levels of grouping set in the grid (in our example, the first two columns)
  2.       Add a new item to the list bound to the grid’s ItemsSource (in our example, IniEntryModel)
  3.       Edit the newly added line (any column)
  4.       Move the focus to somewhere out of the grid (click in the button, for example), and an Exception is thrown.

Exception/Stack Trace:
System.ArgumentNullException was unhandled

  HResult=-2147467261

  Message=Value cannot be null.

Parameter name: element

  Source=Telerik.Windows.Controls

  ParamName=element

  StackTrace:

       at Telerik.Windows.Controls.ParentOfTypeExtensions.<GetParents>d__0.MoveNext() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Extensions\ParentOfTypeExtensions.cs:line 74

       at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()

       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

       at Telerik.Windows.Controls.GridView.GridViewCell.HandlePendingEdit(UIElement focusedElement) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 1021

       at Telerik.Windows.Controls.GridView.GridViewCell.HandlePendingEditOnLostFocus() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 899

       at Telerik.Windows.Controls.GridView.GridViewCell.Editor_LostFocus(Object sender, RoutedEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 930

       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 System.Windows.Controls.Primitives.TextBoxBase.OnLostFocus(RoutedEventArgs e)

       at System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)

       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

       at System.Windows.Controls.TextBox.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

       at System.Windows.DependencyObject.ClearValueCommon(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata)

       at System.Windows.DependencyObject.ClearValue(DependencyPropertyKey key)

       at System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

       at System.Windows.Input.FocusManager.SetFocusedElement(DependencyObject element, IInputElement value)

       at System.Windows.Input.KeyboardNavigation.UpdateFocusedElement(DependencyObject focusTarget)

       at System.Windows.FrameworkElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e)

       at System.Windows.Input.KeyboardFocusChangedEventArgs.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.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)

       at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)

       at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)

       at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)

       at System.Windows.UIElement.Focus()

       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonDown(MouseButtonEventArgs e)

       at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)

       at System.Windows.Input.MouseButtonEventArgs.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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)

       at System.Windows.Input.MouseButtonEventArgs.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.LegacyInvokeImpl(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 gridgroupingbug.App.Main() in c:\lixo\gridgroupingbug\obj\Debug\App.g.cs:line 0

       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.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ThreadHelper.ThreadStart()

  InnerException:

Thanks!

PQ.

Maya
Telerik team
 answered on 19 Feb 2013
2 answers
226 views
Hello,

I have a program that uses the RtfFormatProvider.Import method.  This method is not able to extract the images embedded by Outlook rtf emails.

Steps to Replicate the problem.
1) Create a new Email in outlook.
2) Select Rich Text Format
3) Embed Image
...
(My program attempts the following...)
4) Retrieve RTF Text from email body.
5) Run RTFText through RtfFormatProvider.Import(string) method.
6) Display the generated RadDocument in a RadRichTextBox.

Result: Images are not visible.  Most likely due to the fact that outlook rtf doesn't list them as pictures, but as ole objects.

Is there any workaround or can this be placed on your todo list?

-Tayllor
Tayllor
Top achievements
Rank 2
 answered on 18 Feb 2013
0 answers
36 views
Hi everyone,

I would like to know if there is some way to create radio buttons styled like normal Windows buttons. Like the jquery: http://jqueryui.com/button/#radio

Thank you for your replies.
Patrik
Top achievements
Rank 1
 asked on 18 Feb 2013
15 answers
490 views
Hi

i just installed WPF Q3 2010, and tryed to create a new project.
The dropdown just below WPF settings is empty (guess i have to select installed version)
if i click on download button, it says no newer version found.
loading a simple online sample compiles and works as expected.
(WIN 7/64 Bit, VS 2010)

what i'm missing?

Missing User
 answered on 18 Feb 2013
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?