mahboube
شنبه 06 شهریور 1389, 11:08 صبح
نحوه اضافه كردن كد هاي blendبه پروژه wpf در vs
1-آيا ميشه كدهاي blend 4 رو به vs2008 اضافه كرد؟چه refrence هايي رو نياز داره؟
2-توي كدها تو Blend چه namespase هايي رو بايد اضافه كرد؟
3-مثلا من چطوري از كد زير مي تونم تو vs2008استفاده كنم:
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ee="http://schemas.microsoft.com/expression/2010/effects" mc:Ignorable="d"
x:Class="SilverlightApplication1.MainPage"
Width="600" Height="500">
<Grid x:Name="LayoutRoot" Background="White" RenderTransformOrigin="0.5,0.72">
<Button Content="Button" Margin="194,219,214,228" >
<Button.Effect>
<ee:BloomEffect BloomIntensity="1" BaseSaturation="1" BaseIntensity="1" BloomSaturation="0.5" Threshold="0.5"/>
</Button.Effect>
</Button>
<Button Content="Button" Height="79" Margin="120,59,284,0" VerticalAlignment="Top">
<Button.Effect>
<DropShadowEffect/>
</Button.Effect>
</Button>
</Grid>
</UserControl>
4:اگر Blend 3 نصب كنم چطور؟مشكل حل ميشه؟
1-آيا ميشه كدهاي blend 4 رو به vs2008 اضافه كرد؟چه refrence هايي رو نياز داره؟
2-توي كدها تو Blend چه namespase هايي رو بايد اضافه كرد؟
3-مثلا من چطوري از كد زير مي تونم تو vs2008استفاده كنم:
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ee="http://schemas.microsoft.com/expression/2010/effects" mc:Ignorable="d"
x:Class="SilverlightApplication1.MainPage"
Width="600" Height="500">
<Grid x:Name="LayoutRoot" Background="White" RenderTransformOrigin="0.5,0.72">
<Button Content="Button" Margin="194,219,214,228" >
<Button.Effect>
<ee:BloomEffect BloomIntensity="1" BaseSaturation="1" BaseIntensity="1" BloomSaturation="0.5" Threshold="0.5"/>
</Button.Effect>
</Button>
<Button Content="Button" Height="79" Margin="120,59,284,0" VerticalAlignment="Top">
<Button.Effect>
<DropShadowEffect/>
</Button.Effect>
</Button>
</Grid>
</UserControl>
4:اگر Blend 3 نصب كنم چطور؟مشكل حل ميشه؟