Hi,
I've started the development of a windows application, which target windows 7 and vista (maybe XP).
I wanted to have some standard behavior that we find in the default windows applications.
But I can't find anything to do that, so I have some questions :
1) For example, on Windows 7, the address bar that displays the current folde...
As far as I know Windows Media Player 10 is the minimum requirement for WPF MediaElement to work. What is a decent way to programmatically (from .NET) check if WMP is present, and its version?
...
In this example the first column gets 100 and the next 2 columns get 50 each, which is the expected behaviour.
<Grid Width="200" Height="200">
<Grid.ColumnDefinitions>
<ColumnDefinition MinWidth="100" />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Border Background="Red" Grid....
I have bound my DataGrid to a DataTable and only few of the details are displayed in the grid. When I wanted to filter the DataGrid I created a View with my DataGrid's ItemsSource.
Code:
Dim myView As ICollectionView = CollectionViewSource.GetDefaultView(MyDGrid.ItemsSource)
myView.Filter = New Predicate(Of Object)(AddressOf filte...
I'm working in VS 2010. I've got a WPF page with 4 expander on it. On each expander I have between 10 to 20 controls. Normally I just let the default tab order work, left to right, top to bottom, so I don't mess with the tab order. However, on the first expander my users want the tab order to be very specific, so I'm going to have to...
I have a FileSystemWatcher that react on the Changed event.
I want to open the file, read its content display it in a textbox and hide the popup that has been created after 1 sec. The code almost work but something fail when hiding the popup.
Here is a snippet of the code :
txtLog.Dispatcher.Invoke(DispatcherPriority.Normal, (A...
I'm trying to alter the listboxitem style for a silverlight menu.
The result I need should look like something like this
Is this even possible?, if so:
How can i accieve this?
The current Xaml code used for the menu:
<Style x:Key="LeftMenuStyle" TargetType="ListBoxItem">
<StackPanel Orientation="Horizontal" Mar...
hello,
I have a Wpf windows like:
ScrollViewer > Grid > Image
image is <Image Margin="20,15,10,20" Grid.Row="1" Stretch="Uniform" Source="Images/logo.png" />
the image I want to take only the visible size of the cell in with it is inside, it works exactly as I want if I remove the ScrollViewer, but if I add it, the image takes the size...
I keep getting an error #6 (An error occurred while finding the resource dictionary "/RibbonControlsLibrary;component/Themes/Office2007Blue.xaml") when I try an load the Office2007Blue resource dictionary that is supposed to come with the WPF RibbonControlLibrary. Has anyone seen this problem and found a fix? I'm using version 3.5.4072...
I have a WPF UserControl that contains a StackPanel that is made visible as a result of a state change. When the StackPanel becomes visible, I want to set the keyboard focus to a particular child TextBox. I have found (after a lot of trial and error) that the call to TextBox.Focus() will fail to set focus (and returns false) unless I w...
WPF visual studio 2010 C#
how can I perform these tasks.(XAML or code behind)
I have three columns on the same row of the datagrid,each column contains a radio button
named none,read,write.
there is a DEFAULT rule: the write(radio) must be ON when the other two are OFF.
when I turn ON one the other two should turn OFF
then
if I turn...
I've got an animation running on the main window (only window) of my WPF application. Problem is that this animation isn't running smoothly.
This animation was constructed in a separate, empty project and worked perfectly (nice and smooth) until I transferred it to my main application. Now you're probably thinking what is the applicatio...
Hey folks, I'm wanting to write some rudimentary support for detecting hyperlinks in a WPF RichTextBox control. My plan is to use a regex to identify any links and then manually replace them with real hyperlink objects.
However the part I am having trouble with is getting the correct textpointers, etc. once I find a link. For example, I...
I want that the WPF application starts only in certain conditions. I tried the following with no success:
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
if (ConditionIsMet) // pseudo-code
{
base.OnStartup(e);
}
}
}
But the app runs normal...
I am creating doubleAniation in code and I want to add an easing function to it, so how do I do it?
...
Hi
I have some problems with implementing autoscrolling in WPF (I think I could call it that way).
I have a canvas placed inside a scrollviwer. On my canvas I can dynamicly add different shapes. The position of this shapes can be changed with mouse. Everytime I add new shape on canvas or change position of shape I fire measureOverride fu...
I am trying to overlay text content on top of a region described by a Path. The Path is in a Viewbox wrapped Canvas so that it can scale to any size. The TextBlock is in a Canvas wrapped Grid that is trying to use the Path dimensions to determine the placement of the text block.
<?xml version="1.0" encoding="UTF-8"?>
<Canvas
xmlns="...
I am playing with XamlPadX and here is the code I have so far:
<ScrollViewer Name="Scroller"
HorizontalScrollBarVisibility="Disabled"
VerticalScrollBarVisibility="Auto"
Height="100">
<TextBlock Name="txtLog" TextWrapping="Wrap" VerticalAlignment="Stretch" Height="100">
...
I have a treeview that has a checkbox nested in for each item. I want to be able to use the up and down arrows on my keyboard to traverse the tree, but the checkbox adds another step because it gets highlighted first and then the move occurs. Basically I have to use the up/down arrows twice to move up or down the tree. Is there a way t...
I have a user control (NameField). Within it I have a stackpanel containing 3 Grids: StandardView, FluidView, OtherView. Within the code-behind I have a DependencyProperty called View of type NameFieldView (enum). The enum contains STANDARD, FLUID, OTHER.
I think I have to create a converter, but I'm not sure if that's necessary. I basi...