I have vs2013 and Q1 2013 using the OfficeSliver Theme creating a project with 4.5 Framework. I am getting a design error anytime a try to open any XAML file in designer. I am getting this on brand new solutions with no controls on the window.
I tried what was listed on this form http://www.telerik.com/community/forums/wpf/ribbonview/ribbonview-w-windows-8-theme-rd---blend-with-sketchflow-for-vs-2012-preview-crashing.aspx and confirmed that my theme file was indeed set the way suggested and it was but that is not changing the fact that I can not load a completely blank window.
Any suggestions on what I can do?
This is the design error that I am getting:
System.ArgumentException
'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.
at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken) at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
System.ArgumentException
'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.
Server stack trace: at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
System.ArgumentException
'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.
at System.Windows.Setter.Seal() at System.Windows.SetterBaseCollection.Seal() at System.Windows.Style.Seal() at System.Windows.Style.System.Windows.ISealable.Seal() at System.Windows.StyleHelper.SealIfSealable(Object value) at System.Windows.ResourceDictionary.SealValue(Object value) at System.Windows.ResourceDictionary.SealValues() at System.Windows.ResourceDictionary.AddOwner(DispatcherObject owner) at System.Windows.ResourceDictionary.PropagateParentOwners(ResourceDictionary mergedDictionary) at System.Windows.ResourceDictionary.OnMergedDictionariesChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item) at System.Windows.ResourceDictionaryCollection.InsertItem(Int32 index, ResourceDictionary item) at System.Collections.ObjectModel.Collection`1.Add(T item) at Microsoft.Expression.DesignSurface.View.WPFSceneView.WpfResourceHost.TrySetApplicationResources() at Microsoft.Expression.DesignSurface.View.WPFSceneView.WpfResourceHost.EndInstanceBuilding() at Microsoft.Expression.DesignSurface.View.WPFSceneView.CrossDocumentUpdateToken.System.IDisposable.Dispose() at Microsoft.Expression.Platform.InstanceBuilders.ViewNodeManager.UpdateInstances(IAttachViewRoot siteRoot, IList`1 contextNodes, CancellationToken cancelToken) at Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateInstancesInternal() at Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.WPFSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.XamlSceneView.Update(Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.ViewUpdateManager.UpdateInvalidRelatedDocuments(SceneView view) at Microsoft.Expression.DesignSurface.View.XamlSceneView.EnsureActiveViewUpdated() at Microsoft.Expression.DesignSurface.View.WPFSceneView.EnsureActiveViewUpdated() at Microsoft.Expression.DesignSurface.View.XamlSceneView.SetVisible(Boolean visible) at Microsoft.Expression.DesignSurface.View.WPFSceneView.SetVisible(Boolean visible) at Microsoft.Expression.DesignSurface.DocumentViewContext.CreateAndOpenView(ISourceItemContext sourceItem, CancellationToken cancelToken, Boolean activate, Boolean ensureOpenInHost, Boolean suppressUI) at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e() at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
<telerik:RadListBox Name=
"testlv"
>
<telerik:RadListBox.ItemTemplate>
<DataTemplate>
<Border BorderBrush=
"Turquoise"
BorderThickness=
"0,1,0,1"
Width=
"{Binding Path=ActualWidth, ElementName=grdzero}"
>
<WrapPanel Orientation=
"Vertical"
>
<TextBlock Foreground=
"Black"
Text=
"{Binding nazwa}"
FontSize=
"16"
></TextBlock>
<WrapPanel Orientation=
"Horizontal"
>
<TextBlock Foreground=
"Black"
Text=
"Cena: "
FontSize=
"16"
></TextBlock>
<TextBlock Foreground=
"Black"
Text=
"{Binding cena}"
FontSize=
"16"
></TextBlock>
</WrapPanel>
<WrapPanel Orientation=
"Horizontal"
>
<TextBlock Foreground=
"Black"
Text=
"Kod: "
FontSize=
"16"
></TextBlock>
<TextBlock Foreground=
"Black"
Text=
"{Binding kod}"
FontSize=
"16"
></TextBlock>
</WrapPanel>
</WrapPanel>
</Border>
</DataTemplate>
</telerik:RadListBox.ItemTemplate>
</telerik:RadListBox>
And code behind:
private
void
getProducts(
string
query)
{
prodDG.Items.Clear();
List<SearchProd> pL = FastSellSearchClass.lista.Where(x => x.nazwa.ToLower().Contains(query.ToLower()) || x.kod.Contains(query) && x.wID ==
int
.Parse(Application.Current.Properties[
"warehouseID"
].ToString())).ToList();
testlv.ItemsSource = pL;
}
List<searchProd> represent list of product. It work's like:
client press any key in keyboard, which open new window with radListBox, insert pressed key into textBox, and going into
getProducts(string query) to filter items (where query = pressed key).
So for example when somebody press 'S', it will search for items, where name or code contains 'S'.
Problem is that, with 3000 products page is loading for like 9-10 second.
When it's loaded, it tooks less than second to find any words with 'Sa' for example.
So is there any way to speed up opening window a little bit?
Hi,
I am looking at implementing a automatic mindmap diagram layout in order to enforce the position of the items dropped as well as update the layout whenever a branch is expanded or collapsed. The basic behavior I am looking for is similar to the one provided as a sample with the mindmap layout sample. One of the tricky part is to update the existing item's position when the user expands a node in order to avoid items overlap. Do you recommand a particular approach in this area. XMind does a pretty good job in this area and this is the kind of behavior I am trying to implement.
Rgds
Robert