My WPF Program collapsed the taskbar

Hi,
I have created a program to view photos, but it collapsed the taskbar. I can't see the taskbar anymore because the MainWindow is before it. This are the settings of MainWindow.xaml:
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Fotoscherm - PhotoViewer 2015" Height="708" Width="1017" WindowStartupLocation="CenterOwner" UseLayoutRounding="False" ResizeMode="NoResize" WindowState="Maximized">
<Grid Margin="0,0,0,-50">
<ListView x:Name="FotoListView" HorizontalAlignment="Left" Height="330" VerticalAlignment="Top" Width="1027" Margin="0,0,-16,0">
<ListView.View>
<GridView>
<GridViewColumn Header="Naam" Width="300" DisplayMemberBinding="{Binding Naam}"/>
<GridViewColumn Header="Wanneer?" Width="100" DisplayMemberBinding="{Binding Wanneer}"/>
<GridViewColumn Header="Waar?" Width="100" DisplayMemberBinding="{Binding Waar}"/>
<GridViewColumn Header="Opmerkingen" Width="300" DisplayMemberBinding="{Binding Opmerkingen}"/>
<GridViewColumn Header="Grootte" Width="100" DisplayMemberBinding="{Binding Grootte}"/>
</GridView>
</ListView.View>
</ListView>
<MediaElement x:Name="FotoMediaElement" HorizontalAlignment="Left" Height="500" Margin="0,330,0,0" VerticalAlignment="Top" Width="505"/>
<GridSplitter HorizontalAlignment="Left" Height="458" Margin="505,330,0,0" VerticalAlignment="Top" Width="10"/>
<Expander x:Name="NormaalExpander" Header="Normaal" HorizontalAlignment="Left" Margin="514,328,0,0" VerticalAlignment="Top" Height="122" IsExpanded="True" Width="350">
<Grid>
<Label x:Name="NaamLabel" Content="Naam:"/>
<Label x:Name="WanneerGemaaktLabel" Content="Wanneer gemaakt?" Margin="0,19,0,-19"/>
<Label x:Name="WaarGemaaktLabel" Content="Waar gemaakt?" Margin="0,38,0,-38"/>
<Label x:Name="Opmerkingen" Content="Opmerkingen" Margin="0,57,0,-57"/>
<Label x:Name="GrootteLabel" Content="Grootte:" Margin="0,76,0,-76"/>
<Label x:Name="NaamLabelInvullen" Content="-" Margin="121,0,-121,0"/>
<Label x:Name="WaneerGemaaktLabelInvullen" Content="-" Margin="121,20,-121,-20"/>
<Label x:Name="WaarGemaaktLabelInvullen" Content="-" Margin="121,39,-121,-39"/>
<Label x:Name="OpmerkingenInvullen" Content="-" Margin="121,58,-121,-58"/>
<Label x:Name="GrootteInvullen" Content="-" Margin="121,76,-121,-76"/>
</Grid>
</Expander>
<Expander x:Name="GeavanceerdExpander" Header="Geavanceerd" HorizontalAlignment="Left" Margin="515,462,0,0" VerticalAlignment="Top" Height="122" IsExpanded="True" Width="349">
<Grid>
<Label x:Name="ExtensieLabel" Content="Extensie:"/>
<Label x:Name="VolledigPadLabel" Content="Volledig pad:" Margin="0,19,0,-19"/>
<Label x:Name="VersieLabel" Content="Versie:" Margin="0,38,0,-38" IsEnabled="False"/>
<Label x:Name="SmileysLabel" Content="Smileys:" Margin="0,57,0,-57" IsEnabled="False"/>
<Label x:Name="ExtensieInvullen" Content="-" Margin="120,1,-120,-1"/>
<Label x:Name="VolledigPadLabelInvullen" Content="-" Margin="120,19,-120,-19"/>
<Label x:Name="VersieLabelInvullen" Content="-" Margin="120,38,-120,-38" IsEnabled="False"/>
<Label x:Name="SmileysInvullen" Content="-" Margin="120,57,-120,-57" IsEnabled="False"/>
</Grid>
</Expander>
<GridSplitter HorizontalAlignment="Left" Height="13" Margin="505,450,0,0" VerticalAlignment="Top" Width="506"/>
</Grid>
</Window>
How can I fix this?

I notice this is from the vb forum.
I have a c# solution, but it'll be very easy to adapt to vb.
I would recommend removing these settings:
ResizeMode="NoResize" WindowState="Maximized">
Then add a ContentRendered event to your window.
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ContentRendered="Window_ContentRendered"
Title="Fotoscherm - PhotoViewer 2015" WindowStartupLocation="CenterOwner" UseLayoutRounding="False">
<Grid Margin="0,0,0,-50">
Maximise the window in code behind.
private void Window_ContentRendered(object sender, EventArgs e)
this.WindowState = System.Windows.WindowState.Maximized;
You will find it then respects the toolbar just like the user had maximised the window.
Hope that helps.
Recent Technet articles:
Property List Editing;  
Dynamic XAML
This don't works!

Similar Messages

  • Pinning Programs to the Taskbar via unattend.xml

    Trying to pin the following programs to the taskbar buy adding them in the "amd64_Microsoft-Windows-Shell-Setup__neutral"of the specialize pass of unattend.xml file used by SCCM\OSD in the "Apply Operating System' step.
    -<TaskbarLinks>
    <Link0>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Word 2010.lnk</Link0> <Link1>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Excel 2010.lnk</Link1> <Link2>%ALLUSERSPROFILE%\Microsoft\Windows\Start
    Menu\Programs\Microsoft Office\Microsoft Outlook 2010.lnk</Link2>
    </TaskbarLinks>
    I edited the unattend file using WSIM tool and every other setting I applied  using the file has worked but these just dont show up on the taskbar.
    Weird thing is if i manually pin say Word for example  to the taskbar after the OSD deployment is complete and hover the mouse over it it will display as Microsoft Word 2010 (2) as if it is the 2nd time the program has been pinned to the taskbar even
    though you can only see one of them. same for Excel and Outlook but if I add say Access it will not have the (2) after it
    So it's like the settings from the unttend file are working somewhat as Win7 thinks there is already a shortcut there but they are just not displaying...
    I've seen others saying this can only be done when syspreping and call the unattend at that time but if that is true why is it in the "amd64_Microsoft-Windows-Shell-Setup__neutral" Components of WSIM?

    I presume you are not also configuring any of the same links in the StartPanelLinks? (I have heard that it sometimes causing conflicts).
    I agree the Deployment guys stuff is heavily MDT-centric but in this instance all that is required to use their script is to copy the ZTIUtility.vbs
    (from the scripts folder in toolkit package) and no environment changes. However you don't even need to do this as you could simply adapt their code snippet and put into a vbs file (A bare bones example of this is shown below but with no error checking or
    logging, which is built into the Deployment Guys sample script).You could configure this to be run once by each user when they first logon (e.g. via ActiveSetup or RunOnce registry key) .
    Const CSIDL_COMMON_PROGRAMS = &H17
    Const CSIDL_PROGRAMS = &H2
    Set objShell = CreateObject("Shell.Application")
    Set objAllUsersProgramsFolder = objShell.NameSpace(CSIDL_COMMON_PROGRAMS)
    strAllUsersProgramsPath = objAllUsersProgramsFolder.Self.Path
    Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Microsoft Office")
    Dim arrShortcuts
    arrShortcuts = Array("Microsoft Office Word 2010.lnk", _
    "Microsoft Office Excel 2010.lnk", _
    "Microsoft Office Outlook 2010.lnk")
    Dim i, objShortcut
    i = 0
    For Each objShortcut In arrShortcuts
    Set objFolderItem = objFolder.ParseName(arrShortcuts(i))
    PinToTaskBar(objFolderItem)
    i = i+1
    Next
    Sub PinToTaskBar(FolderItem)
    For each verb in FolderItem.Verbs()
    If verb.Name = "Pin to Tas&kbar" then
    verb.DoIt()
    End If
    Next
    End Sub
    Thanks you very much I will give this a shot.
    But no i was not trying to add anything to the StartPanelLinks, just want to add 3 items to taskbar (which I understand 3 is the limit). Frustrating that you have to resort to scripts when the setting to do it appears to be
    there for you to use in the WSIM setting  but it just doesn't work

  • When opening a pinned program from the taskbar the programs opens in a new icon in the taskbar.

    Hey
    In some special occasions, I have the problem that when you press an pinned icon the program is not "grouped" with the pinned icon, but opens in a new icon, please see this image to better understand:
    http://misc.norphf.dk/PinnedIcon.bmp
    As you can see in the picture, the properties of both icons are alike
    In this case I have manually changed the icon to add the "4twhpv3 dl", but I also have the problem with e.g. Active Directory Users and Computers 32BIT path "%windir%\SysWOW64\dsa.msc" it works with the normal ADUC started form "control panel" (I use the 32
    bit version to get an extension to work).
    Can someone help with this?
    Regards Lars Mortensen

    Doesn’t affect functionality?! - It sure does, with my Active Directory Users and Computers, which I have lying on win+7 every time I press win+7 it opens a
    new window instead of using the currently opened, that’s not very functional....
    But found a solution myself
    If I create a shortcut, and changes this shortcut, places that shortcut on a local disk (Network locations/mapped drives doesn't work) then I can right click that
    shortcut and "Pin to taskbar", then the program opens in the same icon and does not create a new.
    Hopes this is understandable.

  • In Windows 7, is there a way to make Firefox one program in the taskbar, instead of having each tab listed as a seperate program?

    In 3.6, when you clicked on the Firefox icon in the Windows taskbar, you'd be switched to Firefox. Now, in 4.0b, when you click the logo, it displays the tabs you have open and you have to choose on to return to Firefox. It slows down switching between windows. Is there a setting, in Firefox, or windows to change it back to the way it used to work?

    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears
    # This brings up a list of preferences, in the filter box type '''preview'''
    # Double-click on the preference '''<nowiki>browser.taskbar.previews.</nowiki>enable''' to change its value to '''false'''

  • Not getting notifications in the taskbar anymore

    Hey,
    i just tried a lot of stuff and it still doesn't work so i'll ask here.
    Status:
    my Skype showed Notifications in the taskbar and played a sound when i got a new message till 3 or 4 days ago.
    I didn't change anything in Skype and i'm not aware that i changed anything on my pc since then.
    EDIT: Additionally i just found out, i dont have Notification or message counter for new messages besides the contact name/picture in the skype window. I don't hear the sound when skype is the active window and i am in a different conversation and someone messages me. (NO MESSAGE NO SOUND NOTIFICATION ???). Only when im in the conversation already i hear the sound, and thats because i ticked that option in the skype sound menu to test.
    My sound settings are on, my skype settings for incoming messages are on. If someone calls me i get the ring sound. In the taskbar theres no orange indicator anymore for new messages.
    What I already did:
    - installed over my current installation
    - did a clean install (deleted appdata folder)
    - restarted pc
    - unpined and pined the program to the taskbar, tried without pinning it
    - ran as administrator and without it
    running Windows 7 on newest updates, drivers are updated, rest of the pc runs fine, skype version 6.21.0.104, if you need additional infos tell me
    ATM I'm rather clueless where the problem is, it kinda just appeared. It's really annoying if i don't hear nor see when i have new messages.
    any help is appreciated
    [Removed for privacy]
    Solved!
    Go to Solution.

    Given the number of users with notification problems, and always the same remedy "click on user, go to Conversation menu, edit Notification Settings" I was rather thinking of a small Skype gui design flaw here. Why isn't the Notification Settings entry listed in the -context- menu? (right click on user)
    Until now I've always been thinking that the top menu bar Notification Settings entry was some -global- setting, for all users at once.
    Thx,
    Andre

  • Remove context menu for the taskbar

    Good afternoon,
    It is possible to restrict only one program to be executed by the taskbar?
    The aim is to be able to open all programs by the taskbar by right click, with the exception of one.
    Cmpts,

    Hi hugo,
    I am quite sure about  your exact need .
    The programs opened should not be combined ?
    Check this setting :
    If this is not what you want ,please explain your needs more detailed .All the settings about the taskbar are listed in the properties. You can have a look at these settings to find out the exact options to meet your need .
    Best regards

  • How do I change the taskbar icon to use the new icon?

    I created an icon (Visual Studio 2013) that I placed on the Windows 7 taskbar a month ago. 
    I have changed the icon.  The new icon displays correctly when I place a shortcut on my desktop. 
    When I unpin the old icon, and drag the new icon to the taskbar, it displays the old icon. 
    When I run the program from the taskbar, the program displays the new icon.  However, the old icon remains on the taskbar.
    How do I change the taskbar icon to use the new icon?
    bhs67

    It's because they're cached.
    The cache will usually be refreshed only when you reboot.
    You can, however, force a refresh.
    Choose run, type or paste in:
    ie4uinit.exe -ClearIconCache
    More info:
    http://superuser.com/questions/499078/refresh-icon-cache-without-rebooting
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Three unwanted programs joined the 30.0 update from a reminder button on taskbar, and do not appear in downloads.

    Today, 6/18/2014, on my laptop, running Win8.0, a Firefox icon appeared on the taskbar, saying a new version 30.0 was available. I clicked on it, but missed as it closed. Upon opening the hidden icons, I clicked on the Firefox icon, the words 'update Firefox 30.0' appeared as I clicked on the icon. Then all hell broke loose. Adblock plus didn't stop anything, so the items were believed to be from Mozilla. A box appeared on top, saying "Update Windows 8 Drivers", and was flashing. The download box for Firefox may have been opened, and before allowing an install, several programs and add-ons were offered, but I tried to decline them. I clicked on the driver update, and Advanced System Protection from 'powerbundle.systweak.com, Driver support from secure.driversupport.com and System Speedup from www.systemspeedup.com were all downloaded without asking. They did not appear in the 'Downloads' history. Also, a Microsoft box appeared asking to download to Win Explorer, (like am I nuts?), I use Mozilla on purpose. Closed that box. Next, the Adv. Sys. Protector was analyzing my computer, with a Microsoft logo on the screen. It said I had 167 registry problems. After viewing, I decided to close all open windows. Then, in Programs, I found the three new programs and uninstalled them. When I opened Help About, in Firefox, the new version was just starting to install.
    These boxes appeared so fast, and weren't touched by Adblock, at first I thought you might have bundled some features, and add-ons. You should find out who is gaming your installation process and shut them down. Microsoft has been trying to get me to update to win8.1, but I have declined, so I thought the box I was seeing was a recommendation from you to install win8.1 for protective purposes, though that is exactly why I have chosen not to do the upgrade. This question is being sent from the desktop computer that is now since I just checked, starting to update to 30.0. The programs, and Firefox do not appear in the downloads box, so maybe they were entering via Explorer? You don't stick anything else on your updates, so I wasn't expecting this.

    Go to Mozilla.org and download the '''full''' installer and save it.
    Completely remove Firefox. Run as may of the mal-ware program below
    as you can. Install Firefox from the installer you downloaded. After,
    check ALL of your add-ons and the programs on your computer. Make
    sure you know what they are for. Use a web search if you need to.
    ===========================
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • I use a program called RoboForm2Go that will fill in user names and passwords for me when I open a site and now that option is not available in the taskbar at the top. How can I use that feature again?

    I save the RoboForm2Go program on a flash drive and when I opened a site that I had saved the user name and password, the RoboForm2Go would show up in the taskbar with the site I opened so I could just click on it and it would automatically fill in the info for me.

    Under View>/toolbars, I don't have an option to choose RoboForm Toolbar. When I initially set up the program, I was using Internet Explorer and I can go to the taskbar at the bottom and choose RoboForm but then whatever site I was opening in Firefox will now open in Internet Explorer instead of Firefox. The old version of Firefox would display the RoboForm toolbar at the top.

  • Firefox is crashing in Windows 7. Most of the time when hovering over it in the taskbar. Never seen this much crashing with any other program ever.

    If I am in another program and hover over the firefox using the taskbar, moving the cursor over the various open windows is okay until moving to the left usually. Crashes up sometimes up to 10 times or so in a couple of hours. I use gmail and it is open at all times. I've turned off many of my plugins. I am a web designer and am on firefox most of the time - all day long. I started writing this without a crash id number so will not provide one now. Can send later when it crashes again.

    We're sorry to hear that Firefox is crashing. In order to assist you better, please follow the steps below to provide us crash IDs to help us learn more about your crash.
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and paste them into your response here.
    [[Image:SubmittedCrashReports-Win7|width=520]]
    <br><br>
    Thank you for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes]] article.

  • Pin Programs on the Windows 7 Taskbar & Start Menu with Group Policy (Windows Server 2008 R2)

    Dear ALL,
    I want to Pin Programs on the Windows 7 Taskbar & Start Menu with Group Policy (Windows Server 2008 R2) as per below description. Can someone please help me how to proceed and achieve this. 
    Pin the following applications to the Taskbar:
    Outlook
    Pin the following applications to the Start Menu:
    Outlook
    Excel
    Word
    Internet Explorer
    Software Center
    Regards,
    Amit Kumar Rao

    https://www.google.de/search?q=windows+7+pin+to+taskbar+vbs
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Is there a way to put the taskbar into the program window like in Windows XP?

    Migrating from Windows XP to Mac OS X 10.8.2.  The taskbar at the top of the page (not referring to the icons on the right) is unwieldy for my purposes.  It'd be better to have it in the individual program (e.g. Word, Excel) window at the top of the page.  Is there any way to do this such as 3rd party software?
    Thanks.

    No. The Mac OS puts the app's menubar at the screen's top. There aren't any taskbars in this operating world. Since you're new to Macs, see these:
    Switching from Windows to Mac OS X,
    Mac Basics—Tutorials on using a Mac,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips,
    Switching to Mac Superguide, and
    Switching to the Mac: The Missing Manual, Mountain Lion Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Program icon in the taskbar show as unknown icons

    Hey everybody,
    I've had this problem with the taskbar and with 2 programs I've seen, Fraps and Firefox (which I use) I open them with the shortcut on the Taskbar but after a while it moves to another icon which is like there is no picture in the icon (See pictures)
    How can and if I can, fix this?
    Picture:
    https://www.dropbox.com/s/vo555ierw4qovpq/Screenshot%202015-01-04%2003.53.12.png?dl=0
    Picture nr 2:
    https://www.dropbox.com/s/wmm0cu8r9izhu41/icons.PNG?dl=0

    Hi,
    From the snapshot you pasted above, other pinned icons are working correctly except firefox (maybe Fraps).
    it should be like this
    The taskbar pinned icons information are stored under
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
    maybe some corruptions exist in the registry key "Taskband", as a test, please first export the registry entry to desktop, then delete the
     key "Taskband", restart explorer.exe, then re-pin the program to taskbar, system will automatically rebuild the registry key "Taskband".
    And if possible, I simply suggest you uninstall and reinstall the firefox (or Fraps), this can help us eliminate some corruptions in firefox or Fraps.
    Yolanda Zhu
    TechNet Community Support

  • When I open firefox 3.6.13, a program called mixer.exe also opens, but it just sits there on the taskbar and doesn't seem to do anything. Mixer.exe is not on my list of add-ons. It uses 872k of memory. What is it? Is it supposed to be there?

    mixer.exe uses 872k of memory according to task manager.
    It shows up on the taskbar whenever I open firefox 3.6.13. It has an icon of a little rectangle with two white arrows attached to the side of the rectangle pointing inward. When I left click or right click on the Mixer icon on the taskbar, nothing happens. What is this mixer.exe? It isn't listed as one of my add-ons.
    Thank you.

    From the Firefox help files;<BR><BR>
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.

  • Permanently Removing a Program Icon From the Taskbar

    I'm runnning Windows 7 and have the Skype icon both on the desktop & the taskbar - is there a way to remove it permanently from the taskbar ? if I right click the taskbar icon & pick quit Skype it is removed but reappears when I open Skype from the desktop icon ??

    have had my Lenovo laptop since last Nov. with Skype pre-installed - a couple of days ago a message appeared on the screen saying that Skype wanted to make changes to the HD - thought it was an upgrade and/or update - but now when I open Skype via the desktop shortcut icon a Skype icon also moves to the taskbar at the bottom.
    has anyone else experienced this ? and does anyone know how to suppress this from happening ? I only want to open Skype from the desktop shortcut and then close Skype by X-ing out of the Skype window.

Maybe you are looking for