I need to show a really huge amount of text data in my piece of code - first i tried to use TextBox (and of course it was too slow in rendering). Now i'm using FlowDocumentView - and its awesome but recently i have had another request - text shouldnt be hyphenated. Well actually it is not
(
document.IsHyphenationEnabled = false;...
Hi i have made my own UserControl, its a little windows explorer.
i defined a Property in the Control that sets the Path where the Explorer should start from listing the Directory:
public string SetRootPath
{
get { return rootPath; }
set { rootPath = value; }
}
and im binding the TreeView that i have with a m...
Hi,
I need to change state of a control and then do some action. To be specific, I want to run an animation before a control is hidden. I would like to do something like that:
VisualStateManager.GoToState(control, "Hidden", true); // wait until the transition animation is finished
ParentControl.Children.Remove(control);
The problem is...
I am using some 3rd party components that take some time (~3-5s) to render - after profiling I've come to conclusion that most of the time is wasted in MeasureOverride and Render methods of those controls... I cannot edit source code of those components.
The problem is .. can I display a busy indicator while the interface is being 'drawn...
I have a paged WPF(.Net4) application which is too big for the screen when being used on a netbook. I'd like to be able to resize and scroll (as we do when using a webpage) but currently all items outside of the view are not accessible.
I suspect there's probably a simple solution but I just don't know.
Thanks in advance.
UPDATE
The N...
I'm having a problem with a piece of code that's starting to drive me out of my mind. I have a base class in WPF with a declared DependencyProperty:
public partial class AudioTimeControlBase : UserControl
{
public static readonly DependencyProperty PlaybackPositionProperty = DependencyProperty.RegisterAttached(
"PlaybackPos...
Is it possible for me to disconnect the systems connection to the internet without the need for detecting the network adapter etc.?
I would like to add this functionality to my software but can't find a proper method.
Can anyone shine some light on this.
I am running it through a WPF app.
Thanks
...
Hello,
I have a scrolling TabControl, using a ScrollViewer and StackPanel (with the StackPanel set as IsItemsHost="true"). To begin with, I am working from a solution originally outlined here - Creating Scrolling Tabs Using WPF's TabControl . At the moment it has broken links (Edit: I have tracked down one instance of his code in a fo...
Hello.
I'm trying to integrate authentication between WPF application and Silverlight application.
The users will login in the WPF app first, and they should be authenticated when they run the silverlight app from the browser.
The silverlight app is using forms authentication.(through WCF RIA Service)
The main application is Silverligh...
What's best practice for a WPF windows application re where to store confirm data that a child window captures?
That is, say from main page you click "configure" to jump to a configuration window/dialog. Where should the config data be stored so that when finished the main screen can access it when the user clicks on a button that in...
Hi,
What's the best way (in a WPF app, C#) of implementing control behaviour that is based around the current status/mode for the window?
For example let's say the modes might be simply OFFLINE, ONLINE for example. So when OFFLINE you want the configuration entry controls to be active, however as soon as processing starts (ONLINE) ...
Hi,
I am trying to create an image of a user control. The usercontrol is created dynamically.
MyViewsUserControl myViewsCanvas = new MyViewsUserControl(MyViewsViewModel, item.Id);
The usercontrols have a grid and in some cases a chart.I am creating the image using 'RenderTargetBitmap' class. But for some reason the image for grid an...
A composite font family is a collection of FontFamilies. On applying the composite font to a run, appropriate font from its font-collection is applied depending on text.
How can we get which actual font is being used in a run on which a composite font has been applied?
EDIT2: Suppose I have a run
<Run Text="Some text with different u...
Hi All
The fact that the dispatch timer, updates on the UI thread, is convenient - with one problem... IT CAUSES THE UI TO FREEZE AT TIMES!
As such, i would like to use the Timer in the System.Timers namespace, which will achieve the same thing except, that the UI will be more responsive as it updates from a different thread.
System.T...
I have problems with binding a treeview to a datagrid's selected item.
they are in different views, but datagrid's selected item is already passed to treeview's related viewmodel.
There is a SelectedGroup property in treeview's related viewmodel which is datagrid's selected item and its type is Group. I want to bind the ID field of Gr...
Hello,
we just got started with XAML and are still fighting with basic issues:
Coming from CSS we'd like to define a generic button style with custom control template and then have a second style inherit everything from the first style using "basedon. This second style should then override properties such e.g. "foreground color" (which ...
Hi,
I'm working on a simulator which relies on OpenGL to display symbols, maps, moving items... as layers/textures.
We are investigating different options to introduce multitouch support in the simulator.
WPF is one of the options, as it could provide interesting productivity factors for GUI development. A prototype has been built but...
I am writing a text editor in WPF and I seem to have a strange border that I can't remove.
I've got a grid with a tabcontrol, and when a user selects "File -> New", I programatically add a new tabitem to the tabcontrol. I'm setting the tabitem content to an instance of WindowsFormsHost in order to host the ScintillaNet WinForms control....
hello all
I m Developing A Desktop project in C# using Window Form and i want to Add Some WPf Form in this Project I just Want to know that Can i Call this Form Directly or there is need to integrate all these form in Win form And After that i call..
please help me out
thanks in advance
shashank
...
I am trying to create a WPF Chart in c# code and saving it to file without displaying it on screen. This will be in a WCF Service where data is sent to the service, an image is created and and path to the image is returned.
So far I have got the image to save to file and the data on the X & Y axis is displayed but the columns on the gra...