待解决的问题

(1)编译,运行都没用问题;但是设计器无法加载,开发时不能看到界面。(已解决)

------------------------------------------------

解决方法:

在对应的xaml文件中添加xmlns:win="clr-namespace:System.Windows;assembly=PresentationFramework"

再在出错的类型前面指定namespace:

<win:VisualStateManager.VisualStateGroups>
                            <win:VisualStateGroup x:Name="CommonStates">
        <win:VisualState x:Name="Normal"/>
        <win:VisualState x:Name="Disabled">
         <Storyboard>
          <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PART_DisabledVisual"/>
         </Storyboard>
        </win:VisualState>
                            </win:VisualStateGroup>
      </win:VisualStateManager.VisualStateGroups>

posted on 2012-08-23 15:22  木白力口岂几  阅读(196)  评论(0)    收藏  举报

导航