Click here to Skip to main content
15,887,881 members
Home / Discussions / WPF
   

WPF

 
QuestionConnecting a C# Array to a Listbox Control 2 ways Pin
MacAllen26-Aug-11 19:45
MacAllen26-Aug-11 19:45 
AnswerRe: Connecting a C# Array to a Listbox Control 2 ways Pin
Abhinav S26-Aug-11 21:29
Abhinav S26-Aug-11 21:29 
QuestionConditional Controls in WPF? Pin
MacAllen26-Aug-11 19:34
MacAllen26-Aug-11 19:34 
AnswerRe: Conditional Controls in WPF? Pin
VallarasuS26-Aug-11 20:52
VallarasuS26-Aug-11 20:52 
AnswerRe: Conditional Controls in WPF? Pin
Abhinav S26-Aug-11 21:25
Abhinav S26-Aug-11 21:25 
AnswerRe: Conditional Controls in WPF? Pin
Alisaunder27-Aug-11 3:10
Alisaunder27-Aug-11 3:10 
AnswerRe: Conditional Controls in WPF? Pin
VallarasuS28-Aug-11 8:16
VallarasuS28-Aug-11 8:16 
QuestionDisappearing namespace? [modified] Pin
Alisaunder26-Aug-11 7:32
Alisaunder26-Aug-11 7:32 
Having an issue that is causing me to bang my head. my namespace is not being seen by the designer but still compiles and runs fine. the problem is that I can't view the forms at design time this happened shortly after I moved my files into folders to organize my program better. Yes I did make namespace modifications all throughout my app otherwise it wouldn't run. here is the main window xaml that is causing the error to occur.

HTML
<ribbon:RibbonWindow
    x:Name="window"
    x:Class="MHManager.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:MHManager"
    xmlns:classes="clr-namespace:MHManager.Classes"
    xmlns:controls="clr-namespace:MHManager.Controls"
    xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
    xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"
	xmlns:editors="http://schemas.actiprosoftware.com/winfx/xaml/editors"    
	xmlns:ribboneditors="http://schemas.actiprosoftware.com/winfx/xaml/ribboneditors"
    xmlns:s="http://www.stemasoft.com/xaml"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:ComponentModel="clr-namespace:System.ComponentModel;assembly=WindowsBase"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    ResizeMode="CanResizeWithGrip" 
    ApplicationName="Manufactured Housing Manager"	    
    Icon="Icons/MHManagericon.ico"
    Background="{Binding Background, ElementName=navigationPane}"
    Height="632"
    Width="930" 
    Loaded="window_Loaded" Closed="applicationExitCommand_Execute">


these three give the error

xmlns:local="clr-namespace:MHManager"
xmlns:classes="clr-namespace:MHManager.Classes"
xmlns:controls="clr-namespace:MHManager.Controls"

Maybe this will help to figure this out. It only happens when I copy all the files and transfer them to my laptop to work on the project there. So on my desktop everything is fine, but after I open the project on my laptop the Designer displays this message:

An Unhandled Exception has occurred


System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
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)


System.InvalidOperationException
'[Unknown]' property does not point to a DependencyObject in path '(0).(1)[0].(2)'.
at System.Windows.Media.Animation.Storyboard.VerifyPathIsAnimatable(PropertyPath path)
at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
at System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer)
at System.Windows.VisualStateGroup.StartNewThenStopOld(FrameworkElement element, Storyboard[] newStoryboards)
at System.Windows.VisualStateManager.GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, Boolean useTransitions)
at System.Windows.VisualStateManager.GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, String stateName, Boolean useTransitions)
at System.Windows.VisualStateManager.GoToState(FrameworkElement control, String stateName, Boolean useTransitions)
at System.Windows.Controls.Primitives.Thumb.ChangeVisualState(Boolean useTransitions)
at System.Windows.Controls.Control.UpdateVisualState(Boolean useTransitions)
at System.Windows.Controls.Control.OnPostApplyTemplate()
at System.Windows.FrameworkElement.ApplyTemplate()
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.DockPanel.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.DockPanel.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 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.DockPanel.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.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 System.Windows.Documents.AdornerDecorator.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.Border.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.DockPanel.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.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.Border.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at MS.Internal.Designer.ZoomableViewPresenter.DesignerBackground.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at Microsoft.Windows.Design.Interaction.DesignerView.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at MS.Internal.Designer.Viewport.MeasureOverride(Size availableSize)
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.ScrollContentPresenter.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.ScrollViewer.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
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.Control.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Interop.HwndSource.SetLayoutSize()
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at MS.Internal.DeferredHwndSource.ProcessQueue(Object sender, EventArgs e)

modified on Saturday, August 27, 2011 8:28 AM

AnswerRe: Disappearing namespace? [modified] Pin
Saksida Bojan27-Aug-11 10:50
Saksida Bojan27-Aug-11 10:50 
GeneralRe: Disappearing namespace? Pin
Alisaunder27-Aug-11 11:47
Alisaunder27-Aug-11 11:47 
GeneralRe: Disappearing namespace? Pin
Alisaunder27-Aug-11 17:25
Alisaunder27-Aug-11 17:25 
GeneralRe: Disappearing namespace? Pin
Saksida Bojan27-Aug-11 19:30
Saksida Bojan27-Aug-11 19:30 
GeneralRe: Disappearing namespace? Pin
Alisaunder28-Aug-11 0:32
Alisaunder28-Aug-11 0:32 
GeneralRe: Disappearing namespace? Pin
Alisaunder30-Aug-11 5:05
Alisaunder30-Aug-11 5:05 
QuestionWPF Pie Chart Question Pin
#realJSOP26-Aug-11 7:30
mve#realJSOP26-Aug-11 7:30 
AnswerRe: WPF Pie Chart Question [modified] Pin
Abhinav S26-Aug-11 8:23
Abhinav S26-Aug-11 8:23 
GeneralRe: WPF Pie Chart Question Pin
#realJSOP26-Aug-11 8:50
mve#realJSOP26-Aug-11 8:50 
GeneralRe: WPF Pie Chart Question Pin
#realJSOP28-Aug-11 8:39
mve#realJSOP28-Aug-11 8:39 
GeneralRe: WPF Pie Chart Question Pin
Abhinav S28-Aug-11 20:10
Abhinav S28-Aug-11 20:10 
GeneralRe: WPF Pie Chart Question Pin
#realJSOP29-Aug-11 2:42
mve#realJSOP29-Aug-11 2:42 
QuestionDataGrid cell drag Pin
Saboureau26-Aug-11 2:47
Saboureau26-Aug-11 2:47 
QuestionRoutedUICommands vs ICommand. When & Why Pin
Vincent Beek25-Aug-11 20:57
Vincent Beek25-Aug-11 20:57 
AnswerRe: RoutedUICommands vs ICommand. When & Why Pin
SledgeHammer0126-Aug-11 5:03
SledgeHammer0126-Aug-11 5:03 
GeneralRe: RoutedUICommands vs ICommand. When & Why Pin
Vincent Beek26-Aug-11 6:53
Vincent Beek26-Aug-11 6:53 
GeneralRe: RoutedUICommands vs ICommand. When & Why Pin
SledgeHammer0126-Aug-11 7:00
SledgeHammer0126-Aug-11 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.