I made a styled listbox in WPF, whenever someone clicks an element or presses an arrow key in my listbox, windows plays its "select sound".
This is not appropriate in this specific listbox, how can I disable it?
Or how can I disable all the "default sounds" / system sounds that my WPF application makes?
After a lot of searching and trying to reproduce it in a test application; I figured out that it was actually a Frame control that caused the sound.
I found an answer here Turn off navigation page sound in WPF Frame control
However that didn't work on all computers I tested it on.
I'm replacing the Frame with a Border now since I don't need navigation.
Try using itemscontrol. That doesn't provided select item functionality. If you require that then select sound should be there by default.
Related
If I try to hit the 'clear' button on my filter TextBox, the command bar thinks I'm trying to hit the ellipsis and opens, without letting my click through to the cross.
Is there anyway I can get around this?
ApplicationBar is a system control where we can't do much. We can change colors, opacity and that's all. There is no way to modify this behavior.
You have to consider changes in your design. For me as a user and graphics designer it's really strange that your search box is on the bottom. It's natural to put it on the top. It's on the top everywhere in Windows Phone, so I suggest you to be consistent with the OS.
I'm using Elysium for creation Metro-like GUI for Windows 7.
I want to create GUI for app with 3 columns with dynamic content with similar animation like its done in many mobile apps and some websites with Javascript ("infinite scrolling pages").
So you press refresh button and it adds few new feeds to each column with smooth animation.
I'm trying to move away from idea of using Javascript itself for rendering results but I pretty much don't see any other option.
What kind of controls should I use for that or/and how to implement such effect?
Update 1: Looks like its called Pile Board
Update 2: Currently looking into ObservableCollection and Elysium.Extras (DataGrid) combo.
Seems like there's also MahApps as alternative to Elysium with Pile control included.
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.
How can I animate the window elements in my application when showing them and closing them or switching between windows?
Using Control templates set Triggers on properties you wish to provide animations for to fire off a storyboard. You might check out this article or one like it. Or you can fire off a storyboard when a window becomes Active which there's also articles out there for like this one but a quick search for something like "WPF Animation" should provide a lot of places to start depending on your circumstances.
I think it's possible to animate a Window. However it's possible you do not enjoy the acceleration and ease that comes with other elements as, as far as I know, those elements are inside WPF while Windows are part of the OS. It's possible you end messing with OS's APIs.
I am an experienced coder who is trying to learn C# and WPF. Now, I am a bit of a stickler for detail, and I want to make sure my applications blend in with the rest of the user interface. However, I cannot seem to get this done using a ListView. My setup is simple - add a ListView to my window, bind to an ObservableCollection of my choice, and run the application.
The result is that the items pop up just fine (be it without meaningful contents). However, the selection rectangle on a ListView is always the dark blue that throws me back to the pre-XP days as opposed to the neater themed selection you have using the default Windows 7 visual style. To see that kind of selection in action, just select a file in explorer, or for another example look in the Programs and Features in the Control Panel. That looks nice and slick.
How can I get WPF to properly theme my ListView depending on my user settings? I don't want to reinvent the entire selection code and add tons of styling and doodahs like that - I want a plain Windows application that looks okay. The button works fine, textboxes work fine, comboboxes look fine, etc. It's just the ListView that looks totally crap.
Edit: I have no problems using another (very, very preferably not a thirdparty) control if required, but I do want a list of items that looks native and I approach a layout similar to the Tiles option in Explorer for each selected item (icon, desc, extra line of info). Vertical scrolling only is what I need.
If you use a ListView with ListView.View set to a GridView then you get a pretty similar look as Windows 7 explorer. (Atleast in my opinion, or is this the look you're talking about?). It also follows the active theme
Example 1. ListView with GridView to the right. Selection active
Example 2. ListView with GridView to the right. Selection inactive
Example 3. Using High Contrast Theme #2