Telerik Forums
UI for WPF Forum
2 answers
360 views

Every time I try to add a GridView i get "Microsoft Visual Studio XAML Designer has stopped working."  Then Close or Debug.  Then after clicking Close I get this error in the window:

An Unhandled Exception has occurred

System.ArgumentException
Property 'System.Object ItemsSource' is not defined for type 'Telerik.Windows.Controls.RadGridView'
   at System.Linq.Expressions.Expression.Property(Expression expression, PropertyInfo property)
   at System.Linq.Expressions.Expression.Property(Expression expression, MethodInfo propertyAccessor)
   at Telerik.Windows.Controls.GridView.Design.RadGridViewMetadata.<.ctor>b__0(AttributeCallbackBuilder b)
   at MS.Internal.Metadata.MutableAttributeTable.ExpandAttributes(Type type, AttributeList attributes)
   at MS.Internal.Metadata.MutableAttributeTable.GetExpandedAttributes(Type type, Object callbackParam, GetAttributesCallback callback)
   at MS.Internal.Metadata.MutableAttributeTable.GetCustomAttributes(Type type)
   at Microsoft.Windows.Design.Metadata.AttributeTable.GetCustomAttributes(Type type)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.MetadataStore.<GetAttributes>d__29.MoveNext()
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.TypeUtilities.<MergeAttributesIterator>d__9.MoveNext()
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.TypeUtilities.GetAttributes(MemberInfo memberInfo, Type attributeType, IPlatformMetadata platformMetadata, Boolean checkBaseTypes, Func`3 canContinueCheckingBaseTypes)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.TypeUtilities.GetAttributes(Type type, IPlatformMetadata platformMetadata, Boolean checkBaseTypes)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.RuntimeProjectType.GetAllAttributes(Boolean inherit)
   at Microsoft.VisualStudio.DesignTools.Designer.Metadata.TypeUtilities.IsTypeSupported(IProjectMetadata typeResolver, ITypeId typeId)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.GenericControlTool.get_IsVisible()
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.GenericControlTool.GetExtensibleEquivalent()
   at Microsoft.VisualStudio.DesignTools.Designer.ViewModel.Extensibility.ExtensibilityManager.ToolManager_ActiveToolChanged(Object sender, ToolEventArgs e)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolEventHandler.Invoke(Object sender, ToolEventArgs e)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolManager.OnActiveToolChanged(ToolEventArgs e)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolManager.set_ActiveTool(Tool value)
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolManager.UpdateHostTool()
   at Microsoft.VisualStudio.DesignTools.Designer.Tools.ToolManager.HostToolService_ActiveToolChanged(Object sender, EventArgs e)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalEvent`2.<>c__DisplayClass11_0.<Invoke>b__0()
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.Invoke(Boolean waitingInExternalCall)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.InvokeCall(Call call)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessQueue(CallQueue queue)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessInboundQueue(Int32 identity)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessMessage(Int32 msg, IntPtr wParam, IntPtr lParam, Boolean elevatedQuery, Boolean& handled)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.OnWindowMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.MessageOnlyHwndWrapper.WndProc(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 Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication()
   at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.<>c__DisplayClass3_0.<Main>b__0()
   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()

Vladimir Stoyanov
Telerik team
 answered on 09 Nov 2018
4 answers
712 views
I have a RadListBox with DragDropBehavior, the RadListBox itemtemplates contain a textbox. I want the text in the textbox to be selectable using the mouse, but when I drag to select text, the item is dragged instead. Is it possible to disable drag within a control in an itemtemplate in a draggable RadListBox? I tried setting telerik:DragDropManager.AllowCapturedDrag="False" and telerik:DragDropManager.AllowDrag="False" on the textbox but that doesn't help.

Here's my little test project:

using System.Collections.ObjectModel;
 
namespace ListBoxTest
{
    public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
 
            DataContext = this;
 
            MyCollection = new ObservableCollection<string> { "test text 1", "test text 2", "test text 3", "test text 4", "test text 5", "test text 6" };
        }
 
        public ObservableCollection<string> MyCollection { get; private set; }
    }
}

<Window
    x:Class="ListBoxTest.MainWindow"
    Title="MainWindow" Height="500" Width="525">
    <telerik:RadListBox
        ItemsSource="{Binding MyCollection}">
        <telerik:RadListBox.ItemTemplate>
            <DataTemplate>
                <Grid Height="50" Width="100" Background="LightBlue" telerik:DragDropManager.AllowCapturedDrag="True">
                    <TextBox
                        Text="{Binding .}"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Center"
                        telerik:DragDropManager.AllowCapturedDrag="False"
                        telerik:DragDropManager.AllowDrag="False"/>
                </Grid>
            </DataTemplate>
        </telerik:RadListBox.ItemTemplate>
        <telerik:RadListBox.DragDropBehavior>
            <telerik:ListBoxDragDropBehavior />
        </telerik:RadListBox.DragDropBehavior>
    </telerik:RadListBox>
</Window>
Vladimir Stoyanov
Telerik team
 answered on 09 Nov 2018
3 answers
247 views

Hello,

I'm trying to customize the style of the timeline by minimizing controls from the timeline.It will be embedded in a different control that will then perform the manipulation of zooming and scrolling.

1) I have successfully hidden the group header by modifying the TimelineItemContainer ItemsPanelTemplate TimelineItemGroupsPanel padding to be = zero

2) I have not been able to hide the small thin border item that still exists at the top of the timeline

3) I have not been able to hide the horizontal scroll bar at the bottom of the timeline.

 

I am using the implicit style method and have successfully completed #1.

 

zmirli
Top achievements
Rank 1
 answered on 09 Nov 2018
12 answers
322 views
Is there any chance that we can get the zoomlevel changed to a double so that I can more precisely size my map? Or is there another way to achieve this? E.G. the difference between zoom level 7 and 8 on one of the supplied US state shapefiles is quite a lot. I'd like to be able to zoom in at, say 7.3 or 7.4.
Vladimir Stoyanov
Telerik team
 answered on 08 Nov 2018
3 answers
2.4K+ views

I am trying to set theme (Fluent) AlternativeBrush into SolidColorBrush resource. I am facing error #FFF2F2F2' is not a valid value for property 'Color'. 

Everything is working fine, but problem when I want to define SolidColorBrush resource from theme. This resource will be used in other templates.

For reference following is sample code what I am doing now

 

<SolidColorBrush Color="{telerik:FluentResource ResourceKey=AlternativeBrush}" x:Key="AlternativeBrush"/>
Vladimir Stoyanov
Telerik team
 answered on 08 Nov 2018
1 answer
112 views

Hi Telerik,

I'm currently using the Outlook Template for visual studio and I'm wondering how can I change the accent color on the template?

I was to be able to use customized color hex or RGB to set colors for like accent, text etc.

 

Vladimir Stoyanov
Telerik team
 answered on 08 Nov 2018
0 answers
128 views

Hi. I am using RadComboBox control in my project. Previously, the control was in non-editable mode (IsEditable="False") and drop functions worked fine.

<telerik:RadComboBox
IsEditable="True"
IsFilteringEnabled="True"
AllowDrop="True"
ItemsSource="{Binding Type.Items}"
DisplayMemberPath="DocumentId"
Text="{Binding Value, Mode=TwoWay}">
<i:Interaction.Behaviors>
<local:DropTargetBehavior DropCommand="{Binding DropCommand}" />
</i:Interaction.Behaviors>
</telerik:RadComboBox

 

When I set IsEditable to True then drop functionality has stopped working. In editable mode there is an "Input Area" overlay control and i cannot drop anything to RadComboBox. Can you suggest any working example for dropping something to RadComboBox in editable mode (IsEditable="True")?

Vladimir
Top achievements
Rank 1
 asked on 08 Nov 2018
1 answer
223 views
When I press Filter button in any RadGridView's column and then press Alt+Tab to switch to other window, filter popup stays on top.
Dinko | Tech Support Engineer
Telerik team
 answered on 07 Nov 2018
2 answers
223 views

When I switched to Fluent theme all RadRibbonButtons direct content was aligned to the left instead of centered as it was previously in Expression Dark theme. The problem is, that ContentPresenter in StackPanel named FirstRowContainer has its HorizontalAlignment property set to Left. I don't know how can I change that to Center and I need your help to fix it. Direct content of buttons is TextBlock displaying Font Glyph. Here is sample code:

                        <telerik:RadRibbonButton x:Name="buttonLock"
                                                 Click="ButtonLock_OnClick"
                                                 IsEnabled="{Binding IsUiUnlocked}"
                                                 Size="Large"
                                                 Text="Lock">
                            <TextBlock Margin="2"
                                       FontFamily="{StaticResource TelerikWebUI}"
                                       FontSize="24"
                                       Foreground="#00BFE8"
                                       Text="{StaticResource GlyphLock}" />
                        </telerik:RadRibbonButton>

Jan
Top achievements
Rank 1
 answered on 07 Nov 2018
3 answers
210 views

Hi,

I would like to create two generic custom aggregators as like your CounterFunction class with the following differences

1st aggregator: it should count only not null value and not the empty strings

2nd aggreagator: it should count the distinct values (example: a a a b b c -> count =3 )

 

Any idea?

Thank you

Vladimir Stoyanov
Telerik team
 answered on 07 Nov 2018
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?