-
- newbie question
by robert 112
- 6 Replies
- Last post
by robert 112
- Hi guys,
my colleague at work wants to use windows presentation foundation as the technology to solve the following business problem:
We have an asp.net 2.0 CMS we have just built over the last 2 months that is in its final form. The user doesn't want to have to login to the 'admin' section to modify content. They want to be able to login and let the application remember their session a
-
- Reloading DLinq created objects
by Edijs
- 1 Replies
- Last post
by Matt Warren - MSFT
- Hi! I am using MS SQL 2005 Express db. With SqlMetal I generated appropriate database table classes. I will try to be abstract: I have an A and B objects, where A has a reference to B object. DLinq generates two properties: 1) reference to B object 2) reference to B object identifier (B_ID) which in my case is value type The problem is that if I create A object and I assign valid B_ID property and
-
- Binding to dataset object ???
by Serge Calderara
- 4 Replies
- Last post
by Josh Smith
- Dear all,
I have a database tables which contains live data, like log entry records.
The content of this data a return from a dataset.
how can I bind rows of my dataset to a grid control
I do not know in advance how myn rows I will get from my dataset, so grid rows should be created dynamically accroding to dataset content..
Any simple sample for that
regards
-
- Button Animation
by AvalonNewbie
- 8 Replies
- Last post
by AvalonNewbie
- Hey Guys,
Im trying animation in WPF for the first time. I've written a small app which contains a single button which grows in size when clicked. I want it so that if the button is 75 X 75, increase it to 100 X 100. Then when i click it again, i want it to return to its original size. My code is something like this
void ButtonOnClick( object sender, RoutedEventArgs args)
{
-
- HwndHost painting over WPF popup
by Jacob Stanley
- 6 Replies
- Last post
by Jacob Stanley
- Hi I have a problem where my HwndHost based DirectX (XNA) control fights for air-space with any WPF popups (such as tooltips or menus). For all intents and purposes my HwndHost continuously re-paints itself and thus paints over any popups that appear over the top of it (which in turn paint over the HwndHost, etc). An acceptable solution would be to pause the rendering of the HwndHost control whil
-
- Unable to use Entity Model Tools
by 小&#2641
- 6 Replies
- Last post
by lornshrimp
- Hi all,
I installed Visual Studio 2008 beta 2 and ADO.NET Entity Framework Beta 2 runtime and tools, but when I open a Console application and add a ADO.NET Entity Model template, this error message is shown:
Error Message
Package Load Failure
Package "Microsoft.Data.Entity.Design.Package.MicrosoftDataEntityDesignPackage, Microsoft.Data.Entity.Design.Package,
-
- How to set Window Client Area Size?
by Ryan Lamansky / Ka
- 3 Replies
- Last post
by Ryan Lamansky / Kardax
- When setting the size of a "Window" object, the size seems to include the standard borders, also. How do I set the size of the client area inside the borders
Alternatively, how can I detect the size of the borders around the client area so I can mathematically compensate
-Ryan / Kardax
-
- Getting errors when creating xaml control
by ClemsonTigers71
- 7 Replies
- Last post
by ivolved_Mike_Brown
- I am trying to create a SecureStringTextBox object in 3.0 using xaml. I created a
control that looks like this:
xaml code
<TextBox x:Class="PP.Controls.SecureStringTextBox"
xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml ">
</TextBox>
code behind
namespace PP.Controls
{
public partial cl
-
- How to set GridViewColumn Width to Auto in code?
by Tonko
- 6 Replies
- Last post
by Tonko
- The following causes exception:
Code Snippet
GridViewColumn column = new GridViewColumn ();
column.Width = System.Windows.GridLength.Auto;
so clearly there is some other way to do it since corresponding XAML has no problem.
-
- Attach, SubmitChanges doesn't save child objects.
by Chris Buckett
- 12 Replies
- Last post
by bmbTn
- Using the following code block to select a customer using one datacontext, and save a child object using a different data context doesn't work (ie, the changes don't get propogated back to the database). It's a trivial example, but suppose you saved the "Customer" in a session variable on one page, and wanted to add the order on the next page, would you also need to pass the data context
-
- Readonly dependendy property
by RostaB
- 14 Replies
- Last post
by RostaB
- Hello,
I have defined custom readonly dependency property (below). I need to bind to it inside XAML (in my example it is bound to Label.Content), but it does not work... It looks like it never goes thru Get accesor, because in my custom dep. property is still default value...
What is wrong Any suggestions
Thank you
RostaB
My XAML:
&l
-
- Accessing control inside DataTemplate
by sureshhs
- 4 Replies
- Last post
by sureshhs
- I want to access the textbox "textAttrValue" which is in the datatemplate from the code behind. I get the compiler error - The name 'textAttrValue' does not exist in the current. Any idea how to do this
<ListView Margin="80,65,86,120" Name="listviewValues" ItemsSource="{Binding}"> <ListView.View> <GridView AllowsColumnReorde
-
- NAVIGATE TO EXTERNAL WEBSITE FROM XBAP APPLICATION
by shajipd
- 4 Replies
- Last post
by Chango V. - MSFT
- Hi
I am looking for similar to this for my xbap application, Below Code working perfectly in WPF Windows AS well as in NAVIGATION window. When I converted my application to xbap it throws security error... How can I achieve same thing in XBAP application to navigate other external website.....
string navigateUri = hl.NavigateUri.ToString();
Process .Start( new ProcessStar
-
- about wcf become slow
by alphais
- 12 Replies
- Last post
by alphais
- hello,
my application is base wcf,i find the system become slow after some operation,below will help for diagnose
1)cpu is used 30%
2)memory is used 25%
3)operation is download a big dataset ,I export data to excel.it have 4M
4)concurrency number is few
5)after some time it become normal
below is binding configration
tcpBinding.Security.Mode = Secur
-
- 2D Bar Chart
by Hassan Jamil
- 6 Replies
- Last post
by Hassan Jamil
- I have created a bar chart by binding user values to rectangle's height. It looks fine for +ve values but for negative value (Rectangle with negative height) it is crashed. Can anyone help me to draw the bar chart in different quadrants rather than only in XY.
-
- HELP: Using SamlSerializer on a ADFS token to invoke WCF service
by ruipacheco.com
- 7 Replies
- Last post
by ruipacheco.com
- Scenario:
User authenticates on ASP.NET WebApp using ADFS. WebApp gets the token and executes a WCF Service with that token. The WCF Service trusts the ADFS but not the WebApp.
Problems:
#1 - ADFS emmits a SAML Token and posts it to the WebApp. I'm using ADFS Web Agent on the WebApp server, that takes the token, processes it and sets a cookie on WebApp to control the session.
Problem:
-
- Problem building AJAX enabled web sites after install of Visual Studio 2008 beta 2
by Christian Sparre
- 7 Replies
- Last post
by sparrez
- I have a simple web site that uses AJAX and it is a few months since I updated it the last time. Today I had to make a simple ajustment, but I ran into some problems.
I have the new VS 2008 beta 2 installed alongside VS2005. The web site is 100% ASP.NET 2.0 and AJAX 1.0.
The website was buildt without errors and deployed to the filesystem just fine, but when I moved it to the product
-
- Displaying HTML code
by cosmicX
- 3 Replies
- Last post
by Chango V. - MSFT
- Is there any control that can display the HTML code in a proper way like the browser For example, it can turn the following way in a proper format.
Code Snippet
<p>ABC.</p> I could not find any good control to perform such function in WPF development... Thank you.
-
- UserControl inheriting generic class
by Jan Ku&#269;era
- 14 Replies
- Last post
by Jan Ku?era
- Hello!
I have
public abstract class MyControlBase<T> : UserControl { ... }
and now I'd like to create user controls which derive from this one. I've tried to create an UserControl, and specify its base as MyControlBase<string>. Howerver, when compiling, "partial declarations must not specify different base classes" error is shown. I believe this is
-
- Authentication - Winforms
by TrevorW
- 7 Replies
- Last post
by TrevorW
- I am trying to understand the very complex security model offered by WCF.
I think it will help if I explain what "I want/ have".
I want a service that essentially hosts a secured data layer.
I have a business model where the business objects are created in a business object library with the intent for the objects to to be accessed via a proxy (similar to remoting). Only the mode
-
- Binding <Menu> to ObservableCollection ??
by PlaTyPuS8
- 3 Replies
- Last post
by PlaTyPuS8
- Hello!
I can't find how to bind a to an ObservableCollection....
Here is my code :
Code Snippet
< ToDo:Categories x:Key = " CategoriesDSsrc " />
< CollectionViewSource x:Key = " CategoriesDS "
Source = " {Binding Source={StaticResource CategoriesDSsrc}, Path=CategoriesList} " >
</ CollectionViewSource &g
-
- Finding MenuItems Programatically (using FindName method)
by Sereneo
- 2 Replies
- Last post
by Marco Zhou - MSFT
- Hi, I am having trouble trying to find Menu Items Programatically, using the FindName method. I am constantly getting a null return. Any insights on this Serene
-
- Access external object with a XAML form?
by jvhiestand
- 1 Replies
- Last post
by Yi-Lun Luo - MSFT
- I would like to host a XAML form/xbap application in a browser window embedded in a regular WinForm. If I were just using HTML/Javascript, I could gain access to an exposed interface using the window.external object. Is there a way to do this with a XAML form If so, any code examples out there Thanks
-
- Attribute Name for Delay Loaded
by Ozgur Aytekin
- 1 Replies
- Last post
by Matt Warren - MSFT
- Hi NG,
What is the Attribute Name for "Delay Loaded" How can I define my property using a "LINQ Attribute" as "Delay Loaded"
I want to mark following Column as "Delay Loaded"
Code Snippet
private byte [] _Document;
[ Column (Name = "Document" , Storage = "_Document" , DBType = "varbinary(max)
-
- Svcutil generating "Partial Public Class Exception"
by DeBiese
- 4 Replies
- Last post
by DeBiese
- Hi,
I'm having kind of a problem here.
When I generate a client proxy class from my wcf service, this proxy class contains a partial class with the name 'Exception'. This causes every 'Catch ex As Exception' to be wrong because now 'Exception' is ambigious.
One solution could be to go and change every catch to 'Catch ex As System.Exception', but I prefer not to do it like that. Is there a