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


Post New Web Links

Border stays maximized when animating with zoom/unzoom

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :WPF
 

I have a custom control that zooms when mouse over and normal size when not. My xaml code works fine for this.  When I have a validation error the control has a red border which stays zoomed out when the mouse is not over it.  Does anyone know how to fix this issue?

Here is the xaml:

<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006
                                     
                                            
                                        

View Complete Post


More Related Resource Links

Wicked Code: Taking Silverlight Deep Zoom To The Next Level

  

With the help of Silverlight Deep Zoom and a remarkable control named MultiScaleImage, you can create scenes with many levels of zoom. Jeff Prosise illustrates with what else but the Mandlebrot set.

Jeff Prosise

MSDN Magazine July 2009


Adding table to a page, but the format lost when I use clear border

  

Hi,

I added a table to a page, by default, the table layout is the light border. So, I add my content and the vertical align seems to set to the top. But when I changed it to clear border, the content of the table will set vertical align to center. Is there a way to change this back to top align but with the clear border. I don't think I can do this by what is available in the ribbon. Please advice.


ModalPopupExtender animated gif not animating

  

Hi, I'm trying to use the modalPopup extender to show a "processing" message with an animated gif.  Everything works pretty well except that any animated gif I place in the modalextender doesn't animate.  Anyone know of this problem and a solution?

 

html for the popup div:

<div align="center" style="margin-top: 13px; vertical-align: middle; display: none"

class="modalPopup" id="modalPanel" runat="server">

<table border="0"

does anyone know why is this not working a clock that keeps on counting , it just stays the same whe

  
i read something about <div tag does anyone know how this is suppose to workany help is welcome, thank you ALSO if i want to do a countdown session timerwill it pretty much be the same thing?  <html> <head> <title></title> <body onload> <form> <script type="text/JavaScript"> <!-- function display() { var d = new Date(); var time = d.getHours(); var time2 = d.getMinutes(); var time3 = d.getSeconds(); document.write(time); document.write(" :"); document.write(time2); document.write(" :"); document.write(time3); alert("hi"); } // --> </script> <input type="button" OnClick="display()" value="Click Me!"/> </form> </body> </head> </html>  

Balloon Tooltip doesn't display at the correct position when form is maximized

  
Having a problem with display balloon tooltip at the right bottom of form, the balloon tooltip displays fine if form is not maximized. However, the balloon tooltip doesn't display at the correct location when form is maximized(I guess because there is no room to display it on the right bottom of screen, so it moves up a bit). Is there a way to correct it? Such as displaying the balloon tooltip box above the control with stem points to the control. It displays the tooltip box below  the control right now which might cause the issue. Any help will be great appreciated.

Border at the end of page

  
hi all, at  the end of report i want to add border in that page. basically, i want to know that ,is it possible to get border at the end of page in ssrs report.  Thanx in advance, Sagar Joshi 

How to set the border for a WPF DataGrid Row which is currently having the focus

  
Hi, I want to set the border for a DataGrid Row which is currently having the focus. But not the seleced row because when the Multi selection is enabled for the datagrid then there is a chance that multiple rows can be selected. I need a solution in XAML Thanks in advance! Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This will help other members to find the solution easily.

Balloon Tooltip doesn't display at the correct position when form is maximized

  
Having a problem with display balloon tooltip at the right bottom of form, the balloon tooltip displays fine if form is not maximized. However, the balloon tooltip doesn't display at the correct location when form is maximized(I guess because there is no room to display it on the right bottom of screen, so it moves up a bit). Is there a way to correct it? Such as displaying the balloon tooltip box above the control with stem points to the control. It displays the tooltip box below the control which might cause the issue. Any help will be great appreciated.

Pathlistbox animating add/remove operations

  
I would like to slide/animate the pathlistbox items when a new item is added or an existing item is removed. Imagine removing item at index 3...then I would like to animate when item at index 4 moves to index 3. Im picturing like a slide back (for horizontal layout) or a slide up (for vertical layout). As amazing as the pathlistbox seems, its very new and I cant find much on this. Any help guys? thanks justin

Issue with Combobox - On selecting Item the combobox border becomes red why?

  
Hi, I have a combobox. <ComboBox DisplayMemberPath="Name" Name="CB" IsEnabled="{Binding ElementName=RB, Path=IsChecked}"<br/> SelectedValue="{Binding Path=Folders, Mode=TwoWay, UpdateSourceTrigger= PropertyChanged}" /> It has Selected value binding with ObservableCollection as public ObservableCollection<T> _folders; public ObservableCollection<T> Folders { get { return _folders; } set{ _folders = value; }} Combobox's IsEnabled property has binding with a Radio button checked value. PS: I don't have any validation here. The problem I am facing is when I select an Itam from Combobox its border becomes red , I don't understand why this is happening.

Seadragon mouse wheel motion zoom/zoomout not working

  
using following code.. vs 2008 andajaxtoolkit 3.5.40412.2what is is to be done to make it work? <form id="form1" runat="server"> <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </ajaxToolkit:ToolkitScriptManager> <ajaxToolkit:Seadragon ID="Seadragon2" Height="500px" Width="500px" runat="server" SourceUrl="dzc_output.xml" MouseNavEnabled="true" > </ajaxToolkit:Seadragon> </form>

SharePoint Excel Web Services - How do I adjust the Zoom Level

  
Hello, My Organization is using SharePoint 2010 and the Excel Web services module is installed.  The spreadsheet I am using loads perfectly on the page exept for one problem, the zoom level is at about 150% and I can't figure out how to zoom out.  Is there somebody out there that can please help me with this.  Thank you  

How to change background or border brush color of an element while it has template in xaml?

  
Dear all, I want to change some style property of one element in code behind while that element already had a data template in xaml. as an example this is a code for my window: <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300" Loaded="Window_Loaded"> <Window.Resources> <Style x:Key="ButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <ControlTemplate.Resources> <Storyboard x:Key="OnMouseEnter1"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.1"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Story

Slider control for zoom in/out

  
hi, i came across one problem while doing zoom in and out image on canvas using slider control. i have minimum and maximum limit for zoom lets say its 0.1 to 10 x (10 to 1000%) so i have set slider minimum and maximum value as 10 to 1000 respectively. It work fine with this. but now i want 100% in the center of slider. (just like in Excel 2007 or microsoft picture viewer). Can any one has idea how can i make 100% value in the center of slider. Regards, Suhas

WPF Border rendering offset when CornerRadius defined

  
I'm experiencing a strange rendering issue when running WPF based apps on my workstation. The any vertical drawn seems to be offset to the left by 1px. This is especially noticeable on elements that are wrapped by a <Border /> element with it's "CornerRadius" defined. Does anyone have any idea what's going on?   Running: Microsoft Visual Studio 2008Version 9.0.30729.1 SPMicrosoft .NET FrameworkVersion 3.5 SP1BTW this issue IS NOT seen in the designer. Same thing in Blend 3 :

BlobCache stays empty in SharePoint Foundation 2010

  
I tried configuring my SharePoint Foundation 2010-based web application to do BlobCaching, but the cache folder is empty. I backed up and updated C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config. In sectionGroup "SharePoint", I added: <section name="BlobCache" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> Between the </MergedActions> and </SharePoint> tags I added:     <BlobCache location="C:\blobCache\14" path="\.(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|mov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv)$" maxSize="20" enabled="true" /> I gave the domain account that runs sharepoint (CORPDOMAIN\APPPORTAL) full control over folders C:\blobCache and C:\blobCache\14. The application pool automatically recycled when I updated web.config, but I also did an "IISRESET /NOFORCE" and later rebooted the server. No matter which site pages I visit, the cache folder stays empty.  Has anyone else seen this behavior?

div border issue

  

 Hiiiiii Coders,

I m using div to display data. Now the width of my div is 800px and also i m displaying bottom border of div to mark the separations between two consecutive divs.

the length of my div's bottom border is same to div's width(800px). But i want that border should be displayed in center of page and it's width should be 400px.

Is it poss?

How can i achieve this?

thanx and regards 


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