FAQ Database Discussion Community

I can't enable my listBox in Modern UI for WPF (vs2013 C#)

My main window is a modern tab with a group of links. Each link navigate to different page. <mui:ModernTab Layout="List" Margin="0,0.5,-222,-2" HorizontalAlignment="Left" Width="742"> <mui:ModernTab.Links> <!-- TODO: set @Source --> <mui:Link DisplayName="Page 0" Source="Page0.xaml"/> <mui:Link DisplayName="Page 1" Source="Page1.xaml"/> <mui:Link DisplayName="Page 2" Source="Page2.xaml" /> <mui:Link DisplayName="Page 3" Source="Page3.xaml"/> </mui:ModernTab.Links> </mui:ModernTab> Page 0...

Alignment issues with flow document reader - WPF

I am trying to load a .txt file onto a flow document reader, but the columns are not correctly aligned, i.e. there is no uniform spacing between the columns. How can I get the same alignment in the flow document, as it is present in the notepad file. I mean...

Getting started with Blend for Visual Studio 2012 Documentation .pdf

Hi there: How can I download "Getting started with Blend for Visual Studio 2012" documentation from Microsoft website in .pdf format? I dont want to use the internet the whole time when I want this documentation... Here is the link of the documntation https://msdn.microsoft.com/en-us/library/jj171012(v=vs.110).aspx

WPF: How to achieve a dependency property editng as a percentage/slider in the designer

I have a dependency property of type double that expresses a percentage (0 to 1) in the designer (i.e. Expression Blend / Visual Studio) It displays fine in the designer, as a 0 to 1 value, but I would like to show and have it editable as a "0%" to...

Define Blend Expression ViewModel definition for RelativeSource binding

I have an UserControl (MyCompositeView) where I add some other UserControls (MyDetailView). To get intellisense and refactoring ability I add to the CompositeView the d:DataContext in xaml. To Manipulate the UserControl while adding them an new DataContext I bind the Visiblity to the RelativeSource (my CompositeViewModel). Unfortunately the matching against...

Button DataTemplate width too large

I created a DataTemplate from a Button and put the MinWidth and MinHeight to 0. I set the width and height to 75 on the Grid of the DataTemplate. The grid has a border and it's MinWidth and MinHeight are also both set to 0. The width and height of...

WPF - ContentPresenter does not bind to UserControl Content

Ok, so I'm relatively new to WPF and I'm having a bit of a problem with my usercontrol which contains a custom button. Everything was working fine until I tried binding the content of the custom button to the usercontrol content. UserControl Code: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:OP"...

Is it possible to programmatically manipulate a psd file's layers in WPF?

I have a Photoshop Document with a few layers that I can turn on and off to make the image display different data. Is it possible to place this image in a WPF page and use C# to turn on and off layers? I've been googling for a little while...

How Can I set the background of a browser window blend with the desktop background?

I'm trying to build an app with nwjs, and I want it to have the look and feel of a desktop app. Desktop apps on OSX (Specifically the ones on the upper menu) have their background blend with the desktop background. Does anyone know how can I do this in...

Fade Out OpenGL VBO with Colors but without Texture

I would like to fade out a VBO object in OpenGL ES. The VBO is drawn using RGBA format GL_UNSIGNED_BYTE like this: glEnableClientState(GL_COLOR_ARRAY); glColorPointer( 4, GL_UNSIGNED_BYTE, .... I am fairly certain I should set up blending like this: glEnable( GL_BLEND ); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); glColor4f( 1, 1, 1, alpha...

Access objects that haven't been created via Blend

I'm using Blend for the first time, for a WPF C# project. I have an expander object that I'm creating on a button press, like below. var name = selectedItem.Name; var expander = new Expander {Header = name}; As you can see, I set the expander header by grabbing it...