Telerik Forums
UI for WPF Forum
1 answer
114 views

Hi,

Is it possible to have different DragDropHighlightStyles on a ScheduleView.  I have two distinct types of appointments a user can drag onto the scheduleview and for one of those types - I don't want the standard yellow (with time) highlight style being used - but I do want it on the other type of appointment.  Is there any way I could achieve this behaviour?

Thanks.

Yana
Telerik team
 answered on 18 May 2016
2 answers
101 views

Hi,

I'm loading over a command (Async BackGroungWorker deleagte)  a view in a ContentControl via prisim regionmanager. 

I have to load some data in the view and want show a busy indicator. But it seems not so easy. I assume there's a pitfall with the sta thread. I must do the navigation request over the dispatcher thread. I use the InvokeOnUIThread() approach from the telerik example.

 

 

Sueleyman
Top achievements
Rank 1
 answered on 18 May 2016
1 answer
179 views

hi my friends

I have radbutton that send many emails with attachment to gmail

I put in radbutton click event

RadBusyIndicator.isBusy=true;

 

but not showing the RadBusyIndicator

I don't know why

 

Yana
Telerik team
 answered on 18 May 2016
8 answers
644 views

Hi,

I have the following scenario. I have a RadGridView with a ToolBar above, where the ToolBar contains a TextBox (Filter). The textbox is inside the tool bar's focus scope which is different from the main focus scope of the grid.

If I select a row, go to the filter text box in the tool bar and click on the grid without beginning edit or changing selection (for example on the selected row header) the keyboard focus is not transfered back to the gridview. This is programmed this way in GridViewRow.OnMouseLeftButtonDown.

On the other hand if I look at the TreeListViewRow instead of GridViewRow there is an explicit OnMouseDown-Handler which solves the problem for TreeListViews.

My question ist, why is it implemented this way for GridViewRows? A keyboard focus should always transfer on mouse down, even if the target element is the focused element in its focus scope.

Arthur

Maya
Telerik team
 answered on 18 May 2016
2 answers
247 views

I am getting this error on all of windows

 

System.Windows.Markup.XamlParseException
Set property 'System.Windows.ResourceDictionary.Source' threw an exception.
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   at System.Windows.Application.LoadComponent(Uri resourceLocator)
   at MS.Internal.Designer.PropertyEditing.Resources.PropertyInspectorResources.GetResources()
   at MS.Internal.Designer.PropertyEditing.PropertyInspectorHost.get_Host()
   at MS.Internal.Designer.VSDesigner.VSDesignerClientImpl.get_PropertyWindow()
   at MS.Internal.Designer.VSDesignerClient.get_PropertyWindow()
   at MS.Internal.Designer.DesignerPane.LoadDesignerView(Boolean isReload)

 
System.IO.FileNotFoundException
Could not load file or assembly 'Telerik.OpenAccess, Version=2013.2.702.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.
   at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
   at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
   at System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
   at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
   at MS.Internal.Resources.ContentFileHelper.GetContentFiles(Assembly asm)
   at MS.Internal.Resources.ContentFileHelper.IsContentFile(String partName)
   at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
   at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
   at System.Windows.ResourceDictionary.set_Source(Uri value)
   at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value)
   at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)

 

 

 

Magzhan
Top achievements
Rank 1
 answered on 18 May 2016
2 answers
299 views

I am working on a design where i have:

1. A radpane group consisting of 3 radpanes docked at left side.

2. A raddocument host consisting of 2 documentpanes docked at right side.

The left panes cannot be docked in the document host and vice versa. One of the requirements is to be able to view Doc1 and Doc2 panes side by side and the selected pane header should be highlighted and the other one should be greyed out. In default windows8 theme, both the Documentpanes' headers get highlighted so I used the following style:

    <Style TargetType="{x:Type telerik:RadDocumentPane}">
        <Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey={x:Static telerik:Windows8ResourceKey.AccentBrush}}"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Padding" Value="1" />
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Border x:Name="grid">
                        <ContentPresenter>
                            <ContentPresenter.Content>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Margin="6" Text="{TemplateBinding Content}" Foreground="{telerik:Windows8Resource ResourceKey={x:Static telerik:Windows8ResourceKey.MainBrush}}"/>
                                    <telerik:RadButton x:Name="RadPaneCloseButton" Background="{DynamicResource {x:Static telerik:Windows8ResourceKey.StrongBrush}}" Grid.Column="1" Command="telerik:RadDockingCommands.Close" IsBackgroundVisible="False" InnerCornerRadius="0" VerticalAlignment="Center" Width="16" Height="22">
                                        <StackPanel>
                                            <Path Data="M1,1L9,9 M9,1L1,9" Height="10" Stroke="{DynamicResource {x:Static telerik:Windows8ResourceKey.MainBrush}}" StrokeThickness="2" Width="10"/>
                                        </StackPanel>
                                    </telerik:RadButton>
                                </StackPanel>
                            </ContentPresenter.Content>
                        </ContentPresenter>
                    </Border>
                    <DataTemplate.Triggers>
                        <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type telerik:RadDocumentPane}},Path=IsActive, Converter={StaticResource InvertedBooleanConveter}}" Value="True">
                            <Setter TargetName="grid" Property="Background" Value="{telerik:Windows8Resource ResourceKey={x:Static telerik:Windows8ResourceKey.BasicBrush}}"/>
                        </DataTrigger>
                    </DataTemplate.Triggers>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

 

The selected DocumentPane header gets highlighted now while the other one gets greyed out(See pic1). But when I click on any of the radpanes on the left, both the document pane headers gets greyed out (See pic2). I want the left and the right side to be independent of each other (style wise only). If Doc1 is selected on right, it should not get greyed out if I click on the left radpanes. Please provide a solution.

Pictures Attached

Polya
Telerik team
 answered on 17 May 2016
3 answers
1.2K+ views

I'm having an ItemsSource binding issue with a GridViewComboBoxColumn.

In my ViewModel I have a list of Location objects which consists of a Continent object and a list of Country objects for the specified Continent. In my UI I have a RadGridView with the ItemsSource bound to my list of locations.The RadGridView has 2 GridViewComboBoxColumns; one for Continent and one for Country. For the Continent column I have the DataMemberBinding set to bind to the Continent property of the Location object and the ItemsSource set to my list of Continent objects (defined in the ViewModel). This binding works as expected. For the Country column I have the DataMemberBinding set to bind to the Continent's SelectedCountry property and the ItemsSource set to bind to the Continent's Countries property (list of countries on that continent). When I run my program I get a binding error stating that it can't find the property Continent on object ViewModel which means it's not looking at the row data context for the property but rather the RadGridView's data context. I assume this is just a path issue on my side but I haven't been able to figure out how to bind to the correct path.

 

Just to make sure I wasn't trying something that wasn't possible I also set up a similar binding on two RadComboBox (using a Continent object property in the ViewModel) and also within the RadGridView's row details. Both have the correct binding and expected behavior so I could use the row details approach if need be.

 

Please see the attached project for an example.

Tim
Top achievements
Rank 1
 answered on 17 May 2016
8 answers
450 views
Is it possible to automatically scroll a RadListBox when dragging an item over the top or bottom of the ListBox?
Yana
Telerik team
 answered on 17 May 2016
3 answers
392 views

Hello,

I have a program that, each time I open a new file on it creates a new main window on its own thread.

Everything is working OK, except on the following scenario:

  1. A file in opened in the application main window.
  2. A second file is opened in a new main window.
  3. In this second main window, a RadWindow is opened.
  4. The RadWindow is moved.

At this time, the application crashes with the following exception and stack trace:

The calling thread cannot access this object because a different thread owns it.    Exception {InvalidOperationException}

     WindowsBase.dll!System.Windows.Threading.Dispatcher.VerifyAccess()    Unknown
     PresentationFramework.dll!System.Windows.Application.MainWindow.get()    Unknown
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.GetDpiIndependentPrimaryScreenSize()    Unknown
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.HandleGetMinMaxInfo(System.IntPtr hwnd = {System.IntPtr}, System.IntPtr wParam = {System.IntPtr}, System.IntPtr lParam = {System.IntPtr}, out bool handled = false)    Unknown
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.WndProc(System.IntPtr hwnd = {System.IntPtr}, int msg = 36, System.IntPtr wParam = {System.IntPtr}, System.IntPtr lParam = {System.IntPtr}, ref bool handled = false)    Unknown
     PresentationCore.dll!System.Windows.Interop.HwndSource.PublicHooksFilterMessage(System.IntPtr hwnd = {System.IntPtr}, int msg, System.IntPtr wParam = {System.IntPtr}, System.IntPtr lParam = {System.IntPtr}, ref bool handled = false)    Unknown
     WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd = {System.IntPtr}, int msg, System.IntPtr wParam = {System.IntPtr}, System.IntPtr lParam = {System.IntPtr}, ref bool handled = false)    Unknown
     WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o)    Unknown
     WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs)    Unknown
     WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler = null)    Unknown
     WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs)    Unknown
     WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd = {System.IntPtr}, int msg, System.IntPtr wParam = {System.IntPtr}, System.IntPtr lParam = {System.IntPtr})    Unknown
     [Native to Managed Transition]    
     [Managed to Native Transition]    
     WindowsBase.dll!MS.Win32.HwndSubclass.DefWndProcWrapper(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam)    Unknown
     [Native to Managed Transition]    
     [Managed to Native Transition]    
     WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam)    Unknown
     [Native to Managed Transition]    
     [Managed to Native Transition]    
     WindowsBase.dll!MS.Win32.HwndSubclass.DefWndProcWrapper(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam)    Unknown
     [Native to Managed Transition]    
     [Managed to Native Transition]    
     WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam)    Unknown
     [Native to Managed Transition]    
     [Managed to Native Transition]    
     WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame = {System.Windows.Threading.DispatcherFrame})    Unknown
     PresentationFramework.dll!System.Windows.Window.ShowHelper(object booleanBox)    Unknown
     PresentationFramework.dll!System.Windows.Window.ShowDialog()    Unknown
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.WindowWithNoChromeWindowHost.Open(bool isModal = true)    Unknown
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.WindowBase.ShowWindow(bool isModal = true)    Unknown
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadWindow.ShowDialog()    Unknown

 

Note that doing the same on the first main window doesn't crash the application.

Nasko
Telerik team
 answered on 17 May 2016
1 answer
49 views

Dear all Telerik UI for WPF team members.

Recently I have encountered a couple of problems with RadDiagram.

Please help our team to proceed forward soon.

 

My question is below.

When we draw a diagram via your RadDiagram, bezier and spline is perfect form as we expected.

But, after we decided to save this form and to check whether this form is correct, we reloaded it.

The problem is here.

Reloaded diagram is malformed (just we thought)

Please check attached image file (before & after save a diagram) and our code.

 

            <telerik:RadDiagram x:Name="diagram" Grid.Row="1" Grid.Column="1"
                                Width="900" Height="700"
                                SelectedItem="{Binding SelectedItem}" IsZoomEnabled="False"
                                IsSnapToItemsEnabled="False" IsSnapToGridEnabled="False"
                                GraphSource="{Binding GraphSource}"
                                Margin="{DynamicResource UIBorderMargin}">
                <primitives:ItemInformationAdorner.AdditionalContent>
                    <telerik:SettingsPane Diagram="{Binding ElementName=diagram}" />
                </primitives:ItemInformationAdorner.AdditionalContent>
            </telerik:RadDiagram>

 

Thanks in advance.

Brian Kwon from South Korea.

Petar Mladenov
Telerik team
 answered on 17 May 2016
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?