Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using XamlFlair in a WiX setup wizard #108

Open
EasyRhinoMSFT opened this issue Apr 22, 2023 · 14 comments
Open

Using XamlFlair in a WiX setup wizard #108

EasyRhinoMSFT opened this issue Apr 22, 2023 · 14 comments

Comments

@EasyRhinoMSFT
Copy link

I'm using WixSharp to build an installer using its WPF capability. I tried to use XamlFlair in one of the dialogs but the animations don't run. I got everything working in a WPF test app, so I know I have it set up correctly. Is there an event that doesn't fire perhaps?

@assassin316
Copy link
Collaborator

@EasyRhinoMSFT so to understand, you added Animations.xaml and in your project and referenced it in app.xaml.cs? Any errors occur? Any way to provide sample code or screenshots to illustrate what you have?

@easyrhino-gh
Copy link

Thanks for your quick reply, been slammed at work so I haven't gotten back to this.
Currently I have this problem where the dialog comes up all white -- I fixed this once before but can't remember what the problem was (it will probably occur to me in the shower or while I'm trying to fall asleep).
I added you to the repo if you want to take a look. \src\Hotlist.Setup\Dialogs\WelcomeDialog.xaml

@assassin316
Copy link
Collaborator

@easyrhino-gh I did a search on the code but saw nothing with Xamlflair. Which file and which branch?

@assassin316
Copy link
Collaborator

assassin316 commented May 24, 2023

@easyrhino-gh

Try this:

			xml<xf:CompoundSettings x:Key="SparkleEffect">
				<xf:CompoundSettings.Sequence>
					<xf:AnimationSettings
						Kind="ScaleXTo,ScaleYTo,RotateTo,FadeTo"
						Delay="1000"
						ScaleX="4.0"
						ScaleY="4.0"
						Rotation="270"
						Opacity="1"                   
						Duration="700"/>
					<xf:AnimationSettings 
						Kind="ScaleXTo,ScaleYTo,RotateTo,FadeTo"
						ScaleX="0"
						ScaleY="0"
						Opacity="0"
						Rotation="360"
						Duration="500"/>
				</xf:CompoundSettings.Sequence>
			</xf:CompoundSettings>

@easyrhino-gh
Copy link

easyrhino-gh commented May 25, 2023

No luck, I'm still getting a blank dialog. If I remove the animation from the image, it renders correctly.

@assassin316
Copy link
Collaborator

@easyrhino-gh Is there any possibility that you can create a sample page with this scenario? Even just a page of code I can copy paste, I can't copy/paste this since there are bindings in place.

@easyrhino-gh
Copy link

@assassin316 Sorry I'm getting pulled into some work stuff so I have to put this back on hold. Will get back to you asap. Really appreciate your help with this!

@easyrhino-gh
Copy link

easyrhino-gh commented May 27, 2023

OK I added a test dialog in this branch: https://github.com/easyrhino-gh/hotlist/blob/assassin316/src/Hotlist.Setup/Dialogs/TestDialog.xaml
If you want to run the msi, F5 the solution, which will build the msi (output in the Hotlist.Setup folder). Then run it manually. I haven't found any way to debug it beyond its log file. Also I don't remember if I mentioned it, but I have a standalone WPF app where this animation works just fine (same images).

@assassin316
Copy link
Collaborator

@easyrhino-gh links are dead...did you remove the repo ?

@EasyRhinoMSFT
Copy link
Author

@assassin316 sorry messing with settings, try again

@assassin316
Copy link
Collaborator

@EasyRhinoMSFT i apologize for the delay, having a very hectic week, I'll be back as soon as I can to help you.

@easyrhino-gh
Copy link

No worries! I appreciate your help whenever you can fit it into your schedule.

@assassin316
Copy link
Collaborator

@easyrhino-gh very strange, I used the sample xaml code in my app and it worked, had trouble running your app since my WPF setup got messed up recently, but the code looks ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants