The following code worked nicely until our admins enabled KERBEROS on our servers:
var image = new BitmapImage(new Uri("http://sharepoint/sites/Symbols/Symbols/ABCD.png"));
The server is in the local intranet zone and requires windows authentication. After our admins also enabled KERBEROS in this domain, http downloads and webservice ...
I have a context menu, that I'd like to change the Header based on whether the Control Key is pressed or not.
Right now I have,
<MenuItem Header="Send To">
<MenuItem ... />
<MenuItem ... />
</MenuItem>
I'd like based on the Control Key being down to be,
<MenuItem Header="Move To">
<MenuItem ... />
<MenuItem ... />
</MenuItem...
Hello,
focused items == selected items but selected items != focused items.
Have you ever wondered about that?
Do you specially style the backcolor of a focused/selected item ?
I ask this question because a user has an enabled button because some customer items are
selected. The user is wondering now "why the heck can I delete this ...
Hello, we're having this big problem with our application. It's a rather large application with several modules, and thousands and thousands lines of code. A lot of parts of the application are designed to exist only with a reference to another object, for example a Person object can never exists without a House object, so if you at any ...
I'm trying, as an exhibition, to use a DoubleAnimation on the ScaleX and ScaleY properties of a ScaleTransform. I have a rectangle (144x144) which I want to make rectangular over five seconds.
My XAML:
<Window x:Class="ScaleTransformTest.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http:/...
I've created control styles I want to use among multiple xaml pages in my WPF app. To do this I created a Resources.xaml and added the styles there.
Then in my pages I add this code
<Grid.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,...
Here's a math/geometry problem for the math whizzes (not my strongest subject). This is for WPF, but should be general enough to solve regardless:
I have two embedded Border elements, with the outer one having a certain corner radius, R and border thickness, T. Given these two values, what should the corner radius of the inner Border, R...
Hey all,
I'm working on a project and I'm wondering how to get a type of window common in Windows's wireless controls, as shown in the screen shot below:
http://cybernetnews.com/wp-content/uploads/2008/10/windows-7-wireless.jpg
There's no close or maximize buttons, but the border is still present. My tools include Expression Blend 3 a...
I have a UserControl with a templated grouped listbox with expanders and only want one expander open at any time. I have browsed through the site but haven't found anything except binding the IsExpanded to IsSelected which isn't quite what I want.
I am trying to put some code in the Expanded event that would loop through Expanders and c...
Hello,
I have a pupil entity implementing IDataErrorInfo:
Now the exact same rules I want to validate against the Lastname, Gender, Street, City, Postal and Phone.
Do I really have to repeat all that ? Using ValidationRule class would be better but then I
can not handle disabling/enabling buttons via ICommand.
...
#region Valida...
so, i've found a way to bind a label to a property on current Control
i give it a name:
<UserControl x:Class="WpfGridtest.GridControl" x:Name="GridControlControl1">
and than bind to property of this control:
<Label Content="{Binding ElementName=GridControlControl1, Path=Filter}"></Label>
I can see the default value i put in that pro...
I would like to make an application in a one window using XAML.
It should be like a slideshow with next and back button. One idea is to make 4 panels and have just one enable at the time. Is there any other way to do this? Like dynamic loading of other XAML?
is it the BackgroundWorker mandatory to use with WPF (hence is DirectX rendered...
Hello, I am creating 2 columns. left column will show caption of the DataGrid which will be in right column.
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Name="FilterLabel">
<Label.RenderTransform>
<TransformGroup>
<RotateT...
Hi-
I'm trying to use a MultiBinding with a converter where the child elements also have a converter.
The XAML looks like so:
<TextBlock>
<TextBlock.Text>
<MultiBinding Converter="{StaticResource localizedMessageConverter}" ConverterParameter="{x:Static res:Resources.RecordsFound}" >
<Binding Converter="{StaticResource lo...
The handler of the "SelectionChanged" event of the ComboBox control has the following signature:
void SelectionChangedMethod(object sender, SelectionChangedEventArgs e)
How to bind to that property under Silverlight 4 and MVVM-Light to the corresponding method of the ViewModel object?
As far as I know, I need to do something like thi...
I need to bind a List of Images to a list box.
My code being:
<ListBox x:Name="lstImages">
<ListBox.ItemTemplate>
<DataTemplate DataType="{x:Type Image}">
<StackPanel>
<Image Source="{Binding Path=UnassignedImages}"></Image>
</StackPanel>...
I have a very weird bug in a three level deep TreeView. It is intermittent and I can't find how to reproduce it consistently. After programmatically removing, adding then removing some third level items, when I click on the root item it isn't selected. It can still expand/collapse but can't be selected with a mouse click and it doesn't f...
I am trying to add horizontal and vertical "Position" attached properties to my canvas control that allow me to set a control's position (e.g. Horizontal: Left, Right, Center).
I need a children size changed event handler so that I can adjust the position of an element whose size is changed if it's horizontal or vertical position is Cen...
I have a WinForms based app with traditional MDI implementation within it except that I'm hosting WPF based UserControls via the ElementHost control as the main content for each of my MDI children. This is the solution recommended by Microsoft for achieving MDI with WPF although there are various side effects unfortunately. One of which ...
HI,
I making one DLL in WPF,C# and im using it in VC++.In that DLL, ihave one textblock to display current time,But when i run the WPF application as WIndows application it shows current time correctly and also updated with new timings.But when i use it as Dll in VC++ applcation,the current time is not get updating.It shows the time when...