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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

left / right aligned with wrap ?

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

I need a panel where I can define one or more controls docked to the left and one and or more controls docked to the right, but with the option of wrapping when there is not enough horizontal space, and the wrapped controls still needs to be right aligned on the next row.

I'm just about to start writing my one panel for this, but wonder if there is any way to achieve this with any existing panels?


View Complete Post

More Related Resource Links

preventing overlapping left right aligned divs

I got 2 div layers left and right aligned.
when I resize page second div (pink) overlaps the first (green)

but I want right div can compress the left div as animated image.

is it not possible just via css ?
JQuery can do this with some code but how can do via CSS only?
any clue ? thanks for any answers. 

formView pager aligned to the left in IE



I have a formView which has the PagerStyle horizontalAlign set as Centre. This displays correctly in FireFox but not in IE, im using IE 8... Below is the code for the page:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="photo_view2.aspx.vb" Inherits="Default2" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="Heading" Runat="Server">
<asp:Content ID="Content3" ContentPlaceHolderID="mainBody" Runat="Server">
    &nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fpaConnectionString %>"
        SelectCommand="SELECT [photo_id], [photo_title], [photo_file_name] FROM [fpa_photo] WHERE ([photo_album_id_FK] = @photo_album_id_FK)">

left right margin


Hiii Coders ,

I have created my website. Now what is my requirement is that on higher resolution it should be centralized means margin from both sides should be same.

How can i get it working

plz provide me some code snippet plz

thanx and regards

Drop-Right/Left submenus


 I'm currently using the CurvedMenuProjects custom control and I does almost everything I need a Menu Control to do but it doesn't swap submenu position (left/right) when the dropdown goes off the right edge of the screen.


Does anybody know if it's possible to configure the control to do this?


Any pointers on how I can get started writing the behavior into the custom control myself?




Netting C++: The .NET Wrap


This month, we are changing the column name from Pure C++ to Netting C++ to better reflect our focus on Microsoft® . NET programming using C++/CLI, the . NET extensions to Visual C++® that are supported in Visual Studio® 2005.

Stanley B. Lippman

MSDN Magazine June 2006

Only 12 days left in the Code Contest!


We are having a fun coding contest to find the best solution to a fairly trivial coding problem.  Come along and show off your skills . you might just win a totally awesome Gyroscope Powerball!

Participate in the Code Contest!

How can I align Left the text into a Button?

I've tried: Code Snippet Button button = new Button(); button.Width = 200; TextBlock textBlock = new TextBlock(); textBlock.Text = "Aligned text" textBlock.TextAlignment = TextAlignment.Left; button.Content = textBlock;   but it is not working.

SSRS report exort to excel wrap text proplem

When i am exporting the ssrs report to excel the wrap text is not working properly. the cell containing large data are cutoff how to resolve this issue. since the data size is not fixed so the cell should wrap the text while exporting to excel. I am using java to call the report Thanks , Kamal.

Html editor word wrap problem

I created an html editor which uses an iframe for designing. The iframe doesnt wraps the text within it.... but the text keeps on extending in the same row towards the right. i tried setting scrolling='no' but it didnt work... tried word-wrap:break-word but thats also of no use........ please help! 

How to scroll the DataGrid (horizontally) when user drags a column header far left or right?

We're working with the WPF DataGrid and I have a question about  dragging column headers: The grid lets the user rearrange the columns, by dragging the column header left or right.  So far, so good. But, sometimes we have many columns, and only the first few columns are visible; so there is a horizontal scrollbar.  In such case, if the user drags a column header to the right edge of the DataGrid window, I want the DataGrid to scroll, automatically, one column at a time.  Is there an easy way to do that? (To be clear: yes, the user can already scroll horizontally by interacting with the horizontal scrollbar, but that isn't what I'm asking about.  I'm asking if the "drag a column header left or right" gesture can cause the DataGrid to scroll left or right.) I guess I could handle various low-level events, but it seems like it shouldn't be necessary -- DataGrid has so much functionality built-in, that I'm guessing it already has the ability to scroll when the user drags the column header to the edge.  So, is there either (a) a property that I can set, to tell the DataGrid to scroll when the user drags a column header to the edge of the window;  or (b) a code example showing how to achieve this effect myself?  Thanks!

Textblock and left/top alignment has different space

Hi, when i add a text the text is aligned left,top by default. At the left the text hits the edge, but at the top the text still has space left. Is this because of some special characters that need that space? I would like to show the text with left and top the same amount of space. <Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <TextBlock Background="Red" FontSize="100" FontFamily="Verdana" Padding="0" >T98}`|_*dfshjd sjlksdj dsjl djskldj lksj dlksj</TextBlock> </Grid> </Window>

How do I keep the #region/#endregion directives on the left edge, or is that possible (C#)?

Hello, How do I keep the #region/#endregion directives on the left edge, or is that possible (C#)? The #region/#endregion keep moving to the left to align with the rest of the code.  I don't want that to happen. Regards, Robert

Left Outer Join fails to return all records

I have a table tblDrop that contains 1067 records for 8/31/2010 and a table tblSoftcount that has 739 records, some with bad serial numbers. I need to match all of the records in tblDrop with those in tblSoftcount. I have a query using Left outer join that has worked for the duration of the application, but has recently stopped returing the full set of records from tblDrop. We have not changed the SQL versions on the server (compatibility level 2005). Here is the query: SELECT   v.SlotNum_ID, s.SlotNum_ID, v.PTNumber, s.PTNumber, v.DropBillAmount AS [Drop], v.ReportDate, v.DateValue     FROM tbl_Drop v LEFT OUTER JOIN tblSoftCount s ON v.SlotNum_ID = s.SlotNum_ID AND v.ReportDate = s.ReportDate WHERE   s.ReportDate = '8/31/2010' AND v.DropBillAmount <> 0 AND s.Slotnum_ID IS NULL;  

How to tell repeater to wrap text after certain number of characters for a particular column ?

I have a column in my repeater which allows as many as 255 characters and causes the page contents pushed away to the right if any of the record has all 255 characters in that column. How can I tell it to wrap the text after 50 characters ?Thanks,

Edit Blog site - hide the left navigation bar

Hi, We want to customize the look & frrl of a blog. I don't see a page layout gallery, only master pages. Which master page is used and how may i hide the left navigation bar?

collapsing the left menu as a default

 Hi! i have a menu on the left of the page which appears in the expandable form. I want to see them as the collapsed menu based on the site map group. I have posted the site map code and the master page here. Any idea please<?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="~/Default.aspx" title="Modules" description="Modules"> <siteMapNode url="~/Modules/Hire/Hire.aspx" title="Hire" description="Hire" resourceKey="HIR"> <siteMapNode url="~/Modules/Hire/Hire_Request_Navigator.aspx" title="Booking Request" resourceKey="HIR_REQ" description="Booking Request"> <siteMapNode url="~/Modules/Hire/Hire_Request_Detail.aspx" title="Request Detail" resourceKey="0" isPhantom="true"/> </siteMapNode> <siteMapNode url="~/Modules/Hire/Hire_Booking_Navigator.aspx" title="Booking" resourceKey="HIR_BOO"> <siteMapNode url="~/Modules/Hire/Hire_Booking_Fleet_Available.aspx" title="Booking Vehicle Selection" resourceKey="0" isPhantom="true"/> <siteMapNode url="
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