Questions tagged [xaml-designer]

86 questions
5
votes
1 answer

Visual Studio 2012 XAML designer does not show correct content when App.xaml in different assembly

I'm moving a WPF application from VS 2010 to VS 2012. I have a main executable which contains the App.xaml and a separate class library for all the WPF stuff. In VS2012 (SP3) the XAML designer does not show any styles which are in a…
Harry13
  • 733
  • 1
  • 4
  • 15
5
votes
1 answer

Visual Studio 2012 XAML Designer Vertical Split Can't Be Set As Default?

Is there only Horizontal Split as default and not Vertical Split? Again or my eyes are going bad? It was an issue in VS2008 and VS2010 when it was per-file basis so nothing has changed?
nubm
  • 1,153
  • 2
  • 14
  • 32
4
votes
3 answers

Xaml UI Designer is inactive for wpf projects in .net core 3.0

I have updated Visual Studio 2019 to version 16.3 which can support .Net Core 3 stable version. After creating the first WPF app supported by .Net Core 3, the designer is inactive while the XAML designer is enabled in Tools=>Option=>XAML Designer.…
icn
  • 1,783
  • 2
  • 7
  • 13
4
votes
3 answers

XAML design not loading in visual studio

I am trying to load the xaml file in visual studio but its throwing an exception but when I run the app the design and all the functionality is absolutely fine. The exception is below : InvalidCastException: Unable to cast object of type…
Talib
  • 1,134
  • 5
  • 31
  • 58
4
votes
2 answers

XAML designer can't locate resource

I've custom control in shared project (resource dictionary in shared project). Everything works fine in run time, xaml designer however throws exception: Cannot locate resource 'mycontrol.xaml'. The problem occurs when loading style for…
Sinatr
  • 20,892
  • 15
  • 90
  • 319
4
votes
3 answers

Disable binding to static property during design-time

I like to bind to static properties whenever I can (e.g. when notification is not needed or when model anyway implement INotifyPropertyChanged for other purposes), e.g.: Visibility="{Binding IsAdministractor, Source={x:Static local:User.Current},…
Sinatr
  • 20,892
  • 15
  • 90
  • 319
4
votes
4 answers

WPF XAML designer showing bound property names instead of property values

One of my XAML files shows a strange behaviour in the XAML designer (but not during runtime): public class MyDesignTimeViewModel { public MyDesignTimeViewModel() { MyText = "abc"; MyInt = 5; } public string MyText {…
Jonas Sourlier
  • 13,684
  • 16
  • 77
  • 148
4
votes
1 answer

XAML - Center alignment of textblock after rotation

I have a stackpanel with textblock and image. I need to align the textblock to center with rotation(90 degree).Like this, But, after rotate the textblock i am always getting result like this, this is the XAML code i am using,
Maniarasu
  • 362
  • 5
  • 15
4
votes
2 answers

Visual studio 2012 - silverlight - XAML designer - Insert grid row before/ after

Just switched to visual studio 2012, and I can't figure out how to insert a new row into a silverlight grid through the xaml designer. In visual studio 2010, we could easily insert rows and columns into our silverlight grid just by left clicking >…
Shaboboo
  • 1,347
  • 1
  • 16
  • 35
4
votes
6 answers

Visual Studio 2012 Not Recognizing Xaml Files, Design View Broken

Design View for Xaml on Visual Studio Professional RC 2012 used to work for me. But suddenly stopped for no reason I can figure. Visual Studio 11 No longer Recognizes Xaml Files. In properties, it treats XAML files like XML. In solution…
cranesbane
  • 181
  • 1
  • 1
  • 8
3
votes
1 answer

Blend for visual studio 2019 disabled PATH and other shapes in asset window

I am using Blend for visual studio 2019 Community edition to design XAML pages for my UWP app. As per the Microsoft document draw a shape there should be 6 shapes available(Ellipse, path, line, and other 6) but in my case, these are not…
Dharmendra Singh
  • 149
  • 2
  • 11
3
votes
1 answer

XAML Visual Studio 2017 cannot edit style anymore

I have Windows 10 Fall Creators Update on my PC. On Visual Studio 2017 and Blend, i can't anymore edit control's style anymore. For exemple, i have a button in my page. I can create a style for the button by right click on it and chose option Edit…
ArthurCPPCLI
  • 1,072
  • 7
  • 18
3
votes
2 answers

Microsoft Ribbon doesn't render in Designer

I'm using thbe Microsoft Ribbon for WPF (System.Windows.Controls.Ribbon) and VS2015. Since I removed unnecessary depencies from my project (like Dynamic Data Display etc, things not related to the ribbon) it does not render correctly in the Designer…
3
votes
1 answer

WPF designer doesn't run window static constructor upon starting up

When I load solution and there is an opened designer tab for some window, then this window static constructor is not executed. Perhaps my conclusion is wrong (because I am absolutely clueless how designer load things), but here is a test…
Sinatr
  • 20,892
  • 15
  • 90
  • 319
3
votes
1 answer

MarkupExtension: changing constructor argument is not evaluated in design time

Here is how it looks like: When changing markup extension Key property - everything works. When changing markup extension constructor argument - it's not updated. Workaround is to update property with extension (change Text) and then back. Then…
Sinatr
  • 20,892
  • 15
  • 90
  • 319