I have a regualar HTML table to be displayed on blackberry application. It displays data perfectly fine with scroll bar using overflow property. But this scrollbar is not very user friendly, it bearly works. Pagination cannot work because the height of the table is specified by user and it will make the application very slow due to reloading.
Is there any other option to make scrollbar work properly.
thanks
If you're displaying this in the BlackBerry browser, then no, there is no way to improve its scroll bar.
Fundamentally, the answer is to make a version of the UI that works on a blackberry-sized screen. If your application is properly structured, that is pretty easy as its just another view on your data.
Related
I am programming a Windows 8.1 App using C#/XAML as well as the MVVM-Light Toolkit.
In that App I have a FlipView with an items in it that occupy the space of the whole Page. However when scrolling between them it does not look smooth because instead of really scrolling the FlipView directly displays about 8/10 on one side of the item that is being scrolled to and then just scrolls the left 20%.
My question now is whether it is possible to make the FlipView display all of the content. I've also thought about replacing the FlipView with a GridView. That would imply the problem of switching directly to the next item when the GridView is scrolled.
I don't see any code in my App that fits the question and research did not provide an answer yet.
Help is much appreciated.
Thanks :)
Problem solved.
I just had an unnecessary, complex task running every time the user scrolls. The issue I had was just a lag. Since it was the first time I used a FlipView I thought that was regular behaviour haha :D
Thank you anyways :)
Currently, I am using an Infragistics UltraGrid in Windows Forms application. I have columns generated in the grid dynamically. I have nearly 20 columns inside the grid and therefore also has a horizontal scroll bar in the grid. I have all my columns in disabled state (read-only) except the last one.
But now the problem is, whenever I open the application, the grid is loaded with the scroll bar on the extreme right side to show the active column. But I want the scroll bar to be on left side so always the first column of the grid is visible. I could not find any scroll bar position related properties in the grid. I also tried seeing some scrollbar related events but nothing worked. Do anyone have any idea what can be done. I have also posted this question in Infragistics forum and waiting for answer. Could you please help me to get around this problem?
I am also unable to understand what code sample is to be posted. I dont think of any helpful code extract for this problem.
I try to reproduce your issue using our latest available version - 13.2.20132.2010, but without success. The grid show the first column. Could you please tell me what is your current version. Are you able to upload small sample that reproduce this issue. I`ll be glad to research it for you.
Are you using Save/Load layout methods of your grid, because this is one possible reason for this behavior or maybe somewhere into your code you call Scroll methods.
Let me know if you have any questions.
I want to do this correctly instead of a hack, so help is appreciated
I am starting a very basic project, using a DevExpress NavBar control in a WinForms project, in C#. Easy enough.
NavBar is in the left part of a splitter, and I want the right part of the splitter to change based on what item you have clicked on in the nav bar. You know, one second its a grid, then next it's a calendar.
I could screw around with hiding and showing windows, but I know that's not right.
Just using a tabbed control seems real close, except I don't need the tabs, the nav bar is where the user picks what he wants to see.
So would I use panels in some way? Some type of modified tab control? Do i just pile on top of one another my various pages of controls for each nav option? So many pieces, doesn't seem to be any clear documentation on how to accomplish this very simple problem... after an hour of digging, thought I would ask.
Thanks.
So would I use panels in some way? Some type of modified tab control?
You can use tab control in other way. Just hide the XtraTabControl headers via the XtraTabControl.ShowTabHeaders option.
You can create a user control for each view that a NavBar button would invoke. When the user clicks the button you dynamically generate that view and add to the right part of the splitter. What ever user control was there before you dispose of.
This will keep your app very light when executing and make it composable.
I am using a picture box in my C# application, I want it to cover a certain portion of the web browser (the username part on youtube).
I have a 21.5" monitor and this is what it looks like to me:
But then this is what it looks like to one of my users with a 24" monitor:
As you can see the position of the picture box has moved up due to that persons screen size (I believe)
Is there a way to make sure that it will always be over that section of the web browser or moving it to that section of the web browser?
Thanks.
I am convinced your approach is wrong and would break anytime either for screen resolution or size changes, or for using the mouse-wheel to zoom in/out the page or whatever. it is just unreliable and patching this by overlapping another UI control like a picture box or a panel on top of what you want to hide is simply insecure and unreliable.
I think the tow real options you have are these:
You try to interpret the page content and remove from the page's DOM the information you do not want to show to the user (eventually HTML Agility Pack could help for this DOM parsing and manipulation but I am not sure if you can read what the WebBrowser control is showing and inject changes into it);
use the YouTube APIs and Tools - .NET APIs to load the videos and details you want to load and show but rendering this information with your specific UI elements in your windows forms application, without using a browser to show the normal YouTube site.
Probably the second option takes more work but is more secure, I am not sure 100%, as I said, if the first option is viable at all. You could search for HTML Agility Pack and web browser control to see if anybody has done this before already :)
I am trying to develop an windows application like Google chrome Browser in WPF
using C#.I am facing problem in making my own Custom Window and Placing Tabs at the Place of the Title Position of that window.
Please suggest me how to go for it, is there any tool for this ?
Guide me please..........
Updated:
Hi Friends Thanks for your active responses and I also followed the links you gave and the way you told, but still I have doubts in developing the application please give me some more ideas where I can develop this application by using Google Chrome like controls. I want to give my application Google Chrome like look and feel.....
Google Chrome essentially custom-draws the non-client area of its window to remove things that it considers superfluous like the title bar. That's how it gets the tabs to replace the title bar of the window, just like how Microsoft Office places its "pearl" and quick access toolbar in the title area of document windows.
To do something similar in WPF, you may find this article useful: Link
Remember that any time you re-implement the standard windows chrome, you're going to have to handle a bunch of stuff that Windows normally makes transparent to you, like resizing, minimizing, maximizing, moving, and closing a window.
It is worth considering that both Google Chrome and Microsoft Office applications (among others) behave differently depending on whether Aero Glass and the Desktop Window Manager (DWM) are present/enabled. You're going to have to make sure that your application degrades gracefully when these things are missing. I would advise being sure that you can really make a convincing case for the necessity and benefit to the users before you invest all the time and energy it takes to do things like this in your application.
I just finished a Google Chrome-like Tab Control for WPF. You can find the project at https://github.com/realistschuckle/wpfchrometabs and blog posts describing it at
Google Chrome-Like WPF Tab Control
ChromeTabControl and Visual Children in WPF
WPF Chrome Tabs Functioning
Hope that helps!
It appears that Chrome draws its tabs within a limited region of the title bar area. When enough tabs are open, the width of existing tab controls is reduced to make room for a new tab.
I would suggest that you adopt a similar strategy by drawing your tabs in a suitably sized Rectangle which does not intersect with the caption buttons (Minimize, Maximize Close) and reducing the width of existing tab headers when the region becomes full
[Update 1]
While I haven't seen your code, I would suggest this happens because the tab header (the part displayed in the title bar area) and the tab page (the part covering most of the screen) are a part of the same control and are drawn as a unit, so when you try and draw the header in the region the tab content is redrawn too.
If this is the case, then you need to draw the tab header and the content page as separate controls and maintain some state in the tab that indicates which tab page should become visible when the tab is selected.