我知道这更倾向于设计师问题的方向,但是当我面临开发需要我剪裁图像的东西时,我想我会提出一个问题.
这看起来像一个荒谬的问题,但我看看IDE(Expression Blend 2)试图找到一种方法来裁剪我的图像,但我无法弄明白.
这似乎与Joel的问题非常一致,并且在Podcast 58中进行了讨论,因为在Expression Blend中进行设计时,我是一个完整的菜鸟.我非常有兴趣找出最有效的方法来做到这一点.我找到了一篇描述你可以通过的工作流程的文章,它将产生一个作物,我在下面作为答案添加了,但我真的希望其他人知道更快(更少点击)的方式做一些琐碎的事情就这样.
有谁知道如何做到这一点?
我不知道这个功能到底是什么,但我想在我的Silverlight项目中模拟这个.我是一名C#开发人员,正在转向Silverlight和Expression Studio(Blend)以获得更丰富的用户体验.假设我有一些用户控件,并希望它们进入屏幕(滑入和滑出),如下面我发现的网站所示:
http://www.templatemonster.com/silverlight-templates/28722.html
在菜单上,当单击菜单项时,"屏幕"向左滑动,然后新的"屏幕"从左向右滑动.
我真的想学习这些东西,但不知道这些'功能'被称为什么?例如,在xaml世界中调用的这些"屏幕"是什么?另外,在xaml世界中调用的"滑入/滑出"是什么?有人能指点我好文章/白皮书吗?
提前感谢任何建议.
我正在使用wpfToolkit 3.5作为引用程序集在VS2010中构建应用程序.
我试图从ExpressionBlend 4添加一些VisualStates,当我尝试构建项目时,我收到以下错误.
类型'System.Windows.VisualState'存在于'c:\ Program Files(x86)\ Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\PresentationFramework.dll'和'c:\ Program Files(x86)\ WPF Toolkit\v3.5.50211.1\WPFToolkit.dll'
这是代码
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="ShowHideRoomNumber">
<VisualState x:Name="Show"/>
<VisualState x:Name="Hide">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="comboBox">
<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
Run Code Online (Sandbox Code Playgroud)
我也试过了,但发生了同样的错误
xmlns:vsm="clr-namespace:System.Windows;assembly=WPFToolkit"
<vsm:VisualStateManager.VisualStateGroups>
<vsm:VisualStateGroup x:Name="ShowHideRoomNumber">
<vsm:VisualState x:Name="Show"/>
<vsm:VisualState x:Name="Hide">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="comboBox">
<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</vsm:VisualState>
</vsm:VisualStateGroup>
</vsm:VisualStateManager.VisualStateGroups>
Run Code Online (Sandbox Code Playgroud)
有什么建议?
谢谢
我试图通过代码让视觉状态管理器改变状态.
我在用:
Microsoft.Expression.Interactivity.Core.ExtendedVisualStateManager.GoToElementState(this.LayoutRoot, "stateRegistration", true);
Run Code Online (Sandbox Code Playgroud)
但它似乎不想工作,我已经创建了一个事件处理程序和一个监听器,但是在使用该代码时没有状态改变.
谁能帮我吗.
XAML CODE(代码片段):
<Grid x:Name="LayoutRoot" Width="897" Height="699">
<VisualStateManager.VisualStateGroups>
<VisualState x:Name="stateRegistration">
<Storyboard>
<DoubleAnimation Duration="0" To="870" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="RegisterContent" d:IsOptimized="True"/>
<DoubleAnimation Duration="0" To="880" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="HomeContent" d:IsOptimized="True"/>
<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="btnRegRegister" d:IsOptimized="True"/>
<DoubleAnimation Duration="0" To="-10" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="btnRegRegister" d:IsOptimized="True"/>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Grid>
Run Code Online (Sandbox Code Playgroud)
谢谢.
我有一个XAML文件,我已经减少了以找到这个问题的原因到以下最小的情况:
<FixedDocument
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >
<PageContent>
</PageContent>
</FixedDocument>
Run Code Online (Sandbox Code Playgroud)
它在KAXAML中打开很好,但是当我在Expression Blend 4中打开相同的文件时,我在<PageContent>标记处得到以下2个错误:
没有CodeBehind.唯一有趣的是这个文件存在于Winforms项目中,我已经应用了以下hack:http: //social.expression.microsoft.com/Forums/en-US/blend/thread/c726522f-c721-42a7- 8bf1-c73360edaa60 - 但直接WPF项目中的文件也会出现问题.
有谁知道为什么,并解决这个问题?
想知道是否有人知道如何在闪屏中保持良好的平滑渐变?我已经尝试了.jpg并加载了直接的xaml作为徽标控件资源,并且我已经嵌入了一个视图框中.在模拟器中它看起来很棒!虽然在手机上它仍然具有那种波涛汹涌的外观,但它并没有让我看起来很酷的标志正义作为一个漂亮的闪屏.有任何想法吗?
这是我到目前为止:
<Image Source="{Binding ImageSource"} />
<Button Content"Text" ImageSource="path/image.png" />
Run Code Online (Sandbox Code Playgroud)
我知道有些事情不对劲.我想我无法看到ImageSource的定义.
我有几个按钮,只想为每个按钮都有一个独特的图像.我有一个我正在使用的按钮模板,它适用于文本.
<Label Content="TemplateBinding Content" />
Run Code Online (Sandbox Code Playgroud)
感谢你的帮助!
在VS 2012中使用设计视图时,如果右键单击元素并从" 编辑模板"或" 编辑其他模板"中选择其中一个模板,则会转到设计器中的新视图.
这可能是一个愚蠢的问题,但我如何导航回主视图?
在Blend中,我只使用模板名称旁边的小向上箭头,但在VS中似乎不存在.
我有一个Grid动态的大小.在里面我想画一个对角线TextBlock.我已经有一个对角线Path,您可以设置LineGeometry动态调整.但我找不到吊坠TextBlock.我错过了什么吗?
<Grid>
<TextBlock Text="Draft" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="180" FontWeight="Bold" Foreground="#FFA43A3A" RenderTransformOrigin="0.5,0.5"/>
<Path Grid.Row="2" Grid.Column="0" Stroke="Red" StrokeThickness="2" Stretch="Fill">
<Path.Data>
<LineGeometry StartPoint="1,0" EndPoint="0,1" />
</Path.Data>
</Path>
</Grid>
Run Code Online (Sandbox Code Playgroud)
这是我希望没有设置绝对值RotateTransform.
该red前景FrankM的解决方案,green一个是从亨利克·汉森
我想将IE设置为我从Expression Blend运行Silver light应用程序的默认浏览器,但我不想从Mozilla更改我的Windows默认设置.Blend中是否有设置选项来执行此操作?