Is there a way to detect the FlowDirection in TextBox automatically based on the Unicode Characters used?
If you have an Arabic text in Excel it is automatically aligned to the right side of the cell. I would like the same logic in my WPF application. Has anyone experience with this and can tell me how to do this?
...
Hi, I am creating a style that changes a ControlTemplate of a Button (it actually adds arrow on the right, so that the button looks like dropdown button (which is missing in wpf)).
Inside of template, I put the actual button (because I need the result to still be like button - I could change only ContentTemplate, but I need to display t...
Hello
My footer is currently composed of a label and an ItemsControl. It needs to be below 2 DataGrid controls that are similar in that they both contain a fixed width column for every day in the week and the end of it (which is what the ItemsControl in the footer has totals for).
I'm trying to solve the alignment, which seems easiest...
tl;dr: I want detail views to appear in 2 columns if 2 items are selected, and to span 2 columns if only 1 item is selected.
I have a DockPanel with 2 ListBoxes docked on the left and a 2-column Grid on the right.
When an item is selected in listBox1, I display a details view in Column 0 of the Grid.
When an item is selected in lis...
There are a lot of intros to DataBinding out there. But they leave out a lot of the databinding options.
Does anyone know a good reference / instructional document that goes through most/all of the wpf databinding options?
...
I have a template in my section. I want to bind the Width of one of the values in that template to the width of a control in my Main XAML section.
Can this be done? Expression Blend only shows the Template in the Binding list.
For example, this is what I am wanting to have work:
<Windows.Resources>
... My template stuff
<Grid.Co...
The UI Automation framework has a base class, AutomationElement, that has a property, ItemStatus, that can be used to store arbitrary strings. I'm trying to get that property from the Visual Studio 2010 Coded UI Tests base class, UITestControl.
...
In WPF, I have a ListView bound to an ObservableCollection in the code-behind. I have working code that adds and removes items from the list by updating the collection.
I have an 'Edit' button which opens a dialog and allows the user to edit the values for the selected ListView item. However, when I change the item, the list view is...
Can Silverlight 4 run SSIS packages & SSRS reports directly? What about interacting with Office object models? I am wondering if Silverlight 4 can be used to create full blown Line of Business Apps and for me to skip learning WPF and using RIA services. I know SL is a subset of WCF. I don't know either and want to save time and concentra...
I have a base style, say:
<Style x:Key="DefaultButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Background" Value="{StaticResource DefaultButtonBackground}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid x:Name="ButtonShapeGrid"...
Let's say that I've got the following class hierarchy :
public static class Constants
{
public enum MyEnum
{
Value1 =0,
Value2,
Value3
}
}
public class Data : INotifyPropertyChanged
{
public Data(string name, ushort id, Constants.MyEnum e)
{
DataName = name;
DataId = id;
...
I'm trying to create a TextBox that only allows positive integer input, and that should display the input with culture-specific formatting automatically (in this case en-US, so it should use the ',' sign as a separator for larger numbers). So:
An entry of 1000 should show as '1,000' in the TextBox
An entry of 1,000 should show as such,...
Hi,
I need to zoom Canvas. In WPF it is possible to bind ScaleTransformation.X to slider.Value.
I'm not able to do the same in Silverlight - some errors.
Is it supported in SL3?
Thank you.
...
This might be a bug in the WPF Toolkit DataGrid.
In my Windows.Resources I define the following ColumnHeaderStyle:
<Style x:Name="ColumnStyle" x:Key="ColumnHeaderStyle" TargetType="my:DataGridColumnHeader">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation=...
Hi,
I have a WPF TabControl which contains a number TabItems with child UserControls, like this.
XAML
<TabControl x:Name="tabsMain" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="0" Grid.RowSpan="3" Background="lightgray">
<TabItem Width="100" Header="Profile" FontSize="16">
...
Hi,
I have tabcontrol in my main window. The different tbas I create with custom controls (for edit, addition etc.). I want to be able to address the other tabs from inside the control, so that when, for example, I click submit at some of the forms, it activates a specific other tab.
I tried with
BaseWindow n = new BaseWindow(...
In my WPF app (csharp) I have an event handler that when triggered will open a new window (window B) of the application and display some data. However, when the event is triggered again, if the new window (window B) is still open, I don't want to spawn another instance of window B but just update the data being displayed in the current ...
I'm a bit in a mess with how to set a Dependency Property for Custom Control.
I created Custom Control, so it derives from Control class.
public class CustControl : Control
{
static CustControl()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(CustControl), new FrameworkPropertyMetadata(typeof(CustControl...
Cant Add Typography to my label font in WPF. Do you have any suggestions?
...
Hello!
I have a window, in which i have many controls, UserControls or controls derived from other controls (and grids and frames).
It works fine if i DON'T add any event to ANY of the controls i have in my window (in XAML). I have many other events that don't cause this, but if i add a new event. It will crash.
Example:
This is the...