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


Post New Web Links

Multiple viewports onto a complex control

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :WPF
 
I have a canvas with a big 2D image and some controls overlayed onto it. Each control is in fact a panel with many little buttons and text fields etc. I would like to have multiple viewports on the image, each one zooming in on one of those panels. AND each viewport must allow the controls that it is "zooming on" to react to user input. This does not seem possible as a Visual can only have one parent. I've seen a couple posts on here about Model3Dgroup being able to have many parents, and Viewport2DVisual3D, but for now, my stuff is all 2D so I don't think they would be useful (plus I can't say the posts are clear about solution, I'm rather new at WPF). Any help greatly appreciated.


View Complete Post


More Related Resource Links

GridView Multiple Filter AJAX Control

  
This AJAX control enables the user to filter data within any column inside a GridView. The user can add multiple filters and can delete existing ones too.

Multiple Instances of User Control

  

I have a user control that I place on a page severl times.  When I make a selection on a ddl in one one control the SelectedIndexChanged event fires for all the control on the page for that ddl.  So I get duplication of an insert that I do.  Is there a way to make sure these events are isolated so this doesn't happen.

Thanks,


User control with multiple item content

  
I have a user control that I would like to contain multiple items as its content, similar to the way a <StackPanel> works. I tried using a <ContentPresent/> but it will only let me use a single item as the control's content. What's the best way to go about this? I realize I could just require the user to put a <StackPanel> or <Grid> or similar control as the content of the user control, but i would rather not do that if possible.   I'm not sure if it matters, but this control actually has several content presenters. Some of them will contain a single item and some will contain multiple items.

how to control multiple and different ContextMenu?

  
I have a DataGrid (.Net 4), it got its own ContextMenu. at runtime, this DataGrid will have an Adorner dynamically created over it for custom drag-N-drop feature, and this Adorner/base also has its own ContextMenu. my problem is i wanna see the DataGrid's ContextMenu, but instead the Adorner/base ContextMenu shown. If i fool around with the mouse right-click over the DataGrid randomly/fast-clicking, sometime I can get 2 of their ContextMenu pops. how can i control, to only show DataGrid contextMenu pop, and stop the other shown?

Multiple Instances Same User Control

  
I have an ASP.NET page inside of an ASP.NET Master page, and inside the page I have two instances of the same web user control. I have given them different IDs, but when I click a button on the first user control it causes the second user control to do the expected activity and the first one does nothing. Is there something I need to do to make sure that the controls don't get confused? P.S. The expected activity is that when the button is clicked one panel object is disabled and another is shown. When the button is clicked on custom control 1 the panel on custom control 2 is disabled and it's next panel is shown and custom control 1 does nothing. Thanks for the help. 

Multiple instance of User Control on Page - Button Click Event

  
Hi, I have this Web User Control, with 3 controls:<asp:TextBox ID="txtSearch" runat="server" /> <asp:RequiredFieldValidator ID="rfvSearch" runat="server" ControlToValidate="txtSearch" Display="None" /> <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" /> In code behind: protected override void Render(HtmlTextWriter writer) { rfvSearch.ValidationGroup = this.ID + "_validation"; txtSearch.ValidationGroup = this.ID + "_validation"; btnSearch.ValidationGroup = this.ID + "_validation"; base.Render(writer); } protected void btnSearch_Click(object sender, EventArgs e) { Response.Redirect("ResultadoSearch.aspx?argumento=" + txtSearch.Text); } When I try to add two UserControl and I Click in btnSearch of second UserControl, txtSearch.txt returns value of first User control.How I can get the value of second txtSearch?

Select multiple controls on tabpage, Drag & Drop control(s) (WinForms)

  

I'm wondering, if somebody got some code or thoughts for selecting multiple control displayed on tab page and drag & drop control on tab page it self. Something like on windows desktop, where you can draw a rectangel with mouse cursor to select folder and files. Also, drag folder or files to different location.

Thanks.

 


How to create a new Html control which contain multiple html control ?

  

Hi all,

I am realizing a table with multiple rows for a Sharepoint webpart.

In this project, I would like to have a new html control which contain a LinkHtml in one column and another label in another column.

Essentially this html control would be a row used for my html table.


At the moment i am doing a row like this in the main class :

HtmlTableRow Row = new HtmlTableRow();

            //create colum 1
            HtmlTableCell _Column11 = new HtmlTableCell();
            _Column11.Style.Add(HtmlTextWriterStyle.Width, linkColumnWidth);

            // Create the input textbox
            Label _LinkButton = new Label();
            //_LinkButton.ID = claimsLinkButtonID + contentLabel;
            //_LinkButton.CommandName = IdTask;
            _LinkButton.Text = contentLink;
            //_LinkButton.Style = 


            Label _NumberOfMessagesLabel = new Label();
            _NumberOfMessagesLabel.Text = contentLabel;

            //add the textbox into column 1
            _Column11.Controls.Add(_LinkButton);

            //add column 1 into row 1
            Row.Controls.Add(_Column11);

            //create column 2
            HtmlTableCell _Column12 = new HtmlTableCell();
            _Column12.Style.Add(HtmlTextWriterStyle.Width, priorityColumnWidth);

            // add the label into colu

PasswordRecovery control and multiple websites

  

Can anyone point me to a reference, or sample code, on how to use the passwordrecovery control with multiple websites?

I'm working on a web application which 'contains' two related websites.  Each website has its own set of users.  Currently the password recovery logic works for only one website.  If a user tries to retrieve their password for the other website they receive a message indicating unable to retrieve their password.

Thanks!!


DataAnnotation on multiple user controls displaying on wrong control

  


I have a table that displays a user control on each row. The user controls are strongly typed to a viewmodel which contains DataAnnotation style validation. If one of the rows has invalid data entered (lets say the 3rd row) the data annotation validates display agains the first row/user control.

How do I get the data annotation to show against the relevant user control?

I'd post a pic to show what I mean except it will not display it!.:/



How to save a multiple user control to a few single record text?

  
I have a list with people pecker control that admits multiple users.
I like to have another list with one record for each user in the control that loaded before.
Is there any way in InfoPath or in a workflow to use something like FOR EACH to take one by one user in a control and write/update records after that?
Thank in advance
Ramiro

SSRS 2008: Multiple Sub-Reports with conditional visibility in one List control

  

MainReport: a List containing two Sub-Reports. The data of the List only has two rows. Set the visibility of the sub-report based on the data.

SubReport1: a textbox showing "Sub Report 1"

SubReport2: a textbox showing "Sub Report 2"

I expect to see SubReport1 in Page 1 and SubReport2 in Page 2.

But I only see SubReport1 in Page 1 and Page 2 is a blank page.

These reports work in SSRS 2005, but not in SSRS 2008.

Thanks.

 

Report Definition:

MainReport.rdl:

 

<?xml version="1.0" encoding="utf-8"?>
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner

Filtering with Multiple selections (Checkbox list control)

  
I have a scenario where there is a large list of 2000+ items, these items each have a name associated to it.

I now need to be able to filter this list by selecting the names from a Checkbox list, the problem is I cannot figure out how to get it to work when multiple values are selected.

The current setup is Using a DVWP to display the items a Datasource control of all the names and then the ASP.NET Checkbox list control to act as a filter

Can anyone help?

problem in selecting deslecting multiple records in grid view by clicking control key.plz help

  

i want to select/deselect multiple records inside grid view by clicking control key.I can do the selection but the deselection is not working properly..there is some thing wrong in the  logic.plz help me to solve the problem.

my java script function is like..

<script language="javascript" type="text/javascript">

    function FillColor(cellid, id, evt) {
    
        var isSelected = document.getElementById('<%=hidSelectedRow.ClientID%>');
        alert(cellid);
        if (!evt) var evt = window.event;
        ctrlPressed = evt.ctrlKey;
        if (!ctrlPressed) {
            //alert(ctrlPressed);
            var clearCellColor = document.getElementById('hidCellId').value.split(',');
            for (i = 0; i < clearCellColor.length; i++) {
                document.getElementById(clearCellColor[i]).bgCol

problem in selecting deslecting multiple records in grid view by clicking control key through java

  

i want to select/deselect multiple records inside grid view by clicking control key.I can do the selection but the deselection is not working properly..there is some thing wrong in the  logic.plz help me to solve the problem.

my java script function is like..

<script language="javascript" type="text/javascript">

    function FillColor(cellid, id, evt) {
    
        var isSelected = document.getElementById('<%=hidSelectedRow.ClientID%>');
        alert(cellid);
        if (!evt) var evt = window.event;
        ctrlPressed = evt.ctrlKey;
        if (!ctrlPressed) {
            //alert(ctrlPressed);
            var clearCellColor = document.getElementById('hidCellId').value.split(',');
            for (i = 0; i < clearCellColor.length; i++) {
                document.getElementById(clearCellColor[i]).bgC

Server Control Property With Multiple Options

  

I have a custom server control built. It works great. I want to expose a property so that in designer the developer can put a check which options they want enabled for that property. For example, it is a grid that has Edit, Update, Delete, Undelete displayed on each row.


I want to have a property called AvailableRowCommands (or something like that) so the developer clicks down, puts a check next to each one they want and they're done. So they coudl check just edit and update and not delete.


Would I use sub properties for this?


Thanks for your help!


How do I add multiple instances of the wiki editor control to a page?

  

(Sharepoint 2007)

I have a SharePoint wiki site and the home page has become a bit cluttered. Using SharePoint Designer 2007 I have figured out how to edit the home page of the wiki site and I have created a row of tabs with associated content pieces. It's the usual thing, click on a tab, hide one div, show another. What I would like to do is to be able to edit each div's content as a separate wiki page. Is this possible? I currently have the SharePoint:FormField and SharePoint:ListFieldIterator tags commented out.

Thank you for any help you can give.


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