XAML: Rounded corners for all Images inside a FlowDocument!
I want to give all images inside a FlowDocument rounded corners. Whats the easiest way to achieve this? ...
I want to give all images inside a FlowDocument rounded corners. Whats the easiest way to achieve this? ...
I am writing an app using WPF 3.5 and I need twitter integration. I know that there are many API's for C# and most of them seem to be on the right track. But one, painfully annoying (seemingly 100% required) step of the twitter posting is that you need to redirect the user to the twitter website, in which they need to login and click "...
i want to copy content of one text box to another text box by clicking the mouse. how do i bind a mouse click event? ...
Hi, i have a textblock where i dynamically add string.. even if i add string width and update the textblock the textblock is not showing appropriate width, still some text are cut.. how to measure width that has to be displayed in textblock? and how to make it autosize? ...
Hello, I need to clear sector 0 for removable media devices (custom USB memory devices) which I have been trying to clear within a WPF/C# application. My first attempt was to use DD, but I ran into problems. During the manufacturing of the devices a MBR is created at sector 0 and the volume (logical?) starts at sector 40. When I issu...
What approach do you recommend for persisting user settings in a WPF windows (desktop) application? Note that the idea is that the user can change their settings at run time, and then can close down the application, then when starting up the application later the application will use the current settings. Effectively then it will appe...
Hi my wpf application is using a other .exe for communicating with a server. this communication uses telnet. i know its not the best but i have to use it. my question is: does anyone know how to check the status of the telnet client or a was how to start (install) the client? thanks for your help! mfg chris ...
Hi, i'll try to create a hierachical context menu using databinding. The XAML code looks like the following: < ContextMenu> < MenuItem Header="MoveTo"> <MenuItem.Resources> <!-- Display files as menu items --> <HierarchicalDataTemplate DataTy...
I'm playing with ICollectionView right now, and am encountering a problem where I think I understand the "why", but not the "how do I fix it". :) I have a ComboBox that's databound to an ICollectionView, and it is initially set with the following code: NameView = CollectionViewSource.GetDefaultView( names); // names is an IEnumerable<...
In my application I have some controls that logically belongs together and is reused many places in different windows. The controls are always placed inside a grid. Instead of copying the controls (and the code behind) each time I want to use them, I would like to define and maintain them in a single xaml file as a single UserControl. ...
hello i have a problem i m using Wpf datagrid my one Column i s radio button(item template column) Coloumn when i m select another Row Radio Button my First One IS Still Check And i want it is to be uncheck How can i Achive it thanks if there is Multiple row in A grid i want to select only one ...
As an analogy, we've got two Mr Men in a ComboBox: Mr Happy Mr Grumpy I've a property on my ViewModel (using MVVM to an extent, with a SelectionChanged event in the code behind) which I've called IsGrumpy which defaults to false if the Mr Man is happy and true if the Mr Man is grumpy. Obviously! Now, Mr Happy might have had a heavy n...
I've got a WPF toolkit datagrid with virtualization turned on. Each row has a check box bound to a bool in the underlying model. The check boxes (in addition to the data binding) also have Checked and Unchecked handlers (!) to allow checking multiple items at once if you've click one with multiple lines selected. Here's the xaml: <Con...
I have an app in WPF which runs another exe and displays its output on a textbox. While this is running, i wanted to bring up a lightweight window over this which has just a close button. This lightweight window should look similar to lightbox in javascript, for displaying pictures or videos. The main UI behind this lightweight window sh...
Hi everyone! I need only to show a custom control (a clock with rotating hands) and with this to replace the mouse cursor, the problem is that if I write: Me.gridScreen.Visibility = Visibility.Visible ' some operations that takes about 1 second Me.gridScreen.Visibility = Visibility.Hidden (gridScreen is the grid that contains the user-...
Just looking for some input as to what control I should go with or a broad approach. I am going to load up a png in the program I am writing. Then I could specify that I want 32x32 lines split over the picture (I'm not breaking the picture up, just specifying a grid to be on top). So, obviously I am going to need something which I can se...
Here's my layout. <Window> <StackPanel Orientation="Vertical"> <StackPanel HorizontalAlignment="Stretch" Height="30"> </StackPanel> <Canvas HorizontalAlignment="Center" Width="1020"> <!--i want this to take the remaining full height of the screen--> <Canvas x:Name="bottomInfo...
I have this very simple Combobox in my XAML: <ComboBox Name="cmb1" Width="200" Height="23" ItemsSource="{Binding}" /> and this is my code behind: public class Test //: System.Windows.DependencyObject { public string Name { get; set; } public override string ToString() { return Name; } } public MainWindow() { InitializeC...
I have a custom look-less control derived from Control class. It's template is defined in Generic.xaml file. Now I want to add some UI stuff to it (mostly brushes) and want to do that in separate resource dictionary, and then access those stuff from the code-behind feil (*.xaml.cs). See bellow: Generic.xaml (fragment): <ResourceDiction...
I have a string representation of a XAML Grid like this: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <Canvas Background="Yellow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <Label Content="textik" /> </Canvas> </Grid> What I need to do is create a Grid object ou...