Search found 10 matches

by AdamJonsson
13 Nov 2019, 11:24
Forum: General Discussion
Replies: 5
Views: 195

Re: Should I use Pages or Windows for different screens in App. Suggestions for making a Navbar.

What's the reason for using DataTemplates in <Grid.Resources> and <TabControl ItemsSource="{Binding Pages}".../>? I'm don't quite understand what it means? I did this and it works, but I assume there are some downsides with it as it's not what you recommended.. <TabControl Grid.Row="1" Style="{Dynam...
by AdamJonsson
08 Nov 2019, 13:28
Forum: General Discussion
Replies: 5
Views: 195

Re: Should I use Pages or Windows for different screens in App. Suggestions for making a Navbar.

Or is this usually done with a TabControl?
by AdamJonsson
08 Nov 2019, 13:09
Forum: General Discussion
Replies: 5
Views: 195

Should I use Pages or Windows for different screens in App. Suggestions for making a Navbar.

The mobile app I'm working on has a Navigation bar at the bottom of the screen with four buttons. It's always visible and will toggle different screens. I thinking that the content of each screen would be designed as a page and clicking the buttons will determin which page is shown in the Window. Is...
by AdamJonsson
26 Aug 2019, 09:21
Forum: General Discussion
Replies: 1
Views: 187

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: 114

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: 147

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: 147

"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: 141

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: 141

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...