In MFC, dialog boxes were designed using DLUs. In WPF, we specify in 1/96inch units. While this would indeed scale windows and visual elements, how do we make make WPF "respect" the current font settings of the user? Should we specify a certain font to be used and stick to that font?
How would one go about layout-ing a "well behaved app...
By default any WPF browser application will work only in internet explorer?
If the first one is true, is there any addin for firefox for displaying wpf browser applications?
...
Could some one let me know what is Windows Presentation Framework is all about?
And how this is different form existing C# UI development?
Any help will be highly appreciated.
Thanks in advance,
Ravi Naik.
...
I have the following ComboBox element in XAML:
<ComboBox ItemsSource="{Binding CollectionControlValues}"
SelectedItem="{Binding CollectionControlSelectedValue, UpdateSourceTrigger=PropertyChanged}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Value}" />
</DataTemplate>
</Combo...
My program consists of a large graphing UI control that I need to spend about 15 seconds re-loading every once in a while. Because the updating code works primarily with the UI control (maybe 90% of it actually sets properties on the control), it would make sense to me to actually let the UI thread handle that. I really don't want the ...
Hi,
In a WPF app, in MVP app
I have a combo box,for which I display the data fetched from Database. Before the items added to the Combo box, I want to display the default text such as " -- Select Team --" , so that on pageload it displays and on selecting it the text should be cleared and the items should be displayed.
Selecting data ...
Hi,
I'm a beginner in WPF and currently working on my first app.
For this project I'm supposed to use this method to add localization in the app:
[TranslationService.cs]
public class TranslationService
{
string language;
public TranslationService(string language)
{
this.language = language;
...
I'm making a simple log viewer which is composed of a big TextBox which shows the file, and a DispatchTimer that updates the TextBox from time to time by setting its Text property.
Whenever the focus is set to the TextBox, it keeps automatically scrolling to the place where the cursor is, even when I'm explicitly issue ScrollToEnd() on ...
Hello,
Could any explain the following meaning of TextBlock.Text and Binding Path?
<TextBlock>
<TextBlock.Text>
<Binding Path="Something" />
</TextBlock.Text>
</TextBlock>
Thanks.
...
Hello,
I'm trying to scroll to the last line in my DataGrid. This is what I'm using right now:
var border = VisualTreeHelper.GetChild(mainDataGrid, 0) as Decorator;
if (border != null)
{
var scroll = border.Child as ScrollViewer;
if (scroll != null) scroll.ScrollToEnd()...
I was looking over old MIX-videos from 2007 and saw a nice presentation showing Hand Drawn Shapes in WPF. My question is if these exist in the standard shipped package or if i have to create these myself.
I imagine that I have to create them, so here comes the "real" programming question: How do you start when you want to create a "hand...
Hi all,
I’m in the design phase of a project at the moment and the client wants a desktop app they can use to view and annotate “any” type of document. I’ve been doing some research into the WPF document viewer and XPS documents and it seems like a perfect fit because using the XPS document writer, you can print anything to an xps docum...
I am writing a game in which I want to kick off an event for my game main loop, the event has to be fired after a very small interval of time.
DispatcherTimer helped me in implementing that, I came across this article
http://blogs.silverlight.net/blogs/msnow/archive/2008/07/09/storyboard-versus-dispatchertimer-for-animation-and-game-...
I'd like to design a custom control which can be used as a container like other Layout controls. I want this control to have a dependency property named Header which can display header for this control. Basic intention is to imitate looks of portlet control available in Sharepoint etc. with configurable headers.
Any links, suggestions, ...
Hi,
In WPF, C# application,
I have 4 checkboxes, 1. select all 2. team 3. personal 4. subteam.
Asusual, if choose option 1, it selects all the checkboxes and when it is unchecked it unchecks all.. this is working fine for me..
But when I click select all (all will be checked,....) and if I uncheck any of the other 3, then selectall sho...
So, I have a grid inside a listbox. The purpose is that when the listboxitem is selected, I want the grid to show, having the selected item expand to show more detail information. I set up a style trigger for this and it works great, except for one thing: the labels and textblocks styles are unapplied on the grid.
I'm assuming this ha...
Active Directory can store images in JPEG File Interchange Format (JFIF) according to the jpegPhoto Attribute definition. I'd like to use this but I'd never heard of JFIF.
First, are all JPEG files JFIFs?
Second, does a WPF JpegBitmapEncoder produce a JFIF file? I guess if the first is true, this will be but if it's not...?
...
I've got a popup in my XAML to show some information. When the box pops up, it has no border and appears to blend into the background of the page. It just needs a border, and ideally a drop-shadow behind it to show some sort of layering and focus.
Any ideas how to style a Popup to have a border and possibly the shadow-effect?
...
I would love to be able to use a regular MouseBinding to capture a CTRL-Click event on my TextBlock. Unfortunately the Command property is not a dependency property and I'm using MVVM, so I can't bind it to my viewmodel.
How could Microsoft have left out this basic functionality? Are there no easy ways to detect CTRL-Clicks and bind the...
Hello:
I am learning WPF / Silverlight and saw in an MS vidcast that it is now recommended to use RoutedEventArgs over EventArgs; although it didn't say exactly why.
I have a win forms app that uses interfaces for "widgets" in an attempt to not be tied to a specific display technology (in Presenters / ViewModels), so if my IButton Clic...