In my application I want to show a login screen first, if the login is successful only then I want to show what is known as a Shell.
How would you structure a simple application that first authenticates the user via some login screen and then opens up the main window that acts as container for further module?
...
I have a TextBlock of Width 600 and Height 80 in my WPF 4.0 application. I would like to truncate text and append ... at the end, at runtime. Could you please suggest me some about how should I approach it?
...
I have two Grids inside a Stackpanel.
First grid is named as GridX.
Initially inside the grid there is a 2D array of Textboxes(RowDefs/ColumnDefs).
The TextBox definition in XAML is
<TextBox x:Name="A1" Grid.Row="4" Grid.Column="5" TextAlignment="Center" />
I want to add a TextBlock programamtically in the same position as part of Gri...
Hello. My problem is that the image loading seems to be uncorrectly from application resources. This is code:
BitmapImage bi = new BitmapImage();
bi.BeginInit();
bi.UriSource = new Uri(@"pack://application:,,,/WpfApplication3;component/Resources/Images/16x16_incorrect.png", UriKind.Absolute);
bi.EndInit();
ImageSour...
I have the following user control: a dot and its name:
<UserControl x:Class="ShapeTester.StopPoint"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas...
I have a ListBox with different classes of items. DataTemplates are used to present those objects in the appropriate way. I want to have different context menus in the DataTemplates of these classes.
Everything works fine using the mouse, but using the keyboard I can't bring up the context menu.
This is probably because the keyboard-fo...
Edit 3: TLDR-Version
I have a singleton DependencyObject that I'm binding UserControls to. Some of the UserControls are in the main window, some of them appear in a separate window (the settings window). The ones that appear in the settings window do not bind correctly and do not affect the values in the singleton.
I have a singleton...
Hey! I am trying to play with making my app look better and I found this and was incredibly impressed with the workspace example found here: http://expression.microsoft.com/en-us/ff624123.aspx look at the example with state timeline and props with the workspaces which switch what has focus in the window.
The code can be found here : htt...
Hello!
I have an Expander that its content consists of a StackPanel that contains several elements one of whom is a TextBox.
I want, that when the Expander expands that TextBox should gain keyboard focus, how do I do this?
I tried:
Private Sub xp_Expanded(sender As Object, e As RoutedEventArgs) _
Handles xpUnits.Expanded
...
I have a Window that is autosized around it's content. For an animation I'd need it's width and height. ActualWidth is always the max width of the window, Width and Height properties say NaN.
...
Hi
I have a problem with context menu. I override default context menu from textbox with my own menu. The menu is created dynamicly and looks like that
ContextMenu menu = new ContextMenu()
MenuItem item1= new MenuItem();
item1.Header = "First item";
MenuItem item2 = new MenuItem();
item2.Hea...
Hi All,
I am creating a WPF application in .net 4.0.
Basically I want to have a map of the world (2d) where by I can place images on, depending on their country location. This map can be an image however, it would be hard to determine the co-ordinates for the location right?
Can someone provide me with the simplest way of doing this?
...
Hi
In my WPF project i keep a user control in a separate library project. The user control accesses resources in a separate XAML file, like this:
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Resources/ViewResources.xaml" />
</ResourceDi...
HI,
I am developing an application which has following requirements.I have been searching nearly 2 days without a solution.
In my application I am using WPF FlowDocumentReader.We are going to create file consisting of images.The created file then will be distributed to clients through download.
1.The FlowDocumentReader Should Load...
Hello All i m new in Wpf..
i m making a Wpf Application my problem is that i m using Datagrid To show tabular data..how can i find the row of my datatable when i click the listview Selected Cell.
thanks in Advance
shashank
...
Hi ..
What is Rendering Tier in WPF.
& What is Base class of WPF Graphics
...
I believe this to be a bug in WPF (v4.0 if it matters), but it is late, and maybe I'm missing something.
I am binding to a fake example for illustrative purposes:
<x:Array x:Key="SampleItems" Type="sys:String">
<sys:String>Foo</sys:String>
<sys:String>Bar</sys:String>
<sys:String>Baz</sys:String>
</x:Arr...
Here are my doubts,
When to use AttachedProperties in wpf
Should I use AttachedProperties only with ContentControls (like Panels) where are there one or more children
What is the use of AttachedProperties
Can I use AttachedProperties for extending properties of a control, i.e., properties that don't exists but I would like t...
Hi,
I would like to ask how to bind complicated xml data file into a radpanelbar or in a radtreeview control dyncamically when wpf form is loaded using C#?
For example - xml data:
...
I have a system with two web applications, one web service, one Windows service and a WPF application running 24 hours a day on a touch screen. All of them are connected to a database.
I want to be able to upgrade all of those applications by uploading upgrade files to the database and set the date and time for the upgrade to occur.
I ...