.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

WPF Issue - Toast Window does not appear after hibernate even though visibility is Visible

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :WPF
 
Hi

I'm working on an app which can make and receive calls. When receiving calls the application displays a toast on the bottom right of the screen. This toast is just a new WPF Window. If the machine has a graphics card the toast will scroll up from underneath the screen. If it does not support graphics hardware the toast will just appear.

However I'm seeing on Windows 7 (and its also been reported on Vista and XP) that the first incoming call after a hibernate or standby (or occasionally after leaving the app idle for a few hours) does not produce a toast. Looking at my logs I can see that my logic is correct. The window is positioned correctly and its Visibility is Visible. But the user does not see anything. At this stage I'm thinking its a WPF problem. This happens on machines both with and without a graphics card.

If I make a second call directly after the first one the toast appears. The logs are exactly the same for both cases. It just appears that WPF does not render the toast for the first call. This is not fully reproducible but it happens often enough to be a major concern. Does anybody have any suggestions on what could be causing this problem? The method I'm using to show the window is newNotification.Show() where newNotification is a Window.

More Related Resource Links

Windows Workflow : Activity Binding Properties Window Ellipses button not visible for one property

  
I have created a custom activity, when I am using this activity in workflow designer I am not getting the ellipsis button to select a property.  I am getting the ellipses button for first property LongValue while not getting the option for "NavigationUrl" property. This is the code for my custom activity. public partial class SetLongAsResult: Activity {         public SetLongAsResult() { InitializeComponent(); }         public static DependencyProperty LongValueProperty = DependencyProperty.Register("LongValue", typeof(long), typeof(SetLongAsResult));           public static DependencyProperty NavigationUrlProperty = DependencyProperty.Register("NavigationUrl", typeof(string), typeof(SetLongAsResult));           [Description("long value to be returned")]         [Category("Set Result Data")]         [BrowsableAttribute(true)]         [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]         public long LongValue         {             get             {         

SSRS 2008 Conditional Column Visibility Whitespace Issue

  
Hi Everyone,I am using IIF statements to show/hide tablix columns based upon a parameter value. These statements are used as expressions in the visibility properties for the columns.If the parameter value is one that causes the column to be hidden, the coulmn does not appear on the report, but there is whitespace in its place.I have used this functionality very frequently in SSRS 2005 without the whitespace issue. The 2005 report automagically closed this whitespace up by moving the column to the right of the hidden one to now be adjacent to the column to the left of the hidden one at rendering. This is what i need to happen now in 2008.Has anyone else experienced this? If so, would you please share your solution? I am getting extremely frustrated by this...Thanks!!

Windows 7 window.open() and - target issue

  

Hi,

In Windows 7 when I use window.open(url, "_MyWindow") a new browser window opens every time I click.

Expected behaviour is - URL is replaced in the browser window with the same target attribute (_MyWindow) if it's already open.

Any suggestion/workaround is greatly appreciated.

All works fine in any other OS/IE config, even on XP/IE8.

Thanks.

Jack

PS:

same issue appears using <a href=http://www.microsoft.com target="_MyWindow">Open link</a>


Slightly different issue: SetFocus from control to WPF parent window in C#...

  

I've just spent about an hour seaarching for something that should be easy to find with the question: How to set focus on a WPF window.

I have a StatusBar item. When the mouse leaves that item, I need to set the focus back to the StatusBarItem's parent window.

I've tried everything I can think of.  Sorry to be so dense, but I am still a WPF/C# newbie.

Please advise.

Thanks.

-- Mike


javascript window.history.back() issue with Modal popup extender

  

Hi,

I have a asp.net page that has a list of items. When one of the items from the list is clicked a details page is displayed. This details page has a link button to show a popup for history of the item. The details page also has a button with text 'Back'.  The back button has onclick event set to  "javascript:window.history.back();".

This back button works fine and goes back to the first page. However when the user is on the second page and opens the pop up by clicking on the link button, the back button stop working and displays Webpage has expired message.

Any help would be appreciated.

Regards,

Steve.

 


ExcelWebRenderer Visible item issue

  

Hi,

I have a user control that I use to add in one of my sharepoint pages. In that user control I dynamically add a ExcelWebRenderer part as 

            ewaWebPart.Visible = true;
            ewaWebPart.ToolbarStyle = ToolbarVisibilityStyle.None;
            ewaWebPart.ChromeType = System.Web.UI.WebControls.WebParts.PartChromeType.None;

           ewaWebPart1.WorkbookUri = WorkbookUri;

            ewaWebPart.VisibleItem = Constants.TABULAR_NAMED_ITEM; // setting the range name for visible item
            this.tdContent.Controls.Add(ewaWebPart);  // Adding to table cell

what this code is expected to do is to render the ewaWebPart only showing its visble item ie the mentioned range in the Visible item property but what is happening that some time it shows full workbook and does not show only the visible item (range selected), but after refreshing the page it works fine ie only range item is shown.

Please check what I am doing wrong.

 

 


ExcelWebRenderer Visible item issue

  

Hi,

I have a user control that I use to add in one of my sharepoint pages. In that user control I dynamically add a ExcelWebRenderer part as 

            ewaWebPart.Visible = true;
            ewaWebPart.ToolbarStyle = ToolbarVisibilityStyle.None;
            ewaWebPart.ChromeType = System.Web.UI.WebControls.WebParts.PartChromeType.None;

           ewaWebPart1.WorkbookUri = WorkbookUri;

            ewaWebPart.VisibleItem = Constants.TABULAR_NAMED_ITEM; // setting the range name for visible item
            this.tdContent.Controls.Add(ewaWebPart);  // Adding to table cell

what this code is expected to do is to render the ewaWebPart only showing its visble item ie the mentioned range in the Visible item property but what is happening that some time it shows full workbook and does not show only the visible item (range selected), but after refreshing the page it works fine i.e. only range item is shown.

Please check what I am doing wrong.


UserControl Visibility binding Issue.

  
<UserControl x:Class="Org.Intermountain.ICM.Views.Authentication.LoginFormView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:dc="clr-namespace:Org.Intermountain.ECISDesktop.ECISDestopComponent;assembly=ECISDestopComponent"
             xmlns:convtr="clr-namespace:Org.Intermountain.ICM.ValueConverters;assembly=Org.Intermountain.ICM.ValueConverters"
             mc:Ignorable="d" 
             d:DesignHeight="636" d:DesignWidth="946"
             IsEnabled="{Binding IsControlEnabled}" 
             Visibility=&

Behind Visible Window (No Transparent Window) ?

  

Hi..

My there was a question about WPF.http://social.msdn.microsoft.com/Forums/en/wpf/thread/7190959b-b1c6-4cd3-8108-600becc8b03b

Same question but now subject is Windows Forms.I can making transparent windows (back of form is visible) with below code

this.BackColor = Color.White;
this.TransparencyKey = this.BackColor;

And I have a panel on form object.This panel's background color is transparent.Because panel's behind must be visible...and While Application running ,I'm clicking panel object.Rather I can't click to panel object.When I changed panel's background color to other color (except Color.Transparent) ,I can click panel object.What necessary I need to do ?

C Sharp Coder


Modal popup window in ASP.Net

  
A Masked div or modal popup window is a child window created from the parent window which prevents the user from interacting with parent window before he returns to the parent application.

WPF / Silverlight tutorial: Visibility property and binding

  
Visibility property is a very powerful and yet often overlooked property available in both WPF and Silverlight. It enables you to set Visibility of certain UIElement objects to different states like: Visible, Collapsed and Hidden (not supported by Silverlight). This tutorial shows you how to use it and how to bind to Visibility property

IsapiModule Error 500 Issue

  

I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:

ISAPI_START

CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"

 

MVC2 issue - Stuck. Trying to create a cms with nested partials

  

I am currently trying to display multiple items on a single page. I am not sure as to how to tackle this. What I have is a database table that has all the page data in. I have this run as a PagesController and this works fine. However what I would like to do is, if say the Products page is selected via the menu, I want to pull back not only the Products page html but also get all the products, and even be able to pull them through via category. I was trying to use a partial view, but I can't get it to work. The same would be for other pages, having partial views to display the other content, ie if Gallery is selected, the page html for Gallery shows and it then can push to a partial view that pulls all the gallery images from the gallery db table and so on. 

Maybe I am tackling this the wrong way. I have the pages stored in the db to allow for a CMS system I have setup. Maybe I need to use models for all the other items(Products, Gallery, Videos and such) and use the partial for the page html?

Any help would be greatly appreciated as I am confused.




Tab container rendered with visibility:hidden - This was reported over three years ago.

  

http://forums.asp.net/t/1109955.aspx?PageIndex=1


Here is (more) code that demonstrates the issue.  If the control in the host page is removed the tab control renders correctly.  Otherwise it is rendered with the visibility attrubute set to hidden as reported in the above link.  Is this broken or am I doing something wrong?

Thanks,


Sam


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="S2.aspx.cs" Inherits="S2" %>
<%@ Register Src="~/SelectorPatternControl.ascx" TagName="TestControl" TagPrefix="sam" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <cc1:ToolkitScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></cc1:ToolkitScriptManager>
        
        <%--remov

lossing focus from model pop up window controls

  

hi i using a model pop up window with some textbox but when i click on textbox of model pop up focus move to back to page textbox control plz help me 


System.IO.Packaging is not visible

  

I am new to ASP.net, I installed VS2005 and IIS 5 on my PC and set up my first website using IIS (not the embedded webserver in VS).

For some reason I cannot find the Assembly: "System.IO.Packaging", please let me know if I am allowed to use it in that medium and how can I reference it?


Thanks in advance.


xpath issue

  

Hi i am using xpath to loop through each node,

the xml is below i can get the value of "link" but i cant get the thumbnail value, have you got any ideas how i can do this, my code is below.

Thanks

<item>

     <link>test 1</link>
     <media:thumbnail url="http://test.com/image.jpg" height="75" width="75" />

</item>

<item>

     <link>test 2</link>
     <media:thumbnail url="http://test.com/image.jpg" height="75" width="75" />

</item>



public void FindLinks(XPathNavigator p_xPathNav, DataTable dt)
        {           
            //run the XPath query
            XPathNodeIterator xPathIt = p_xPathNav.Select("//item");

            //use the

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend