|
Hey Pete,
Do you mean scrap the custom control all together?
|
|
|
|
|
Not quite - I mean show your control in the AdornerLayer in place of showing the ToolTip.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
That's a thought.. I'll try it out
thanks
|
|
|
|
|
Good luck. Let me know how you're getting on.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi all,
I have two projects in same solution : 1 WCF project and 1 silverlight project.
WCF project start at port : 54432
Silverlight project start at port : 55647
i deploy WCF project on IIS and copy ClientAccessPolicy.xml and CrossDomain.xml into wwwroot folder. From SL project, i add reference service to WCF on IIS. It's run.
But from SL project, i add reference service to WCF project in same solution and run. I found the error about cross-domain. I already added ClientAccessPolicy.xml and CrossDomain.xml into the root of WCF project. The same error is displayed.
Could you please guide me to solve it? Any helps will be welcomed
|
|
|
|
|
|
I installed VS2010 and SL4 (with tools and toolkit), and I can't get the debugger to stop anywhere in the code in a silverlight (v4) app - not even the first line of the constructor in App.xaml.cs.
Can anyone help?
(and before anyone asks, yes, the solution configuration is set for debug)
SOLUTION ======================
It seems that it's because FireFox executes plug-ins out-of-process, so the debugger can't attach to the appropriate process. The fix is described here:
On MSDN Connect[^]
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Sunday, July 4, 2010 9:45 AM
|
|
|
|
|
John Simmons / outlaw programmer wrote: the solution configuration is set for debug
But perhaps it's missing this[^]?
/ravi
|
|
|
|
|
Nope, that's checked.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Ran across something similar in VS2008 where the start project was set to the .web project, changing the start project to the main project fixed the problem - just a thought
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It still doesn't stop (and I get a warning that if I don't set the web project as startup, I can't debug the RIA services stuff.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Do you have Visual Web Developer installed? When you install VS 2010, it includes this but in case you have chosen a different mode of install and omitted the Visual Web developer then it could be an issue. Do check and see.
-Mamta
|
|
|
|
|
I have "Visual Studio Web Authoring Component", but that was installed with VS2008.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Found this thread - it might help you.
Note: The workaround suggests that if VS2010 is run in administrator mode, this problem goes away.
|
|
|
|
|
Nope - it has no effect. I wonder if it's because I have VS2008 and all the SL3 stuff installed...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: VS2008 and all the SL3
I had VS2008 installed and debugging VS 2008 did not create any issues for me.
I was however using SL3 even in VS2010 - so it could be something to do with having the SL3 and SL4 tools installed together.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Look at the OP - I found out what was wrong.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Cool. Thanks for posting the solution here.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Hai all
I am using wpf reporting . While Printing the XamDataGrid with Infragistics.Reports i need to print it with border .
can anyone help me .
thank you
modified on Saturday, July 3, 2010 6:58 AM
|
|
|
|
|
I've been messing around with C# for about a year or so and I thought I'd have a look to see what WPF is all about. However I'm having a problem. Here's the problem -
If I drag a control (Button, TextBox TextBlock ,whatever) and I try to access the FontFamily property in the Poperties window then the designer will crash with the following error -
System.ArgumentException
An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at MS.Internal.FontFace.PhysicalFontFamily.ConvertDictionary(IDictionary`2 dictionary)
at MS.Internal.FontFace.PhysicalFontFamily.MS.Internal.FontFace.IFontFamily.get_Names()
at System.Windows.Media.FontFamily.get_FamilyNames()
at MS.Internal.Services.WPFFontPlatformService.GetFontFamilyName(FontFamily fontFamily)
at MS.Internal.Services.WPFFontPlatformService.GetSupportedFamilyNames()
at MS.Internal.Designer.PropertyEditing.Editors.FontEditor.FontList.Refresh(EditingContext context)
at MS.Internal.Designer.PropertyEditing.Editors.FontEditor.FontList.GetEnumerator()
at MS.Internal.Data.EnumerableCollectionView.LoadSnapshotCore(IEnumerable source)
at MS.Internal.Data.EnumerableCollectionView..ctor(IEnumerable source)
at MS.Internal.Data.ViewManager.GetViewRecord(Object collection, CollectionViewSource cvs, Type collectionViewType, Boolean createView)
at MS.Internal.Data.DataBindEngine.GetViewRecord(Object collection, CollectionViewSource key, Type collectionViewType, Boolean createView)
at System.Windows.Data.CollectionViewSource.GetDefaultCollectionView(Object source, Boolean createView)
at System.Windows.Data.CollectionViewSource.GetDefaultCollectionView(Object source, DependencyObject d)
at System.Windows.Controls.ItemCollection.SetItemsSource(IEnumerable value)
at System.Windows.Controls.ItemsControl.OnItemsSourceChanged(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.InvalidateProperty(DependencyProperty dp)
at System.Windows.StyleHelper.InvalidateDependents(Style ownerStyle, FrameworkTemplate frameworkTemplate, DependencyObject container, DependencyProperty dp, FrugalStructList`1& dependents, Boolean invalidateOnlyContainer)
at System.Windows.StyleHelper.OnTriggerSourcePropertyInvalidated(Style ownerStyle, FrameworkTemplate frameworkTemplate, DependencyObject container, DependencyProperty dp, DependencyPropertyChangedEventArgs changedArgs, Boolean invalidateOnlyContainer, FrugalStructList`1& triggerSourceRecordFromChildIndex, FrugalMap& propertyTriggersWithActions, Int32 sourceChildIndex)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at MS.Internal.Designer.PropertyEditing.Automation.AutomatedChoiceEditor.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 MS.Internal.Designer.PropertyEditing.FromExpression.Framework.ValueEditors.ChoiceEditor.OnApplyTemplate()
at System.Windows.FrameworkElement.ApplyTemplate()
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)
---
If the properties window is in "categorized" mode then all of the categories are open except the "Text" category. Any attempt to open that category will crash the designer also, (obviously because it contains the TextFamily property).
Anyone have a clue what is going on? I have tried to do a Repair on the Visual Studio installation but that didnt sort it out. I'm using VS2010 by the way. I also have VS2008 installed and that doesnt suffer from the problem.
TIA
mick
|
|
|
|
|
Make sure to do not add more than one item with the same identifier or key
|
|
|
|
|
I have a WPF application which contains a ListView defined to show the values for an item in a chart.
One of the fields, State, is supposed to change as the charted values cross warning and alarm barriers.
I built up the list (which was really only one item) as follows:
ObservableCollection<LegendValues> itemList = new ObservableCollection<LegendValues>();
LegendValues item = new LegenValues();
... define the initial values ...
itemList.Add( item );
myListView.ItemsSource = itemList;
item.State = "Warn";
I also have the binding set in XAML as TwoWay.
When I change the state in the item object, it does not change in the ListView. Is there something I'm missing?
Thanks,
Michael
|
|
|
|
|
Michael Eber wrote: Is there something I'm missing?
INotifyProperty perhaps?
|
|
|
|
|
Well...according to the documentation all I need are two things. TwoWay link on the binding between the ItemSource object and the ListIndex, and the ObservableCollection. But I can add INotifyProperty and see if that helps.
|
|
|
|
|
ObservableCollection is only used to tell the binding engine when records have been added or removed from the collection. In order to watch changes to particular properties, you need to use INotifyPropertyChanged and raise the PropertyChanged event.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|