随笔分类 - WPF
摘要:昨天下午也在报这个错误昨晚搞几小时,上午调两个来小时,结果才发现是路径的问题我日!发生了 System.Windows.Markup.XamlParseException Message=未能分配给属性“System.Windows.ResourceDictionary.Source”。 [Line: 24 Position: 36] LineNumber=24 LinePosition=36 StackTrace: 位于 System.Windows.Application.LoadComponent(Object component, Uri resourceLocat...
阅读全文
摘要:RadialGradientBrush使用的是与LinearGradientBrush一样的比例坐标系统,如下图所示RadialGradientBrush主要有三个属性:Center:默认为(0.5,0.5)圆的中央,渐变的开始点RadiusY:Y轴半径的比例RadiusX:X轴半径的比例GradientOrigin:单词直译为渐变原点,它主要负责渐变的偏移,一般情况下,我都是保持Center不变,然后改变此值截图:XAML代码: <Grid x:Name="LayoutRoot" Background="White"> <Rectan
阅读全文
摘要:无废话,直接上代码XMAL代码:<Grid Width="300" Height="460"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="60"/> <RowDefinition Height="100"/> </Grid.RowDefinitions> <Grid.Triggers> <EventTri
阅读全文
摘要:Sliverlight情景下使用方法一、 使用VisualStateManager 技术,调用 GoToState()XAML代码: <Grid x:Name="LayoutRoot" Background="White"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="myButtonStates"> <VisualState x:Name="Normal"></VisualS
阅读全文
摘要:为实现ArcGIS地图上标绘标注信息,如下图红色框选中部份这个边框效果需要引用DLL:Microsoft.Expression.Drawing与XAML的命名空间:http://schemas.microsoft.com/expression/2010/drawing加载的XAML标签为:<ControlTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml&
阅读全文