What is .baml file?
Hi All, What is .baml file and what's the use of this file? Who creates this file? ...
Hi All, What is .baml file and what's the use of this file? Who creates this file? ...
I would like to hook for all available element events in one call. Some thing like this: elem.AddHandler(AnyRoutedEvent, (RoutedEventHandler)handler) How can I do this? ...
Greetings to all, I wonder if anyone knows or has the sample code to upload a file to a server (web server using ISS) without using ftp and using WPF. Besides I wanted to ask if the file you wish to upload multimedia is possible that before being uploaded to the server you can do a preview before you upload it using the player archivos...
So lets say I have these classes: public class Person { public string Name { get; set; } } public class PersonCollection : ObservableCollection<Person> { } And lets say I have a ListView whose ItemsSource is bound to a PersonCollection. Now lets say I have this code: public void AddPeople() { Person p = new Person() { Name ...
Is it possible to disable a button in a DataGridTemplateColumn? I have a DataGridTemplate as follows: <toolkit:DataGridTemplateColumn Header="Timer" Width="50"> <toolkit:DataGridTemplateColumn.CellTemplate> <DataTemplate> <Button Content="Start" Click="Button_Click...
I have the following code that adds a background worker into a VB.net WPF project: Imports System Imports System.ComponentModel Imports System.ComponentModel.BackgroundWorker Imports System.IO Imports System.Threading Imports System.Net Imports System.Windows Imports System.Windows.Controls Imports System.Windows.Data Imports System.Win...
I know asp.net and winform development. I am not the type of developer who jumps into a new technology just because it's new. It needs to give me extra benefits like higher productivity. What are the advantages of WPF over Winforms for pure business apps? I am not interested in the extra eye candy, animation, gradients, image display ef...
I have been working on a WPF application and am using ModelViewViewModel. I have a number of events that come out of the view, that result in ViewModel activity. What is the resonable way to get these events raised from a UnitTest? For example, I want to simulate the drop event. I don't really want to build a stub view, just to raise...
I am trying to collect all possible ways to find controls in WPF. To find control by name, by type, etc. ...
All of these bits of text look the same, but I am trying to get them to look different. I want small caps text. What am I missing here to get the small caps typography effect to work? To reproduce this, open Visual Studio 2008, Do File|New Project, create a new Windows|WPF application, paste the mark-up below into Window1.xaml, then run...
What is the easiest way to use a valueconverter with a listbox? I'm setting the ItemSource to a List<> of objects at runtime, and it displays a textstring from the ToString() method. What I would like, though, is to pass the object through a valueconverter to get a completely different string value. All the examples I have found makes ...
Is it possible to resize a silverlight/flash video player on the fly? I would like to create a video where I can drag the bottom left corner to resize the player (maintaining aspect ratio) or at least eliminate the possibility of doing so I could move on to other methods. Thanks in advance... EDIT: // forgot to mention Sorry forgot to...
How do you clear the thread principal in c#. I have a background thread that does a Membership.ValidateUser(username, password); which then copies the resulting Principal back to the main thread AppDomain.CurrentDomain.SetThreadPrincipal(Thread.CurrentPrincipal); this works fine. But, if I log off I want to clear the principal, i...
I have a WPF Label control which I'm trying to change the appearance of using a System.Drawing.Font object supplied by some legacy code. I have been able to set most of the properties, but am struggling with Strikeout and Underline. So far I have: System.Drawing.Font font = FontFromLegacyCode(); System.Windows.Controls.Label label = n...
Hello, In my project I have a WPF Listbox bound to an ObservableCollection. Every time I add a new item to the Collection the same item is added to the Listbox automaticly. To display the items in the Listbox I use a XAML Datatemplate. What I want to do is animate an item once when it is added to the Collection/Listbox. Can this be don...
Hi, If I define a RichTextBox as follows; <RichTextBox SpellCheck.IsEnabled="True"> <FlowDocument /> </RichTextBox> When I type in the work 'Sample' and make the first three letters bold, the spell checker underlines the word. The source XAML of the document shows that the RichTextBox is splitting the word into two seperate runs...
I'm trying to animate the ScaleY property of a LayoutTransform based on a DataTrigger bound to a boolean on my ViewModel class. The animation happens when the value is first seen to be false by the DataTrigger (when the application first starts) and when i first change it to true in a checkbox's checked event but not when i set it to fa...
In Winforms I could set the ProgressBarStyle of a progress bar to Marqee, and that would have the progress bar incriment on its own without having to be set, for processes where I don't know how long its going to take, and no good way to report back to the UI. I would like to do the same in WPF, but I can't find a way to pull it off sho...
I have a project which requires an image in the window. This is a static image and i added through 'Add>Existing Item'. It exists in the root of the project. I reference the image in a test page like so - <Page x:Class="Critter.Pages.Test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.micro...
I cannot believe that nobody has gotten across this or perhaps I'm just missing something. I've got a custom DataSourceController which handles retrieving data and providing it to the rest of the application controls. Naturally, it uses sql connection which I also initialize. My App code: private ISQLConnection conn; public ISQLConnec...