Click here to Skip to main content
15,890,690 members
Home / Discussions / WPF
   

WPF

 
QuestionBest Design Approach For This App Pin
Kevin Marois15-Feb-12 14:46
professionalKevin Marois15-Feb-12 14:46 
AnswerRe: Best Design Approach For This App Pin
SledgeHammer0116-Feb-12 7:32
SledgeHammer0116-Feb-12 7:32 
GeneralRe: Best Design Approach For This App Pin
Kevin Marois16-Feb-12 7:43
professionalKevin Marois16-Feb-12 7:43 
QuestionSet Combo SelectedItem In DataTemplate Pin
Kevin Marois15-Feb-12 5:30
professionalKevin Marois15-Feb-12 5:30 
AnswerRe: Set Combo SelectedItem In DataTemplate Pin
SledgeHammer0115-Feb-12 8:05
SledgeHammer0115-Feb-12 8:05 
GeneralRe: Set Combo SelectedItem In DataTemplate Pin
Kevin Marois15-Feb-12 15:48
professionalKevin Marois15-Feb-12 15:48 
GeneralRe: Set Combo SelectedItem In DataTemplate Pin
SledgeHammer0116-Feb-12 7:25
SledgeHammer0116-Feb-12 7:25 
QuestionTrying to use the VisualStateManager Pin
Super Lloyd15-Feb-12 2:04
Super Lloyd15-Feb-12 2:04 
I'm giving a try to VisualState in my template for a WP7 app.
I have an ExpanderView and I'd like to have a little arrow in the header showing the state (expanded or not) and rotate it smootly from up to down when IsExpanded change value.

I have an attached property WpfUtils.VState which call VisualStateManager.GoToState(target) when a binded value change.
1st problem it should target a Control but I'm trying to update an Image...
I "worked around it" (hopefully, doesn't work anyway) by templating the container object.

2nd problem, it's just not working! Unsure | :~

Here is my XAMl, any idea?

HTML
<toolkit:ExpanderView 
	x:Name="eview"
	gwpf:WpfUtils.VState="{Binding IsExpanded, Converter={StaticResource ccvt}, RelativeSource={RelativeSource Self}}"
	>
<VisualStateManager.VisualStateGroups>
	<VisualStateGroup x:Name="MyStates">
		<VisualState x:Name="MyCollapsedState"/>
		<VisualState x:Name="MyExpandedState">
			<Storyboard>
				<DoubleAnimation
					Storyboard.TargetProperty="Header.RenderTransform.Angle"
					Duration="0:0:0.5" From="-90" To="90"/>
				<!-- 
					Storyboard.TargetName="ArrowExpandT" 
				-->
			</Storyboard>
		</VisualState>
	</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
	<toolkit:ExpanderView.Header>
		<StackPanel Orientation="Horizontal">
			<Image Width="36" locv:ThemedImage.Path="appbar.next.rest.png" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<RotateTransform x:Name="ArrowExpandT" Angle="-90"/>
				</Image.RenderTransform>
			</Image>
			<TextBlock 
				Text="{Binding Local.NewItem, Source={StaticResource strings}}" 
				FontSize="{StaticResource PhoneFontSizeLarge}"
				VerticalAlignment="Center" Margin="8"/>
		</StackPanel>
	</toolkit:ExpanderView.Header>
	<StackPanel Orientation="Vertical">
		<locv:ItemView x:Name="NewItemUI" />
		<!-- add now -->
		<Button 
			VerticalAlignment="Bottom" HorizontalAlignment="Right" 
			Content="{Binding Local.Add, Source={StaticResource strings}}"
			Click="DoAddItem"/>
	</StackPanel>
</toolkit:ExpanderView>

A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.

QuestionStoring Data on Server or Client in SilverLight4 Pin
idreesbadshah14-Feb-12 23:48
idreesbadshah14-Feb-12 23:48 
AnswerRe: Storing Data on Server or Client in SilverLight4 Pin
Abhinav S14-Feb-12 23:52
Abhinav S14-Feb-12 23:52 
GeneralRe: Storing Data on Server or Client in SilverLight4 Pin
idreesbadshah14-Feb-12 23:56
idreesbadshah14-Feb-12 23:56 
GeneralRe: Storing Data on Server or Client in SilverLight4 Pin
Pete O'Hanlon15-Feb-12 1:35
mvePete O'Hanlon15-Feb-12 1:35 
GeneralRe: Storing Data on Server or Client in SilverLight4 Pin
idreesbadshah15-Feb-12 2:16
idreesbadshah15-Feb-12 2:16 
GeneralRe: Storing Data on Server or Client in SilverLight4 Pin
Pete O'Hanlon15-Feb-12 2:29
mvePete O'Hanlon15-Feb-12 2:29 
QuestionWPF Handling Events In MVVM Pin
Kevin Marois14-Feb-12 10:44
professionalKevin Marois14-Feb-12 10:44 
AnswerRe: WPF Handling Events In MVVM Pin
SledgeHammer0114-Feb-12 11:02
SledgeHammer0114-Feb-12 11:02 
GeneralRe: WPF Handling Events In MVVM Pin
Kevin Marois14-Feb-12 11:21
professionalKevin Marois14-Feb-12 11:21 
GeneralRe: WPF Handling Events In MVVM Pin
Kevin Marois14-Feb-12 11:53
professionalKevin Marois14-Feb-12 11:53 
GeneralRe: WPF Handling Events In MVVM Pin
SledgeHammer0114-Feb-12 11:56
SledgeHammer0114-Feb-12 11:56 
GeneralRe: WPF Handling Events In MVVM Pin
Kevin Marois14-Feb-12 12:01
professionalKevin Marois14-Feb-12 12:01 
GeneralRe: WPF Handling Events In MVVM Pin
SledgeHammer0114-Feb-12 12:05
SledgeHammer0114-Feb-12 12:05 
GeneralRe: WPF Handling Events In MVVM Pin
Kevin Marois14-Feb-12 12:20
professionalKevin Marois14-Feb-12 12:20 
AnswerRe: WPF Handling Events In MVVM Pin
Wes Aday14-Feb-12 11:40
professionalWes Aday14-Feb-12 11:40 
GeneralRe: WPF Handling Events In MVVM Pin
Kevin Marois14-Feb-12 11:49
professionalKevin Marois14-Feb-12 11:49 
GeneralRe: WPF Handling Events In MVVM Pin
Wes Aday14-Feb-12 11:57
professionalWes Aday14-Feb-12 11:57 

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.