Search found 6 matches

by AdamJonsson
26 Aug 2019, 09:21
Forum: General Discussion
Replies: 1
Views: 89

Double is not supported in a Windows Present

I'm trying to specify height as a resource in xaml. What I found in other forums was this: <Window x:Class="MyName.WindowMobile" 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/b...
by AdamJonsson
21 Aug 2019, 15:27
Forum: General Discussion
Replies: 1
Views: 60

Set VisualState for RowDefinition

Hi y'all!

I need to alter the value of a Grid RowDefinition for different VisualStates.
How is this achieved?

I read somewhere that one way was to give the RowDefinition a name (x:Name="..")
but I'm unsure of how to use it.
by AdamJonsson
09 Jul 2019, 21:57
Forum: General Discussion
Replies: 2
Views: 94

Re: "The tick won't stick to my checkbox" - Adding icon to custom checkbox

Thanks for the help!
And thanks for enlightening me about the option to define geometry as resources, as well as the importance of specifying the Stretch property!
by AdamJonsson
09 Jul 2019, 20:25
Forum: General Discussion
Replies: 2
Views: 94

"The tick won't stick to my checkbox" - Adding icon to custom checkbox

Hello! I'm creating my custom styled Checkbox. I thought it was a good idea to start with an empty template so that I wouldn't have to be confused by all the extra stuff that comes with the default checkbox. I just want a plain ol' checkbox that can flip between the two states. I've gotten this far:...
by AdamJonsson
09 Jul 2019, 13:52
Forum: General Discussion
Replies: 3
Views: 91

Re: Set triggers for changing color of Icon in button

Thanks Sergio! Not just for helping me with this particular question, but for pointing out the difference between using a Style or a ControlTemplate. By reading you suggestion I was reminded that Values set in a template can only be replaced by replacing the entire template. Values in a style can be...
by AdamJonsson
08 Jul 2019, 15:45
Forum: General Discussion
Replies: 3
Views: 91

Set triggers for changing color of Icon in button

Hi! I'm new to XAML. Not a programmer, but artist/designer. I need help with XAML-coding of button-template. It's a template which is used to display a button with a transparent background and a icon. I want to be able to set triggers for the buttons so that the icon changes color when button is pre...