I have a Class Library, which inside just has a DataSet (MySQL connector) and a Connector class.
I use this class in multiple projects to connect to the database, and I always had the password embedded in the connection string but now I need to be able to modify this string(for security purposes) so I can have the user connect using the...
I am using the theme DarkExpression from WPF Futures.
It does not seem to work well with datatemplates.
Scenario 1:
Here is how it looks like without datatemplates:
Pic 1
Code:
<ListView Name="playlistListView" ItemsSource="{Binding PlaylistList}" Margin="0" SelectionChanged="DatabindedPlaylistListView_SelectionChanged" Background="...
I am representing a Solar-System's planets with ImageButtons that show the planet's image on the surface of the button, and hold the planet's important data.. name, distance from sun, etc within an instance of a Planet class, stored within the ImageButton.Content property. When the ImageButton is selected, I am attempting to access and ...
I have a ListView with a GridView that's bound to the properties of a class that implements INotifyPropertyChanged, like this:
<ListView Name="SubscriptionView" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" ItemsSource="{Binding Path=Subscriptions}">
<ListView.View>
<GridView>
<GridViewColumn Width="24" CellTe...
Hi Team,
May I'm posting in worng place, but i don't know where to post it.
Actually my problem is....
I have content which is in wordml format stored in database, now I have to replace those tags and should display it in Textbox again.
my actual content in DB is
...
Is there any way to change the Content of a RibbonButton?
I know that a RibbonButton has an Image and a Label but I want a button with a shape (Rectangle class) in it's Content and this button should have the RibbonButton style applied. Is there any way to do that?
...
My application has several independent "top-level" windows, which all have completely different functions/workflows.
I am currently using ShowDialog() to make a WPF Window modal. The modal window is a child of one of the main windows. However, it is blocking all the top-level windows once it is open. I would like the dialog to block ...
What's the fastest communication model for a Silverlight component communicating with a WPF component? That is, at the very least I'd like to consume an event from a Silverlight component in a WPF component.
I understand you can use WCF to build a bridge
I understand you can use Javascript to bridge from WPF -> Silverlight (and I hav...
I have a controltemplate for buttons. I want to make the buttons with rounded corners. How should I do this?
I tried CornerRadius for button in the Border but it doesn't work. The background of the button has set to an image that has corner borders and the button looks akward as I can't set the corners for the button.
<Style TargetTy...
Trying to replicate the docking controls in Visual Studio 2008. My application replays the RADAR environment for the FAA and I want the ability for dual monitor users to drag the control panels to the other monotor to leave the main canvas clear. This functionality is similar to the way the different panels in VS can be dragged outside...
Hi,
I have a small problem. I use a Frame to show a website, unfortunateli some of my websites use flash, and seems to want to install a flash plugin - my frame doesnt seem to accept this behavior so it fails giving me a http 500 internal server error. Any one having any experiences in how to show the web site or install the flash plugin...
Hi,
I have a string in RESX defined with following URL - "pack://application:,,,/Resources/m.jpg"
I have written following XAML code to show this image -
Compilation is successful and app runs perfectly but image is not seen.
Please assist on the same.
...
Is it possible to translate a point relative to MainWindow to be relative to one of its child controls? For example, say a control's upper left corner was located at 500, 500 relative to MainWindow what code would convert that number to (0, 0)? I'd like the solution to be agnostic of the layout mechanism (i.e. not require me to parent ...
I am developing a WPF application that must run using Windows Classic theme. The application creates a dialog box containing a ListBox. When the dialog box is shown, it must be disabled for 1s before accepting any input. I am accomplishing this with a style trigger, and it works. However, the ListBox shows a white background when it's...
Hi all!
WPF is great because there are many things to achieve own goals.
By example, for what I understand, adorners can add some controls to a UI element, but I think that the same behavior can be achieved through a custom control that contains the additional element.
So, my question is: when should I prefer adorners to a more complex ...
Hello,
Given a path like this one :
<Path Stretch="Fill" Stroke="#FFD69436" Data="M 0,20 L 22.3,20 L 34,0 L 44.7,20 L 68,20 L 55.8,40 L 68,60 L 44.7,60 L 34,80 L 22.3,60 L 0,60 L 11.16,40 L 0,20 Z">
<Path.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<LinearGradientBrush.Gra...
Hi,
I've got a collection of ViewModels and want to bind a ListBox to them. Doing some investigation I found this.
So my ViewModel look like this (Pseudo Code)
interface IItemViewModel
{
string DisplayName { get; }
}
class AViewModel : IItemViewModel
{
string DisplayName { return "foo"; }
}
class BViewModel : IItemViewModel
{
...
Is there a MVVM way to select text in a textbox? The MVVM framework that I am using is Laurent Bugnion's MVVM Light Toolkit.
...
This question is a follow on from this one...
I am binding to a heterogeneous collection of objects, not all objects have the same set of properties. I am doing this in a datagrid. I would like to gray out the cell if the binding fails. Is there a way to apply a trigger if a binding fails?
EDIT: The answer below was suitable for my pur...
I am making an app in WPF in a style similar to Windows Explorer, with a TreeView on the left and a pane on the right.
I want the contents of the right pane to change depending on the type of the selected element in the TreeView.
For example, say the top level in the Tree View contains objects of class "A", and if you expand the "A" ...