Click here to Skip to main content
15,902,198 members
Home / Discussions / WPF
   

WPF

 
QuestionDeploying WPF Browser apllications... Pin
Hema Bairavan11-Apr-10 19:36
Hema Bairavan11-Apr-10 19:36 
AnswerRe: Deploying WPF Browser apllications... Pin
Parwej Ahamad12-Apr-10 6:29
professionalParwej Ahamad12-Apr-10 6:29 
GeneralRe: Deploying WPF Browser apllications... Pin
Hema Bairavan12-Apr-10 22:59
Hema Bairavan12-Apr-10 22:59 
GeneralRe: Deploying WPF Browser apllications... Pin
Parwej Ahamad13-Apr-10 4:47
professionalParwej Ahamad13-Apr-10 4:47 
GeneralRe: Deploying WPF Browser apllications... Pin
Hema Bairavan14-Apr-10 19:27
Hema Bairavan14-Apr-10 19:27 
GeneralRe: Deploying WPF Browser apllications... Pin
Parwej Ahamad14-Apr-10 20:13
professionalParwej Ahamad14-Apr-10 20:13 
AnswerRe: Deploying WPF Browser apllications... Pin
AspDotNetDev15-Apr-10 14:30
protectorAspDotNetDev15-Apr-10 14:30 
QuestionWPF : Setting TargetName in StoryBoard while using DataTrigger PinPopular
Prasoon Chaudhary11-Apr-10 19:31
Prasoon Chaudhary11-Apr-10 19:31 
I've defined a Storyboard, and I want to call it based on data value. But it throws error ::- Unhandled Exception: System.InvalidOperationException: A Storyboard tree in a Style cannot specify a TargetName. Remove TargetName 'glow'.-::. The same storyboard works fine if I call it through EventTrigger. If I remove TargetName, obviously it doesn't work at all.
My StoryBoard:

<UserControl.Resources>
	<Storyboard x:Key="Glow_move">
			<PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(Shape.Fill).(LinearGradientBrush.StartPoint)" RepeatBehavior="Forever">
				<SplinePointKeyFrame KeyTime="00:00:00" Value="-0.2,0.5"/>
				<SplinePointKeyFrame KeyTime="00:00:01" Value="0.8,0.5"/>
				<SplinePointKeyFrame KeyTime="00:00:02" Value="-0.2,0.5"/>
			</PointAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(Shape.Fill).(LinearGradientBrush.EndPoint)" RepeatBehavior="Forever">
				<SplinePointKeyFrame KeyTime="00:00:00" Value="0.2,0.5"/>
				<SplinePointKeyFrame KeyTime="00:00:01" Value="1.2,0.5"/>
				<SplinePointKeyFrame KeyTime="00:00:02" Value="0.2,0.5"/>
			</PointAnimationUsingKeyFrames>
	</Storyboard>
</UserControl.Resources>


My DataTrigger, with which it does not work:
<UserControl.Style>	
	<Style>
		<Style.Triggers>
			<DataTrigger Binding="{Binding Path=IsScanning}" Value="True">
				<DataTrigger.EnterActions>
					<BeginStoryboard Storyboard="{StaticResource Glow_move}"/>
				</DataTrigger.EnterActions>
			</DataTrigger>
			<DataTrigger Binding="{Binding Path=IsScanning}" Value="False">
				<DataTrigger.EnterActions>
					<StopStoryboard BeginStoryboardName="Glow_Move"/>
				</DataTrigger.EnterActions>
			</DataTrigger>
		</Style.Triggers>
	</Style>
</UserControl.Style>


My EventTrigger, with which it works fine:
<UserControl.Triggers>
	<EventTrigger RoutedEvent="Mouse.MouseUp">
		<BeginStoryboard x:Name="Glow_Move" Storyboard="{StaticResource Glow move}"/>
	</EventTrigger>
</UserControl.Triggers>


As I am new to WPF, it would be really nice if someone helps for this specific question and case.
QuestionSilverlight 3 - While validation it breaks the application and shows the error Pin
dwadasi11-Apr-10 18:16
dwadasi11-Apr-10 18:16 
AnswerRe: Silverlight 3 - While validation it breaks the application and shows the error Pin
Abhinav S11-Apr-10 18:28
Abhinav S11-Apr-10 18:28 
GeneralRe: Silverlight 3 - While validation it breaks the application and shows the error Pin
dwadasi11-Apr-10 18:57
dwadasi11-Apr-10 18:57 
GeneralRe: Silverlight 3 - While validation it breaks the application and shows the error Pin
Abhinav S11-Apr-10 19:07
Abhinav S11-Apr-10 19:07 
GeneralRe: Silverlight 3 - While validation it breaks the application and shows the error Pin
dwadasi11-Apr-10 21:51
dwadasi11-Apr-10 21:51 
QuestionRegex validation in Silverlight RIA services Pin
jonathan1511-Apr-10 9:35
jonathan1511-Apr-10 9:35 
QuestionHow to define another XAML page element as SourceName of EventTrigger Pin
Prasoon Chaudhary9-Apr-10 7:04
Prasoon Chaudhary9-Apr-10 7:04 
AnswerRe: How to define another XAML page element as SourceName of EventTrigger Pin
Paul Selormey10-Apr-10 22:31
Paul Selormey10-Apr-10 22:31 
QuestionSecuring Silverlight and WCF Services with Windows Security Pin
Michael J. Eber9-Apr-10 6:47
Michael J. Eber9-Apr-10 6:47 
QuestionCreating dynamicly loading pages in WPF Pin
Ian Durward9-Apr-10 0:53
Ian Durward9-Apr-10 0:53 
AnswerRe: Creating dynamicly loading pages in WPF Pin
Paul Selormey10-Apr-10 22:14
Paul Selormey10-Apr-10 22:14 
QuestionRoute Flash Event to WPF Code Pin
Tiger4568-Apr-10 23:07
Tiger4568-Apr-10 23:07 
AnswerRe: Route Flash Event to WPF Code Pin
Paul Selormey10-Apr-10 22:23
Paul Selormey10-Apr-10 22:23 
Question[C#] How to access Image created at runtime Pin
aleroot8-Apr-10 5:06
aleroot8-Apr-10 5:06 
AnswerRe: [C#] How to access Image created at runtime Pin
aleroot8-Apr-10 9:40
aleroot8-Apr-10 9:40 
QuestionWPF and dual screens [modified] Pin
phannon867-Apr-10 23:04
professionalphannon867-Apr-10 23:04 
AnswerRe: WPF and dual screens Pin
phannon868-Apr-10 23:23
professionalphannon868-Apr-10 23:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.