-
- Application-level security using LINQ
by HowardRichards
- 14 Replies
- Last post
by HowardRichards
- I¡¯d love to transfer over to using LINQ but I have not been able to figure out how to rewrite my security functionality in my current home-brew datalayer. I¡¯d also like to hear how other people implement user access security within their applications for ideas.
My current application uses a data layer for SQL that I took from an open source library and modified heavily. One key feature I ad
-
- IsEnabled overrides IsMouseOver in a style with animation
by aquaseal
- 5 Replies
- Last post
by aquaseal
- I searched around and could not find an answer to my problem. I have a button that has a style with some triggers on the control template. When I run the application (sample code below) the IsMouseOver trigger works just fine. Then I click on the 'Disable' button that sets btn3's IsEnabled to false and this animation works fine as well. Then I click on 'Enable' and set btn3's IsEnabled to true and
-
- How To: [XAML] Call a web service with a ObjectDataProvider and feed a grid or a listbox
by bluestrattos
- 6 Replies
- Last post
by bluestrattos
- Hello! I think i'll go crazy without getting a solution for my problem. I have a web service. I have a grid (infragistics) but i don't know how to put one of the web service's method feeding the grid. In .net 2.0 it was easy using a ObjectDataSource. it was like a breeze and in a flash everything was working. Yes i'm from the time of 2.0. For some reason net 3.0 have no objects, i mean i still did
-
- .Attach() and related entities issue
by Rick Strahl
- 14 Replies
- Last post
by Nicolas CLERC
- I¡¯ve run into an issue with LINQ to SQL that looks kinda scary <s>.
I¡¯m using some code that detaches and re-attaches entities. I found that this works fairly well with single entity instances.
The following works fine and dandy (assuming I have a timestamp field on the table): TimeTrakkerContext context = new TimeTrakkerContext (); EntryEntity entity = context.Entry
-
- Async loading of BitmapSource in value converter?
by Jeremiah Morrill
- 9 Replies
- Last post
by Jeremiah Morrill
- I have a value converter that loads up a bitmap from my own medium (network/file-system) and of course the UI freezes on a databind.
I tried returning a new instance of a BitmapImage and loading the image bytes into memory via the threadpool and then using the dispatcher to set the image source stream. But i get an object ref exception when I do the BitmapImage.EndInit.
I do not have
-
- Drawing Reverse Video
by Donald Roy Airey
- 9 Replies
- Last post
by Donald Roy Airey
- I am trying to highlight a group of UIElements in an Excel-like application and I want to emulate the look of Excel. Excel makes heavy use of reverse/inverse drawing: black is highlighted as white, white is highlighted as black, red is aqua, etc. This was done in WinForms using a VERY complicated method of drawing onto a bitmap, masking the bitmap and then combining the bitmap image with an invers
-
- VS 2005 & Blend - Solution Explorers not friendly - Microsoft Can you address this?
by karl140.6
- 9 Replies
- Last post
by karl140.6
- Blend and Visual Studo Team,
I have a VS2005 (vb.net) WPF soution.
If I add a WPF form, I get two files in my solution explorer, the xaml and the xaml.vb file. The are both visible and very quick and easy access and open.
Now, if I open that same soltion in Blend, the problems start.
1. Blend does not recognize the code behind file that the solution has. If I select a contr
-
- WPF ListView
by _xx
- 5 Replies
- Last post
by _xx
- Is there a event called 'OnItemBound" or similar in WPF listview. Or any way
of get hold to a list view item in code behind before it render to UI.
Thanks in advance
-
- Client updates when deploying XBAP to web server
by Rod Yager
- 2 Replies
- Last post
by Rod Yager
- We have deployed an Xbap application to a web browser using xcopy. When the application gets updated recompiled and moved over to the web server again, the client doesn't get the new update. What triggers the browser app to download a new version I know clearing the application cache using the mage -cc will work, but that is a unacceptable solution for clients machines.
-
- Add method of XElement compared to DOM AppendChild method
by Martin Honnen
- 2 Replies
- Last post
by sravanik
- I am comparing the behaviour of the DOM AppendChild method with the Add method of XElement/XContainer. With DOM/AppendChild if the argument of the method is already in the tree then it is removed from its old location and inserted at its new location. With Add the behaviour is much different, it looks like a clone is created and added, with the original child remaining at its position:
-
- Intellisense stops working
by Alan Haigh
- 7 Replies
- Last post
by Marco Goertz - MSFT
- Hi mark,
hope you don't think i'm being a pain but i think i may have another bug to report, if you can reproduce/confirm the bug i will submit it on connect.
I've tried this several times and can consistently reproduce the issue both in VS2008 and VC# 2008 express
To reproduce:
Create a new WpfApplication project
In the xmlns section of Window1
start typing xmln
-
- Xaml Gridview Tooltips
by Dave In Oz
- 3 Replies
- Last post
by Dr. WPF
- Hi,
Working in Xaml, I have Gridview that has a number of columns. As far as I can see, it is not possible to have different tooltips for each column header. Does anyone know whether this is correct, or if there is a way around it
Basic code goes something like this...
< GridView x:Name = " gridCustomers " >
< GridView.ColumnHeaderToolTip > My Toolt
-
- PreviewEvent cancels event
by sentris
- 1 Replies
- Last post
by Wei Zhou - MSFT
- Hi,
i have the following code:
this is the PreviewMouseDown event of an TabItem
private void BeforeTabClicked( object sender, RoutedEventArgs e)
{
if (e.Source is TabItem && oldTab != null )
{
e.Handled = !oldTab.Unload();
}
}
this is the TabControl.SelectionChanged event
private void TabClicked( object sender, Route
-
- 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
-
- Binding problem
by DCProven
- 1 Replies
- Last post
by WPCoder
- I am getting a lot of these: System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression ath=VerticalContentAlignment; DataItem=null; target element is 'ListViewItem' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment') WHich basi
-
- Context menus in Media Center
by lsantos
- 1 Replies
- Last post
by Chango V. - MSFT
- Hi, I'm trying to make a simple context menu in a xaml control. When I click the right mouse button or with the keyboard I call the context menu of the selected control, all I get is a context menu that comes with media center with 3 options: Internet Security; More Info; Settings. This XBAP I've made runs well in IE Browser. but I don't understand why can't I make my own context menus for my cont
-
- See PDF file in WPF app
by Euclidez
- 8 Replies
- Last post
by Chango V. - MSFT
- Hello, I've an url to a pdf file and I want to see it on WPF. I try the frame this way:
< Frame Margin = " 136,52,140,97 " Content = "" BorderBrush = " #FF000000 " NavigationUIVisibility = " Automatic " Source = " http://www.test.com/123.pdf " / >
but this InvalidOperationException {"Failed to convert resource into obj
-
- Thank you!
by sergun
- 3 Replies
- Last post
by sergun
- Here under master-detail data binding I mean 1. visualization of collection of objects in some control like List Box 2. editing properties of currently selected object (probably with validation of values before saving changes) 3. add / remove features
I have a lot of questions for the issue. And killed a lot of time to find answers for them in the Web but failed:
What is good "template&
-
- Is there a way of making a bind a treeview with the filesystem and start in the my computer like windows explorer?
by lpx
- 5 Replies
- Last post
by lpx
- Hi, I have a treeview which as a binding to the filesystem using GetFileSystemInfos The thing is that if i modify the filesystem there is no update to the treeview. Is there anyway to make this sync Thx, Nuno
-
- DataContract BinarySerlization in WCF 3.0
by SYEDHANIF
- 2 Replies
- Last post
by WangJiping
- hi
My Project is on HealthCare Domain, for that i am using WCF 3.0 as business layer which call presentation layer of 2.0 framework,
each class in wcf 3.0 i am doing serlization, but by default is xmlformat serlization, is it possible which i can do binaryserlization of each class in wcf 3.0 before passing to presnetation layer of framework 2.0
serlization of DataContract to B
-
- how to deploy browser app (out of the box with just simple webservice connection)
by pkellner
- 1 Replies
- Last post
by Matt Galbraith
- I've made a trivial browser wpf app that makes a web servier connection which is why I'm assuming it needs full trust. I did the "generate certificate" from the configuration section and publish it to a local directory. Then, ftp it to my web server. (iis6, win2003). It runs and then gives me the error I've pasted below.
Is there a simple step by step someplace to make a xbap app
-
- SvcTraceLog tutorial request.
by KevinBurton
- 4 Replies
- Last post
by KevinBurton
- I have used the svctracelog viewer to look at some of the traces that out application puts out when it is enabled. I understand some of it but I think there is a whole lot more that I am missing. I was hoping that I could get some help here to fill in the blanks.
1) I see alot of messages "Processing message xxxx" and if I look under the XML tab I can see some XML. But I still am
-
- WCF service dont impersonate domain user (IIS as host)
by ChristerP
- 10 Replies
- Last post
by shanmugal
- Hi,
I need some assistance with hosting WCF service in IIS and impersonation/delegation of a domainuser when quering a SQL Server database.
My enviroment :
WinXP SP2, Visual Studio 2005, SQL Server2005, IIS 5.1. Evertything runs on the same computer.
Scenario :
I have a web client (ASP.NET Developer Server) and a wCF service hosted in my local IIS and a local SQL Ser
-
- How to set distance between paragraphs in richTextBox ?
by fanchuan
- 4 Replies
- Last post
by WPCoder
- Hi All:
Thanks in advance.
-
- Translating more than one object at same time: do no work ?
by Thomas LEBRUN
- 4 Replies
- Last post
by Thomas LEBRUN
- Hello everyone,
In a sample application, I'm trying to move (translate) 3 Grid but with different values. I'm able to move the first one but as soon as I try to do the same for another grid, if I test my application, all the grids move from the same values (I'm not sure to be clear....).
Here is my C# code:
private void Window_MouseMove( object sender, System.Windows.Input