有时我会看到快捷方式,有时候我没有.我不知道为什么.
如何使快捷方式永久化?
我在VS 2013中创建了一个WPF项目.升级到VS 2015后,设计器中显示的错误来自Blend SDK:
程序集中的类型是使用旧版本的blend sdk构建的,并且在windows presentation foundation 4项目中不受支持
我对Visual Studio 2010和Expression Blend 4如何协同工作有点困惑.如果我想创建一个WPF应用程序,我应该在Expression Blend 4中启动吗?如果是这样,那么Visual Studio 2010如何在本机上打开Expression Blend项目,或者它是如何实现的呢?
或者我应该在Visual Studio 2010中启动我的应用程序?如果是这样,我如何在Expression Blend中打开我的解决方案.
另外,如果需要更改,如何修改现有的WPF表单.如果我已经处理了事件并且代码落后了,我如何将其转换为表达式混合,进行更改,然后将其恢复到visual studio而不会中断我在Visual Studio 2010中创建的事件和代码?
也有人可以推荐一本好书,介绍如何使用Expression blend 4和Visual Studio 2010一起创建WPF和/或Silverlight应用程序.
blend visual-studio-2010 microsoft-expression visual-studio expression-blend
我的iPad应用程序中有一个图像,我基本上想在它上面放置一个彩色滤镜.为此我有一个彩色的UIView,它被掩盖到我放在图像上的某个形状.由于调整alpha并没有给我预期的效果,我想使用混合模式.
据我所知,你只能在图像上使用混合模式而不是普通视图.视图的颜色是动态的,所以我不能只使用图片.
我也尝试将视图光栅化为图像,但是所有像素和奇怪的东西,但也许我做错了.
因此,基本问题是:是否可以将混合模式应用于视图?或者我应该采取完全不同的方法来达到同一目标?
我有一个viewmodel的datatemplate,其中itemscontrol绑定到CollectionViewSource(以启用xaml中的排序).
<DataTemplate x:Key="equipmentDataTemplate">
<Viewbox>
<Viewbox.Resources>
<CollectionViewSource x:Key="viewSource" Source="{Binding Modules}">
<CollectionViewSource.SortDescriptions>
<scm:SortDescription PropertyName="ID" Direction="Ascending"/>
</CollectionViewSource.SortDescriptions>
</CollectionViewSource>
</Viewbox.Resources>
<ItemsControl ItemsSource="{Binding Source={StaticResource viewSource}}"
Height="{DynamicResource equipmentHeight}"
ItemTemplate="{StaticResource moduleDataTemplate}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</Viewbox>
</DataTemplate>
Run Code Online (Sandbox Code Playgroud)
我还设置了UserControl,其中所有这些都被定义为提供设计时数据
d:DataContext="{x:Static vm:DesignTimeHelper.Equipment}">
Run Code Online (Sandbox Code Playgroud)
这基本上是一个静态属性,它给我一个EquipmentViewModel,它有一个ModuleViewModel(Equipment.Modules)列表.现在,只要我绑定到CollectionViewSource,设计时数据就不会出现在混合3中.当我直接绑定到ViewModel集合时
<ItemsControl ItemsSource="{Binding Modules}"
Run Code Online (Sandbox Code Playgroud)
我可以看到设计时数据.知道我能做什么吗?
在使用VS2012,WPF 4.5和设计时数据(特别是DesignInstance属性)时,我只花了几个小时处理问题.
目标:我希望在我的WPF项目(基于MVVM)中获得设计时数据支持,无论是在VS2012还是Blend中,我都无法在生命中使MVVMLight方法始终如一地工作.
因此,我尝试使用Blend提供的标记扩展,使用内置的设计时数据支持更改为"just".
问题:请考虑以下代码:
<Window x:Class="Nova.View.AlertsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Nova.View"
xmlns:vm="clr-namespace:Nova.ViewModel"
mc:Ignorable="d"
DataContext="{Binding Alerts, Source={StaticResource Locator}}"
d:DataContext="{d:DesignInstance vm:DesignAlertsViewModel, IsDesignTimeCreatable=True}"
... />
Run Code Online (Sandbox Code Playgroud)
VS2012和Blend都报告"名称DesignAlertsViewModel在命名空间clr-namespace中不存在:Nova.ViewModel",即使intellisense解决它很好,并且你已经检查过一千次命名空间和类名都是正确的.
我的WPF应用程序有一个我在混合上构建的样式管理器.
我的问题是:我有一个偶尔闪烁的登录按钮,我无法弄清楚如何删除此行为.
这是我的登录框的样式代码:
<Style x:Key="LoginBoxGrid" TargetType="{x:Type Grid}">
<Setter Property="Background">
<Setter.Value>
<ImageBrush ImageSource="/Client;component/Assets/images/LoginBox.png" Stretch="None" TileMode="Tile"/>
</Setter.Value>
</Setter>
<Setter Property="Opacity" Value="0.765"/>
<Setter Property="Width" Value="411"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Margin" Value="126,150,0,111"/>
</Style>
<Style x:Key="LoginBoxHeader" TargetType="{x:Type Label}">
<Setter Property="Grid.Column" Value="2"/>
<Setter Property="Margin" Value="-16.183,18.347,0,0"/>
<Setter Property="Width" Value="64.994"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontStyle" Value="Italic"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="FontFamily" Value="/Client;component/Assets/Fonts/#Arial Black"/>
</Style>
<Style x:Key="LoginBtn" TargetType="{x:Type Button}">
<Setter Property="Grid.Column" Value="2"/>
<Setter Property="Margin" Value="16.6,9.022,9.282,8"/>
<Setter Property="Grid.Row" Value="4"/>
<Setter Property="Width" …Run Code Online (Sandbox Code Playgroud) 我看到很多关于"视觉工作室混合"的内容,我理解W8版本的混合.我在W8上安装了VS2012 Ultimate,我看不到任何混合.
我查看了我的MSDN Pro订阅,我没有看到任何单独的Blend for VS2012下载而不是VS2012 with Blend下载..
我怎么得到它?
所以,我在Cell中有一些UILabel和UITextViews.我的桌子滚动有点慢,我尝试了iOS模拟器和乐器中提供的"颜色混合层"实用程序.它以红色显示混合的图层并导致慢速滚动.
所有的元素都是混合的,所以我把一个白色的背景放到了UILabels(和单元格一样),现在UILabels还可以(之前有clearColor作为背景).
我对UITextViews做了同样的事情,我选择了白色背景,但它们仍然在屏幕上显示为混合层(用红色着色).
每个UITextView配置都在界面构建器中完成,我尝试了每个选项,但它们仍然显示为红色.
我必须对UITextViews做什么才能使它们的图层不混合?
提前致谢!
PD:抱歉,我不能包括捕获
我是Windows商店应用程序开发的新手.Blend for Visual Studio的主要功能和优点是什么?
已经有一个XAML设计器和Visual Studio中嵌入的所有工具.为什么需要Blend for Visual Studio?Blend for Visual Studio的主要优点是什么?因为在我看过的很多视频中,人们更喜欢使用Blend for Visual Studio.谢谢.
编辑:我的问题是关于当前Blend for Visual Studio版本.我不关心旧的Blend版本.