I'm forced to change look of ApplicationBar on application that runs on WindowsPhone 8.1. I need application bar to be on top not bottom. I tried to google it, but didn't come up with any simple solution. I'm not very experienced on this platform, so I would appreciate any help. Thanks.
I am not aware of any way to do this with the standard application bar
But you can do your own control - put a simple Grid with several AppBarButton controls at the top of your page. If you want more advanced functionality like handling orientation changes, menu items, etc. .. you will have to program them yourself.
Related
I want to design a modern looking UI using visual studio designer in xaml. It gives me a nice toolbox which I can use to create a UI visually by drag and drop. As it is almost behaving like HTML, I was wondering if it too has a rich library of themes. I found some, but they are not editable through designer.
Can someone please help me out and direct me to appropriate links where I can find editable themes for xaml for my WPF project?
I use this:
Mahapps.metro http://mahapps.com/
I very good looking thems and it is free. More info https://stackoverflow.com/a/15500408/5816153
Others:
Modern UI for WPF (MUI) - https://github.com/firstfloorsoftware/mui
And for more info on SO: Making WPF applications look Metro-styled, even in Windows 7? (Window Chrome / Theming / Theme)
i'm making a universal app for Windows 8.1 and Windows Phone 8.1 and i'd like to know what is the control in a windows app which work like the PIVOT in WP.
I found this picture in the msdn site http://assets.windowsphone.com/ec9dcbf2-d057-4d2d-a627-01565d2ff76a/WSA_Design_L2_1_UniquelyWindows_ModernDesign_702x394px_InvariantCulture_Default.jpg
on the picture you can see a menu on top, i imagine that if you click on "Timer", the main screen would slide to the left to make room for the main screen for "Timer".
It's the most pivot-like that i found but i don't know what is used to do that.
Thanks in advance and sorry for my english, hard to find the right words when you don't know how it's called >< !
You can use FlipView control and place grids in it. It's not same as Pivot though, putting title on page items like PivotHeaders will be a little harder. But still there is almost a work around.
There isn't a direct equivalent. The point of the pivot is to break up the UI into phone screen-sized parts; you don't needs this so much on the tablet/PC.
The hub app template is the closest starting point, but really you should probably design your app as if all the pivots are open at once and spread out horizontally.
Use a grid control with several more sub-grids within it. Or you may want to redesign your layout completely for larger screens. You'll need to put the controls within a scrollviewer in order to let the user scroll left/right on screens that won't fit it all at once.
I am aware of app bar icons and menu items in Windows phone. What I want it is an app bar similar to phone's default windows phone store where it shows up "try", "buy" and share in menu item... How can I achieve this? I looked into documentation of ApplicationBar, but it didn't help.
I want normal buttons to be inside application bar.. If that is not possible in appbar how can I mock something similar to the one which shows up in windows phone store..
Not sure that it is possible
Though, you may try to take a look at some custom appbars. For example, Cimbalino appbar is made as behavior (so it supports binding) - probably, you'd be able to set button's style either.
I have an idea for a personal project. And I know one way of accomplishing it in Windows Forms (which I no longer wish to use). Basically I could (in WinForms) just draw everything onto the screen (Form) and then when I need to switch views/states of the application, just redraw the new stuff in the old stuff's place.
But how can we have different states in WPF? Is there a "right" or "proper" way of doing this? Is something like this covered somewhere in the docs?
I'd like to do my own searching, but I have no idea what exactly to look for, and current attempts at finding the right information, so far have yielded no helpful (or even relevant) results.
Any help at all will be greatly appreciated. I am new to WPF, but have been making a lot of progress this past week!
Thank you!
P.S.:
I just thouhght of something. If the solution was to draw what is needed for one screen, and when it is time to display the next screen, just dispose of/hide everything and create/display the new stuff, then how would we get around this? Because we can't/shouldn't change XAML markup at runtime, can/should we? :/
Not sure how you drawn your views/states in WinForms (direct painting on a Graphics object?).
The closest to what you're describing is the VisualStateManager. You can use it to statically define several visual states inside a single XAML and transit between them (using a smooth animation if you want).
If what you've done was show different Forms with Show/ShowDialog(), then the equivalent would be to use different Windows and Show/Hide them.
If you just cleared/added Controls to your form, then you can do just the same in WPF. Most Controls in WPF have a Content or Children property instead of Control.Controls in Forms.
I don't know if I understand what you really want. But here are my thoughts:
You can use several Windows and Show/Hide them accordingly
You can use the Frame/Page functionality in WP (MSDN)
if you really need to you could load your XAML and remove the topmost content in your Window and replace it with the loaded content
You could use the VisualStateGroup functionality to change the appearance of your current window
I think you will be happy with the second solution
suppose i have label and button on textbox and i want that if i resize my win form then my label and button size and position will change. i got the solution in wpf but i am working with win form apps. here i am giving the url from where you can see what kind of output i am looking form. the url is http://i.stack.imgur.com/QeoVK.png. please see the image and tell me how can i implement the same output in win form apps. please help me with code snippet in c#.thanks.
You should make yourself familiar with the Anchor and Dock properties of the controls. They are great tools for this kind of work.
Note though that they will alter the size of the controls only, they will not affect font size.
consider that window forms and WPF are very different, especially about the UI management and controls nesting / UI composition.
I have seen some articles describing what you are trying to do now in windows forms, long ego, it's something called control scaling if I recall well.
Use Anchor and Dock properties for simple stuff and SizeChanged event for more complicated stuff. UI positioning API is much more limited than WPF and you will probably have to do stuff like scaling manually.