Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VisualStudio2010
Hi All,
 
I working on Visual Studio 2010. C# Language.
 
One of my friend has developed the WPF application. Now I want the condition that when task bar is set to auto hide mode & application is launched, it get's full screen app. But when I try to focus mouse downside, its not showing the task bar.
 
Please help.
 
I am storing height & width like this :
 
 public static void ResizePopupWindowOnDifferentResoultion(Window _clsWindow, double _dblBaseWidthWrt1920, double _dblBaseHeightWrt1200)
        {
           if (BaseWindowActualWidth == 0)
            {
                if ((System.Windows.SystemParameters.PrimaryScreenWidth / System.Windows.SystemParameters.PrimaryScreenHeight) > CstGenericCosntantsRepository.cdblMAIN_WINDOW_ASPECT_RATIO)
                {
                    _dblBaseWindowActualHeight = System.Windows.SystemParameters.PrimaryScreenHeight;
                    BaseWindowActualWidth = _dblBaseWindowActualHeight * (CstGenericCosntantsRepository.cdblMAIN_WINDOW_ASPECT_RATIO);
                  
                }
                else if ((System.Windows.SystemParameters.PrimaryScreenWidth / System.Windows.SystemParameters.PrimaryScreenHeight) <= CstGenericCosntantsRepository.cdblMAIN_WINDOW_ASPECT_RATIO)
                {
                    BaseWindowActualWidth = System.Windows.SystemParameters.PrimaryScreenWidth;
                    _dblBaseWindowActualHeight = BaseWindowActualWidth / (CstGenericCosntantsRepository.cdblMAIN_WINDOW_ASPECT_RATIO);
                    
                }
            }
                                
            _clsWindow.Width = _dblBaseWidthWrt1920 * (BaseWindowActualWidth / CstGenericCosntantsRepository.cdblMAIN_WINDOW_WIDTH);
            _clsWindow.Height = _dblBaseHeightWrt1200 * (BaseWindowActualHeight / CstGenericCosntantsRepository.cdblMAIN_WINDOW_HEIGHT);
                        
         }
 
[Edit]Code block added[/Edit]
Posted 18-Nov-12 3:33am
Edited 18-Nov-12 3:34am
122.9K
v2
Comments
Sergey Alexandrovich Kryukov at 18-Nov-12 11:33am
   
What does it mean "focus mouse downside"? The term "focus" means "keyboard focus" and nothing else, but mouse can shift the focus with the click. Only a focusable control can get focus. What control? Maybe, the question is not about focus...
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 540
1 OriginalGriff 300
2 CPallini 290
3 ChauhanAjay 124
4 George Jonsson 120
0 OriginalGriff 6,474
1 Sergey Alexandrovich Kryukov 6,190
2 CPallini 5,180
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 18 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100