I've got a WPF FlowDocument with a list of MarkerType 'Upper Latin'. It's looking like this:
Notice that the list item alignment is on the periods after the marker, but since the text is variable width, the D, E, and F look silly. I would rather have the list markers be left aligned than right aligned, but I can't figure out how to ...
Any ideas on how to implement a method that given a propertyname, finds a control (perhaps from a visualtree) which is bound to the given property?
...
I'm having a tough time solving this simple issue :
I am using a treeview with HierarichalDataTemplate to show an hierarchy of two entities : Organization and Unit. The Organization has a many to many relation with itself as it could have sub organizations. And each Organization has one to many relation with Unit, as an organization co...
Hi there,
first of all I describe my objective I want to achive. I want to visualise a continuous data stream (maximum 1000 values per second but could be reduced). This data stream should be visualised as a chart - being more precise it's a visualisation of an ECG among other things.
My first idea was using polyline and bind it to a po...
I downloaded setup.exe, and then begin to install and it immediately crashes.
On win7 it worked fine. On XP it doesn't work.
Error text:
Unable to install or run the
application. The application requires
that assemble stdole Version
7.0.3300.0 be installed in the Global Assembly Cache (GAC) first.
...
I have a ListBox that displays some words. Words are entered in TextBox, and when submitted on button click, they are added to ListBox. The problem is, if I add many words, scroll is always on top of ListBox, so I don't see last but first words added. Is there a way to dynamically move scroll to the end of ListBox every time word is adde...
I'm using Syncfusion to change the style of my WPF application to the Office 2007 Blue style. But the OpenFileDialog shows in the default style of my OS (XP) and there doesn't seem to be any way to change its style.
Is there a way to make the style of the dialog consistent with the rest of the application? (Apart from creating my own ve...
I have a set of data that I'd like to present via a WPF ListView in this way:
Column1 Column2 Column3
--GroupName1--
Item1 part2 part3
Item2 part2 part3
--GroupName2--
Item3 part2 part3
Item4 long_text_in_both_columns
Item5 part2 part3
--GroupName1--
Item6 part2 part3
Item7 long_text_...
I have a Windows Forms control hosted as Child in WindowsFormsHost in my WPF application. Control draws ok in main frame. But when I add it (exactly the same way) in WindowsFormsHost on dialog that is shown from main frame, on ShowDialog the control is not visible. I used the same code as I did with main form. When debugging, it does eve...
In all tutorials about MVVM, I see code behind file is of no great use as we are trying to shift all the logic in view model. Is there any specific reason why we dont use Code Behind file itself as View Model?
I understand benefits of MVVM over typical code behind codes with events and book keeping, but I am trying to explore possibilit...
The following code is not calling the SelectedItem's property setter in my view model.
<ComboBox x:Name="cmbGuaranteeType" Margin="5,5,5,5" MinWidth="80"
ItemsSource="{Binding Source={StaticResource guaranteeTypesKey}}"
SelectedItem="{Binding RelativeSource={RelativeSource AncestorType={x:Type wpfToolkit:DataGridR...
Righty oh now I believe ive set this application up right but correct me if im wrong, for simple sake i have in my bootstrapper 3 modules loaded, one is a navigation module, and two others the views.
Independently in code if i load the modules and in the initialize method add them to a region that all works fine, however ofcourse id lik...
With the following code, I can't get the background image to display at its original size (it's always a fair bit larger). I tried changing the Stretch property, but "None" seems to be the most appropriate value.
<Canvas Width="500" Height="500">
<Canvas.Background>
<ImageBrush
ImageSource="{Binding ElementName=...
I want to localize my GridView from xml file which has translation for my GridView headers.
I use next code:
<Window.Resources>
<Style TargetType="{x:Type telerik:GridViewDataColumn}">
<Setter Property="Header" >
<Setter.Value>
<TextBlock Text="{Binding someValue}"/>
</Setter.Va...
Hello All
I wanted to find the datagrid column header when a cell is clicked.. i used the following code
private void grid1_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
DependencyObject dep = (DependencyObject)e.OriginalSource;
while ((dep != null) &&
!(dep is DataGridColumnHeader)...
I have an application that loads a series of resource dictionaries programmatically at startup.
I have derived AdvancedResourceDictionary from ResourceDictionary and I set its Source property to a XAML file containing an AdvancedResourceDictionary object, like so:
var ard = new AdvancedResourceDictionary();
ard.Source = new Uri("/Sandb...
I am working on a windows application that will need to be branded. The client will be selling this to other businesses, and needs a customized logo and name for each sale.
The client does not know how to use visual studio!
I think I need to write a packager app to inject custom logo and string resources into the executable. I am plann...
I am working on EF with C# and WPF as front end. I need to provide a UI for so user can create his own query and get the result. The UI will be list of tables and list of columns to select from (Not happy with UI. Need to improve but new ticks in my mind).
So my question is how create, merge(existing query) and execute the queries.
The...
I have a small WPF application that writes some basic information to the registry during program execution. The application is packaged with Windows Installer. How can I tell the Windows Installer to uninstall registry entries that were created during program execution when the program is uninstalled through the control panel? (Also no...
Hello folks,
I have a ViewModel with Property int DepartmentColor. Of course I can not bind the int value to a CellStyle in XAML.
Should I make a IntToStyleConverter or should I fumble around with the Style class in the ViewModel like convert the int to a SolicColorBrush and assign it to a Style etc...
Is the latter the way to go with...