Hi,
I have a WPF Window that contains a ContentPresenter that has Height and Width set to 0 by default.
When a user clicks a button, I run an animation to transform the ContentPresenter's Height and Width properties to 896,1024 (actually it does 3 rotations whilst its growing, too) and this is all good...
The DataContext for the User c...
I am trying to build a project where Menu is to the left of the screen (eg. Tree view in Outlook). And when I click on individual items in the tree view on the left the main pane updates (Similar to Outlook).
Can anyone provide some sample code or links to sample code that I can use as reference? I am sorry if this is ambiguous. Any hel...
<ListBox.ItemTemplate>
<DataTemplate>
<Grid x:Name="grid">
<Grid.Background>
<SolidColorBrush x:Name="backgroundBrush" Color="Transparent" Opacity="0.1"/>
</Grid.Background>
</Grid>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding IsExpanded}" Value="Tr...
Hello,
when I d*ouble-click* - or click once when its already focused - below the items in a empty area of the Listbox which is within my DataGridTemplateColumn then I get the above error message.
WHAT do I wrong?
This is my Code:
<DataGridTemplateColumn Width="0.3*" Header="Attachments">
<DataGridTemplateColumn.CellTemplate>
...
I have a List which contains Dictionary items. This means
List[0] = Dictionary Item => Item[0] = id, Item[1] = Name, Item[2] = Amount.
I need to show this in a ListView control in a Grid manner. The dictionary can vary.
UPDATE:
Each Item in the List looks like this:
["_id"] = "11212131"
["Title"] = "this is title"
["DateCreat...
Im writing a WPF application that has a zoom and pan ability, but what I want to also implement is the ability to zoom and pan "automatically" (via a button click).
I have the methods all defined to zoom and pan, but Im having trouble telling the app the desired X/Y coordinates for the panning.
Basically, I know that I want the control...
I'm sure that most of us will agree that it is possible to run out of declarative DataContext sources from parent or self contexts. We then might resort to Binding to a parent Tag and then use Element Binding. So the source might look like this:
<Grid.Tag>
<Binding Path="MyProperty" Source="{StaticResource MySource}" />
</Grid.Tag>
...
Hi all,
I have a WPF application that's crashing once I get it onto machines that do not have a development environment installed-- if this is a dupe, I'm welcome to closing, but I my search-fu is failing to find an equivalent question. It appears that I'm getting a XamlParseException, but nothing more useful than that. I need to get ...
Hi,
somehow I am going in circles here. Please forgive me if the answer to this question is obvious.
I want to react to changed properties in the ViewModel in the View. When the properties (bool) change the View should start an animation (BeginStoryBoard).
Actually in my application there are 4 of these properties each with its own nam...
for example, here's some code from an implementation of an attached behavior for a double click command:
private static void fe_MouseDown(object sender, MouseButtonEventArgs e) {
if (e.ClickCount != 2) return;
...
}
assuming you have a thin client with the bulk of the logic in a testable architecture, is there ...
Hi everyone,
I really want to make rich applications which also include transitions, this way I can fit more on one window by fading out parts that I don't need and fading in parts I do.
But I don't know how to achieve this, I have read some tutorials on the net but they are quite hard to understand.
Maybe the great Stackoverflow comm...
Hi Iam loading image at runtime.I have the problem where i have to place the image in folder.Actually i put it in folder named as Image.But it shows the error that it can not find image in folder ...bin\debug\HH.bmp.
So i pasted it in debug folder and works fine.
But when i take EXE out of Debug folder and when i run it,it does not work...
I am writing a WPF application on WinXP and I have overridden the default theme with the vista theme like this:
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var themerd = new ResourceDictionary();
themerd.Source = new Uri(@"PresentationFramework.Aero;V3.0.0.0;31bf3856ad364e35;component\themes/aero.no...
Hello. I'm really interested in learning really advanced features of WPF to learn how to create advanced controls, but apparently I'm running out of resources, and possibly, imagination.
I have these 4 books:
WPF Control Development Unleashed Experiences
Pro WPF 2008 Presentation Professionals
Programming WPF Chris Sells
WPF in Action...
I use a WPF Toolkit Datagrid with a LINQ to SQL
<my:DataGrid AutoGenerateColumns="False" Name="dataGrid2">
<my:DataGrid.Columns>
<my:DataGridTextColumn Header="Date" MinWidth="80"
Binding="{Binding Date, StringFormat=d}"
CanUserSort=...
Hi i want to make one WPF control library applcaiton.
In that i will load images depends on the text.
So i used code like this
if (string.Compare(AlStatus,"HH")==0)
src1 = @"pack://application:,,,/WpfApp;component/data/HH.bmp";
else
src1 = @"pack://application:,,,/WpfApp;component/data/Normal.bmp";
.
.
Img1.Source = new ImageSour...
Hi,
I've tried to embed a .NET WinForms graph (Stephan Zimmermann's Graph Display) in a WPF window, under a WindowsFormsHost (I've referenced both System.Windows.Forms and WindowsFormsIntegration).
However, I can see the form panel but not the graph. I've ran the demo application on a windows form and it worked, but when I transfered t...
I've a database consisting of about 1 million records. My application makes frequent incremental search on these records and filters the UI list. The scenario is more like the 'phone contact search'.
Currently i'm following this:
Load the data into List<myModel> in the DataSource Layer`
Send it to MainViewModel
Load List<myMod...
In my WPF application I do some async communication (with server). In the callback function I end up creating InkPresenter objects from the result from server. This requires the running thread to be STA, which apparently it currently isn't. Therefore I get the following exception:
Cannot create instance of 'InkPresenter' defined in ...
I need to access element named "PageHost" for the selected list item in the following XAML code from C# codebehind, how to do so please ?
<ListView.Resources>
<p:PageWidthConverter x:Key="PageWidthConverter" />
</ListView.Resources>
<ListView.ItemTemplate>
<DataTemplate x:Name="PagesVi...